Retention policy modes

As described in Retention policies, VolumeCare creates and manages snapshot based on retention policies. Here you can find detailed information about the policy modes.

Local

By default StorPool snapshots are created in their parent volume’s template. This can be overriden by setting template=<XXX> in the [volumecare] section of the configuration. Templates can also be overriden per-policy by setting template=<YYY> in each policy definition section ([policy:<PPP>]).

basic (stopgap)

This mode has two parameters - snapshots and interval (in hours). For each entity (volume or virtual machine) with this policy the VolumeCare will keep the specified number of snapshots, each of which is created at the interval specified. For example, 4 snapshots with interval of 6 hours means that the oldest snapshot will be 18-24h old and there will be three more, spaced 6 hours apart.

Example for a virtual machine snapshotted with stopgap, snapshots=5, interval=6:

State ID: 1581687345 -- VM 1000 @ 1581687345 (loc) -- volumes: volume-test2, volume-test9 -- stopgap-5-6 -- 2020-02-14 15:35:45 (0h 18m ago)
State ID: 1581665745 -- VM 1000 @ 1581665745 (loc) -- volumes: volume-test2, volume-test9 -- stopgap-5-6 -- 2020-02-14 09:35:45 (6h 18m ago)
State ID: 1581644145 -- VM 1000 @ 1581644145 (loc) -- volumes: volume-test2, volume-test9 -- stopgap-5-6 -- 2020-02-14 03:35:45 (12h 18m ago)
State ID: 1581622545 -- VM 1000 @ 1581622545 (loc) -- volumes: volume-test2, volume-test9 -- stopgap-5-6 -- 2020-02-13 21:35:45 (18h 18m ago)
State ID: 1581600945 -- VM 1000 @ 1581600945 (loc) -- volumes: volume-test2, volume-test9 -- stopgap-5-6 -- 2020-02-13 15:35:45 (1d 0h 18m ago)

exp

Mode exp has an exponentially increasing interval between the snapshots. Currently it’s parameterless and keeps 12-13 snapshots with the following ages:

  • 4 from the last 3 hours

  • 2-3 aged 3-12 hours

  • 2-3 aged 12-24 hours

  • 4 aged 24-48 hours

Example for a volume snapshotted with exp:

State ID: 1581687584 -- spvc___1581687584___loc___exp-test (loc) -- exp -- 2020-02-14 15:39:44 (0h 14m ago)
State ID: 1581683984 -- spvc___1581683984___loc___exp-test (loc) -- exp -- 2020-02-14 14:39:44 (1h 14m ago)
State ID: 1581680384 -- spvc___1581680384___loc___exp-test (loc) -- exp -- 2020-02-14 13:39:44 (2h 14m ago)
State ID: 1581676784 -- spvc___1581676784___loc___exp-test (loc) -- exp -- 2020-02-14 12:39:44 (3h 14m ago)
State ID: 1581673184 -- spvc___1581673184___loc___exp-test (loc) -- exp -- 2020-02-14 11:39:44 (4h 14m ago)
State ID: 1581665984 -- spvc___1581665984___loc___exp-test (loc) -- exp -- 2020-02-14 09:39:44 (6h 14m ago)
State ID: 1581655184 -- spvc___1581655184___loc___exp-test (loc) -- exp -- 2020-02-14 06:39:44 (9h 14m ago)
State ID: 1581640784 -- spvc___1581640784___loc___exp-test (loc) -- exp -- 2020-02-14 02:39:44 (13h 14m ago)
State ID: 1581629984 -- spvc___1581629984___loc___exp-test (loc) -- exp -- 2020-02-13 23:39:44 (16h 14m ago)
State ID: 1581604784 -- spvc___1581604784___loc___exp-test (loc) -- exp -- 2020-02-13 16:39:44 (23h 14m ago)
State ID: 1581575984 -- spvc___1581575984___loc___exp-test (loc) -- exp -- 2020-02-13 08:39:44 (1d 7h 14m ago)
State ID: 1581543584 -- spvc___1581543584___loc___exp-test (loc) -- exp -- 2020-02-12 23:39:44 (1d 16h 14m ago)

keep-daily

The mode has two parameters - interval and days. It will create snapshots at every interval hours. All snapshots created in the last 24 hours will be kept and snapshots older than 24 hours will be reduced to one per day. All snapshots older than days will be deleted. Essentially, it is the same as stopgap-remote (see below), but all snapshots are kept locally.

Example for a virtual machine snapshotted with keep-daily, interval=1, days=7:

State ID: 1581687584 -- VM 1024 @ 1581687584 (loc) -- volumes: test -- keep-daily -- 2020-02-14 15:39:44 (0h 14m ago)
State ID: 1581683984 -- VM 1024 @ 1581683984 (loc) -- volumes: test -- keep-daily -- 2020-02-14 14:39:44 (1h 14m ago)
State ID: 1581680384 -- VM 1024 @ 1581680384 (loc) -- volumes: test -- keep-daily -- 2020-02-14 13:39:44 (2h 14m ago)
State ID: 1581676784 -- VM 1024 @ 1581676784 (loc) -- volumes: test -- keep-daily -- 2020-02-14 12:39:44 (3h 14m ago)
State ID: 1581673184 -- VM 1024 @ 1581673184 (loc) -- volumes: test -- keep-daily -- 2020-02-14 11:39:44 (4h 14m ago)
State ID: 1581669584 -- VM 1024 @ 1581669584 (loc) -- volumes: test -- keep-daily -- 2020-02-14 10:39:44 (5h 14m ago)
State ID: 1581665984 -- VM 1024 @ 1581665984 (loc) -- volumes: test -- keep-daily -- 2020-02-14 09:39:44 (6h 14m ago)
State ID: 1581662384 -- VM 1024 @ 1581662384 (loc) -- volumes: test -- keep-daily -- 2020-02-14 08:39:44 (7h 14m ago)
State ID: 1581658784 -- VM 1024 @ 1581658784 (loc) -- volumes: test -- keep-daily -- 2020-02-14 07:39:44 (8h 14m ago)
State ID: 1581655184 -- VM 1024 @ 1581655184 (loc) -- volumes: test -- keep-daily -- 2020-02-14 06:39:44 (9h 14m ago)
State ID: 1581651584 -- VM 1024 @ 1581651584 (loc) -- volumes: test -- keep-daily -- 2020-02-14 05:39:44 (10h 14m ago)
State ID: 1581647984 -- VM 1024 @ 1581647984 (loc) -- volumes: test -- keep-daily -- 2020-02-14 04:39:44 (11h 14m ago)
State ID: 1581644384 -- VM 1024 @ 1581644384 (loc) -- volumes: test -- keep-daily -- 2020-02-14 03:39:44 (12h 14m ago)
State ID: 1581640784 -- VM 1024 @ 1581640784 (loc) -- volumes: test -- keep-daily -- 2020-02-14 02:39:44 (13h 14m ago)
State ID: 1581637184 -- VM 1024 @ 1581637184 (loc) -- volumes: test -- keep-daily -- 2020-02-14 01:39:44 (14h 14m ago)
State ID: 1581633584 -- VM 1024 @ 1581633584 (loc) -- volumes: test -- keep-daily -- 2020-02-14 00:39:44 (15h 14m ago)
State ID: 1581629984 -- VM 1024 @ 1581629984 (loc) -- volumes: test -- keep-daily -- 2020-02-13 23:39:44 (16h 14m ago)
State ID: 1581626384 -- VM 1024 @ 1581626384 (loc) -- volumes: test -- keep-daily -- 2020-02-13 22:39:44 (17h 14m ago)
State ID: 1581622784 -- VM 1024 @ 1581622784 (loc) -- volumes: test -- keep-daily -- 2020-02-13 21:39:44 (18h 14m ago)
State ID: 1581619184 -- VM 1024 @ 1581619184 (loc) -- volumes: test -- keep-daily -- 2020-02-13 20:39:44 (19h 14m ago)
State ID: 1581615584 -- VM 1024 @ 1581615584 (loc) -- volumes: test -- keep-daily -- 2020-02-13 19:39:44 (20h 14m ago)
State ID: 1581611984 -- VM 1024 @ 1581611984 (loc) -- volumes: test -- keep-daily -- 2020-02-13 18:39:44 (21h 14m ago)
State ID: 1581608384 -- VM 1024 @ 1581608384 (loc) -- volumes: test -- keep-daily -- 2020-02-13 17:39:44 (22h 14m ago)
State ID: 1581604784 -- VM 1024 @ 1581604784 (loc) -- volumes: test -- keep-daily -- 2020-02-13 16:39:44 (23h 14m ago)
State ID: 1581583184 -- VM 1024 @ 1581583184 (loc) -- volumes: test -- keep-daily -- 2020-02-13 10:39:44 (1d 5h 14m ago)
State ID: 1581496784 -- VM 1024 @ 1581496784 (loc) -- volumes: test -- keep-daily -- 2020-02-12 10:39:44 (2d 5h 14m ago)
State ID: 1581410384 -- VM 1024 @ 1581410384 (loc) -- volumes: test -- keep-daily -- 2020-02-11 10:39:44 (3d 5h 14m ago)
State ID: 1581323984 -- VM 1024 @ 1581323984 (loc) -- volumes: test -- keep-daily -- 2020-02-10 10:39:44 (4d 5h 14m ago)
State ID: 1581237584 -- VM 1024 @ 1581237584 (loc) -- volumes: test -- keep-daily -- 2020-02-09 10:39:44 (5d 5h 14m ago)
State ID: 1581151184 -- VM 1024 @ 1581151184 (loc) -- volumes: test -- keep-daily -- 2020-02-08 10:39:44 (6d 5h 14m ago)
State ID: 1581064784 -- VM 1024 @ 1581064784 (loc) -- volumes: test -- keep-daily -- 2020-02-07 10:39:44 (7d 5h 14m ago)

nosnap

Use this mode for a policy that does not create snapshots. Nosnap policies are usually used in two scenarios - as a default that is overriden per entity, or as a override of another default.

Remote

Remote policies are able to keep snapshots in a remote location. A default remote can be set for all policies and overriden for each policy.

By default, backup clusters will copy snapshots in the SP_BRIDGE_TEMPLATE template. This can be overriden by setting template=<XXX> in the [volumecare] section of the configuration. Templates can also be overriden per-policy by setting template=<YYY> in each policy definition section ([policy:<PPP>]).

Primary clusters still support the global and per-policy template override.

For each policy a head_template=<HHH> can be set in the backup clusters. This will instruct the service to keep the newest transferred snapshot in the <HHH> template. After a newer snapshot is present, snapshots will be moved to their main template.

Warning

Please note, that the per-policy template option can be different in a primary and backup cluster for the same policy. Each volumecare instance will interpret it locally and search for that template in its own cluster. It is also non-mandatory, so it can be used only in one of the locations if necessary.

basic-mirror (stopgap-mirror)

This mode is available only in primary/backup/primary_backup mode and has two parameters - interval and snapshots. Essentially it is the same as the local stopgap mode (see above), but copies all snapshots to the backup cluster as well.

Example for a volume snapshotted with stopgap-mirror, interval=24, snapshots=3:

State ID: 1581867697 -- spvc___1581867697___loc___test (loc) -- stopgap-mirror -- 2020-02-16 17:41:37 (16h 27m ago)
State ID: 1581781297 -- spvc___1581781297___loc___test (loc) -- stopgap-mirror -- 2020-02-15 17:41:37 (1d 16h 27m ago)
State ID: 1581694897 -- spvc___1581694897___loc___test (loc) -- stopgap-mirror -- 2020-02-14 17:41:37 (2d 16h 27m ago)
State ID: 1581867697 -- spvc___1581867697___loc2___test (loc2) -- stopgap-mirror -- 2020-02-16 17:41:37 (16h 27m ago)
State ID: 1581781297 -- spvc___1581781297___loc2___test (loc2) -- stopgap-mirror -- 2020-02-15 17:41:37 (1d 16h 27m ago)
State ID: 1581694897 -- spvc___1581694897___loc2___test (loc2) -- stopgap-mirror -- 2020-02-14 17:41:37 (2d 16h 27m ago)

basic-remote

Added in version 1.12. Essentially it follows the same logic as the stopgap and stopgap-mirror modes (see above), but keeps all snapshots except the most recent one in the backup cluster only. The parameters are also the same - interval and snapshots.

Example for a volume snapshotted with basic-remote, interval=24, snapshots=3:

State ID: 1581867697 -- spvc___1581867697___loc___test (loc) -- basic-remote -- 2020-02-16 17:41:37 (16h 27m ago)
State ID: 1581867697 -- spvc___1581867697___loc2___test (loc2) -- basic-remote -- 2020-02-16 17:41:37 (16h 27m ago)
State ID: 1581781297 -- spvc___1581781297___loc2___test (loc2) -- basic-remote -- 2020-02-15 17:41:37 (1d 16h 27m ago)
State ID: 1581694897 -- spvc___1581694897___loc2___test (loc2) -- basic-remote -- 2020-02-14 17:41:37 (2d 16h 27m ago)

keep-daily-remote (stopgap-remote)

This mode is available only in primary/backup/primary_backup mode and has two parameters - interval and days. It creates snapshots at every interval hours, and copies all of them in the configured backup cluster. The service will keep all snapshots from the last 24 hours in both clusters. Snapshots older than 24 hours will be reduced to one per day and will be kept in the backup cluster only. Snapshots older than days days will be deleted.

Example for a virtual machine snapshotted with stopgap-remote, interval=1, days=7:

State ID: 1581687584 -- VM 1572 @ 1581687584 (loc) -- volumes: test -- stopgap-remote -- 2020-02-14 15:39:44 (0h 14m ago)
State ID: 1581683984 -- VM 1572 @ 1581683984 (loc) -- volumes: test -- stopgap-remote -- 2020-02-14 14:39:44 (1h 14m ago)
State ID: 1581680384 -- VM 1572 @ 1581680384 (loc) -- volumes: test -- stopgap-remote -- 2020-02-14 13:39:44 (2h 14m ago)
State ID: 1581676784 -- VM 1572 @ 1581676784 (loc) -- volumes: test -- stopgap-remote -- 2020-02-14 12:39:44 (3h 14m ago)
State ID: 1581673184 -- VM 1572 @ 1581673184 (loc) -- volumes: test -- stopgap-remote -- 2020-02-14 11:39:44 (4h 14m ago)
State ID: 1581669584 -- VM 1572 @ 1581669584 (loc) -- volumes: test -- stopgap-remote -- 2020-02-14 10:39:44 (5h 14m ago)
State ID: 1581665984 -- VM 1572 @ 1581665984 (loc) -- volumes: test -- stopgap-remote -- 2020-02-14 09:39:44 (6h 14m ago)
State ID: 1581662384 -- VM 1572 @ 1581662384 (loc) -- volumes: test -- stopgap-remote -- 2020-02-14 08:39:44 (7h 14m ago)
State ID: 1581658784 -- VM 1572 @ 1581658784 (loc) -- volumes: test -- stopgap-remote -- 2020-02-14 07:39:44 (8h 14m ago)
State ID: 1581655184 -- VM 1572 @ 1581655184 (loc) -- volumes: test -- stopgap-remote -- 2020-02-14 06:39:44 (9h 14m ago)
State ID: 1581651584 -- VM 1572 @ 1581651584 (loc) -- volumes: test -- stopgap-remote -- 2020-02-14 05:39:44 (10h 14m ago)
State ID: 1581647984 -- VM 1572 @ 1581647984 (loc) -- volumes: test -- stopgap-remote -- 2020-02-14 04:39:44 (11h 14m ago)
State ID: 1581644384 -- VM 1572 @ 1581644384 (loc) -- volumes: test -- stopgap-remote -- 2020-02-14 03:39:44 (12h 14m ago)
State ID: 1581640784 -- VM 1572 @ 1581640784 (loc) -- volumes: test -- stopgap-remote -- 2020-02-14 02:39:44 (13h 14m ago)
State ID: 1581637184 -- VM 1572 @ 1581637184 (loc) -- volumes: test -- stopgap-remote -- 2020-02-14 01:39:44 (14h 14m ago)
State ID: 1581633584 -- VM 1572 @ 1581633584 (loc) -- volumes: test -- stopgap-remote -- 2020-02-14 00:39:44 (15h 14m ago)
State ID: 1581629984 -- VM 1572 @ 1581629984 (loc) -- volumes: test -- stopgap-remote -- 2020-02-13 23:39:44 (16h 14m ago)
State ID: 1581626384 -- VM 1572 @ 1581626384 (loc) -- volumes: test -- stopgap-remote -- 2020-02-13 22:39:44 (17h 14m ago)
State ID: 1581622784 -- VM 1572 @ 1581622784 (loc) -- volumes: test -- stopgap-remote -- 2020-02-13 21:39:44 (18h 14m ago)
State ID: 1581619184 -- VM 1572 @ 1581619184 (loc) -- volumes: test -- stopgap-remote -- 2020-02-13 20:39:44 (19h 14m ago)
State ID: 1581615584 -- VM 1572 @ 1581615584 (loc) -- volumes: test -- stopgap-remote -- 2020-02-13 19:39:44 (20h 14m ago)
State ID: 1581611984 -- VM 1572 @ 1581611984 (loc) -- volumes: test -- stopgap-remote -- 2020-02-13 18:39:44 (21h 14m ago)
State ID: 1581608384 -- VM 1572 @ 1581608384 (loc) -- volumes: test -- stopgap-remote -- 2020-02-13 17:39:44 (22h 14m ago)
State ID: 1581604784 -- VM 1572 @ 1581604784 (loc) -- volumes: test -- stopgap-remote -- 2020-02-13 16:39:44 (23h 14m ago)
State ID: 1581687584 -- VM 1572 @ 1581687584 (loc2) -- volumes: test -- stopgap-remote -- 2020-02-14 15:39:44 (0h 14m ago)
State ID: 1581683984 -- VM 1572 @ 1581683984 (loc2) -- volumes: test -- stopgap-remote -- 2020-02-14 14:39:44 (1h 14m ago)
State ID: 1581680384 -- VM 1572 @ 1581680384 (loc2) -- volumes: test -- stopgap-remote -- 2020-02-14 13:39:44 (2h 14m ago)
State ID: 1581676784 -- VM 1572 @ 1581676784 (loc2) -- volumes: test -- stopgap-remote -- 2020-02-14 12:39:44 (3h 14m ago)
State ID: 1581673184 -- VM 1572 @ 1581673184 (loc2) -- volumes: test -- stopgap-remote -- 2020-02-14 11:39:44 (4h 14m ago)
State ID: 1581669584 -- VM 1572 @ 1581669584 (loc2) -- volumes: test -- stopgap-remote -- 2020-02-14 10:39:44 (5h 14m ago)
State ID: 1581665984 -- VM 1572 @ 1581665984 (loc2) -- volumes: test -- stopgap-remote -- 2020-02-14 09:39:44 (6h 14m ago)
State ID: 1581662384 -- VM 1572 @ 1581662384 (loc2) -- volumes: test -- stopgap-remote -- 2020-02-14 08:39:44 (7h 14m ago)
State ID: 1581658784 -- VM 1572 @ 1581658784 (loc2) -- volumes: test -- stopgap-remote -- 2020-02-14 07:39:44 (8h 14m ago)
State ID: 1581655184 -- VM 1572 @ 1581655184 (loc2) -- volumes: test -- stopgap-remote -- 2020-02-14 06:39:44 (9h 14m ago)
State ID: 1581651584 -- VM 1572 @ 1581651584 (loc2) -- volumes: test -- stopgap-remote -- 2020-02-14 05:39:44 (10h 14m ago)
State ID: 1581647984 -- VM 1572 @ 1581647984 (loc2) -- volumes: test -- stopgap-remote -- 2020-02-14 04:39:44 (11h 14m ago)
State ID: 1581644384 -- VM 1572 @ 1581644384 (loc2) -- volumes: test -- stopgap-remote -- 2020-02-14 03:39:44 (12h 14m ago)
State ID: 1581640784 -- VM 1572 @ 1581640784 (loc2) -- volumes: test -- stopgap-remote -- 2020-02-14 02:39:44 (13h 14m ago)
State ID: 1581637184 -- VM 1572 @ 1581637184 (loc2) -- volumes: test -- stopgap-remote -- 2020-02-14 01:39:44 (14h 14m ago)
State ID: 1581633584 -- VM 1572 @ 1581633584 (loc2) -- volumes: test -- stopgap-remote -- 2020-02-14 00:39:44 (15h 14m ago)
State ID: 1581629984 -- VM 1572 @ 1581629984 (loc2) -- volumes: test -- stopgap-remote -- 2020-02-13 23:39:44 (16h 14m ago)
State ID: 1581626384 -- VM 1572 @ 1581626384 (loc2) -- volumes: test -- stopgap-remote -- 2020-02-13 22:39:44 (17h 14m ago)
State ID: 1581622784 -- VM 1572 @ 1581622784 (loc2) -- volumes: test -- stopgap-remote -- 2020-02-13 21:39:44 (18h 14m ago)
State ID: 1581619184 -- VM 1572 @ 1581619184 (loc2) -- volumes: test -- stopgap-remote -- 2020-02-13 20:39:44 (19h 14m ago)
State ID: 1581615584 -- VM 1572 @ 1581615584 (loc2) -- volumes: test -- stopgap-remote -- 2020-02-13 19:39:44 (20h 14m ago)
State ID: 1581611984 -- VM 1572 @ 1581611984 (loc2) -- volumes: test -- stopgap-remote -- 2020-02-13 18:39:44 (21h 14m ago)
State ID: 1581608384 -- VM 1572 @ 1581608384 (loc2) -- volumes: test -- stopgap-remote -- 2020-02-13 17:39:44 (22h 14m ago)
State ID: 1581604784 -- VM 1572 @ 1581604784 (loc2) -- volumes: test -- stopgap-remote -- 2020-02-13 16:39:44 (23h 14m ago)
State ID: 1581583184 -- VM 1572 @ 1581583184 (loc2) -- volumes: test -- stopgap-remote -- 2020-02-13 10:39:44 (1d 5h 14m ago)
State ID: 1581496784 -- VM 1572 @ 1581496784 (loc2) -- volumes: test -- stopgap-remote -- 2020-02-12 10:39:44 (2d 5h 14m ago)
State ID: 1581410384 -- VM 1572 @ 1581410384 (loc2) -- volumes: test -- stopgap-remote -- 2020-02-11 10:39:44 (3d 5h 14m ago)
State ID: 1581323984 -- VM 1572 @ 1581323984 (loc2) -- volumes: test -- stopgap-remote -- 2020-02-10 10:39:44 (4d 5h 14m ago)
State ID: 1581237584 -- VM 1572 @ 1581237584 (loc2) -- volumes: test -- stopgap-remote -- 2020-02-09 10:39:44 (5d 5h 14m ago)
State ID: 1581151184 -- VM 1572 @ 1581151184 (loc2) -- volumes: test -- stopgap-remote -- 2020-02-08 10:39:44 (6d 5h 14m ago)
State ID: 1581064784 -- VM 1572 @ 1581064784 (loc2) -- volumes: test -- stopgap-remote -- 2020-02-07 10:39:44 (7d 5h 14m ago)

keep-daily-split

This mode is available only in primary/backup/primary_backup mode and has two parameters - interval and days. It creates snapshots at every interval hours. The service will keep all snapshots from the last 24 hours in the primary clusters. In the backup cluster snapshots will be reduced to one per day. Snapshots older than days days will be deleted.

Example for a virtual machine snapshotted with keep-daily-split, interval=1, days=7:

State ID: 1581687584 -- VM 1572 @ 1581687584 (loc) -- volumes: test -- keep-daily-split -- 2020-02-14 15:39:44 (0h 14m ago)
State ID: 1581683984 -- VM 1572 @ 1581683984 (loc) -- volumes: test -- keep-daily-split -- 2020-02-14 14:39:44 (1h 14m ago)
State ID: 1581680384 -- VM 1572 @ 1581680384 (loc) -- volumes: test -- keep-daily-split -- 2020-02-14 13:39:44 (2h 14m ago)
State ID: 1581676784 -- VM 1572 @ 1581676784 (loc) -- volumes: test -- keep-daily-split -- 2020-02-14 12:39:44 (3h 14m ago)
State ID: 1581673184 -- VM 1572 @ 1581673184 (loc) -- volumes: test -- keep-daily-split -- 2020-02-14 11:39:44 (4h 14m ago)
State ID: 1581669584 -- VM 1572 @ 1581669584 (loc) -- volumes: test -- keep-daily-split -- 2020-02-14 10:39:44 (5h 14m ago)
State ID: 1581665984 -- VM 1572 @ 1581665984 (loc) -- volumes: test -- keep-daily-split -- 2020-02-14 09:39:44 (6h 14m ago)
State ID: 1581662384 -- VM 1572 @ 1581662384 (loc) -- volumes: test -- keep-daily-split -- 2020-02-14 08:39:44 (7h 14m ago)
State ID: 1581658784 -- VM 1572 @ 1581658784 (loc) -- volumes: test -- keep-daily-split -- 2020-02-14 07:39:44 (8h 14m ago)
State ID: 1581655184 -- VM 1572 @ 1581655184 (loc) -- volumes: test -- keep-daily-split -- 2020-02-14 06:39:44 (9h 14m ago)
State ID: 1581651584 -- VM 1572 @ 1581651584 (loc) -- volumes: test -- keep-daily-split -- 2020-02-14 05:39:44 (10h 14m ago)
State ID: 1581647984 -- VM 1572 @ 1581647984 (loc) -- volumes: test -- keep-daily-split -- 2020-02-14 04:39:44 (11h 14m ago)
State ID: 1581644384 -- VM 1572 @ 1581644384 (loc) -- volumes: test -- keep-daily-split -- 2020-02-14 03:39:44 (12h 14m ago)
State ID: 1581640784 -- VM 1572 @ 1581640784 (loc) -- volumes: test -- keep-daily-split -- 2020-02-14 02:39:44 (13h 14m ago)
State ID: 1581637184 -- VM 1572 @ 1581637184 (loc) -- volumes: test -- keep-daily-split -- 2020-02-14 01:39:44 (14h 14m ago)
State ID: 1581633584 -- VM 1572 @ 1581633584 (loc) -- volumes: test -- keep-daily-split -- 2020-02-14 00:39:44 (15h 14m ago)
State ID: 1581629984 -- VM 1572 @ 1581629984 (loc) -- volumes: test -- keep-daily-split -- 2020-02-13 23:39:44 (16h 14m ago)
State ID: 1581626384 -- VM 1572 @ 1581626384 (loc) -- volumes: test -- keep-daily-split -- 2020-02-13 22:39:44 (17h 14m ago)
State ID: 1581622784 -- VM 1572 @ 1581622784 (loc) -- volumes: test -- keep-daily-split -- 2020-02-13 21:39:44 (18h 14m ago)
State ID: 1581619184 -- VM 1572 @ 1581619184 (loc) -- volumes: test -- keep-daily-split -- 2020-02-13 20:39:44 (19h 14m ago)
State ID: 1581615584 -- VM 1572 @ 1581615584 (loc) -- volumes: test -- keep-daily-split -- 2020-02-13 19:39:44 (20h 14m ago)
State ID: 1581611984 -- VM 1572 @ 1581611984 (loc) -- volumes: test -- keep-daily-split -- 2020-02-13 18:39:44 (21h 14m ago)
State ID: 1581608384 -- VM 1572 @ 1581608384 (loc) -- volumes: test -- keep-daily-split -- 2020-02-13 17:39:44 (22h 14m ago)
State ID: 1581604784 -- VM 1572 @ 1581604784 (loc) -- volumes: test -- keep-daily-split -- 2020-02-13 16:39:44 (23h 14m ago)
State ID: 1581669584 -- VM 1572 @ 1581669584 (loc2) -- volumes: test -- keep-daily-split -- 2020-02-14 10:39:44 (5h 14m ago)
State ID: 1581583184 -- VM 1572 @ 1581583184 (loc2) -- volumes: test -- keep-daily-split -- 2020-02-13 10:39:44 (1d 5h 14m ago)
State ID: 1581496784 -- VM 1572 @ 1581496784 (loc2) -- volumes: test -- keep-daily-split -- 2020-02-12 10:39:44 (2d 5h 14m ago)
State ID: 1581410384 -- VM 1572 @ 1581410384 (loc2) -- volumes: test -- keep-daily-split -- 2020-02-11 10:39:44 (3d 5h 14m ago)
State ID: 1581323984 -- VM 1572 @ 1581323984 (loc2) -- volumes: test -- keep-daily-split -- 2020-02-10 10:39:44 (4d 5h 14m ago)
State ID: 1581237584 -- VM 1572 @ 1581237584 (loc2) -- volumes: test -- keep-daily-split -- 2020-02-09 10:39:44 (5d 5h 14m ago)
State ID: 1581151184 -- VM 1572 @ 1581151184 (loc2) -- volumes: test -- keep-daily-split -- 2020-02-08 10:39:44 (6d 5h 14m ago)
State ID: 1581064784 -- VM 1572 @ 1581064784 (loc2) -- volumes: test -- keep-daily-split -- 2020-02-07 10:39:44 (7d 5h 14m ago)

mhdm (minutes-hours-days-months)

This mode is available only in primary/backup/primary_backup mode and has four parameters - minute_interval, minute_count, days and months. It creates snapshots at every minute_interval minutes. The service will keep all minute_count of these snapshots. All older snapshots from the last 24h will be reduced to one per hour in the primary clusters. Backup clusters will keep daily snapshots for days days. Older snapshots will be reduced to one per month. Snapshots older than months days will be deleted.

Example for a virtual machine snapshotted with mhdm, with minute_interval=15, minute_count=16, days=7, months=6

State ID: 1581687584 -- VM 1572 @ 1581687584 (loc) -- volumes: test -- mhdm -- 2020-02-14 15:39:44 (0h 14m ago)
State ID: 1581686684 -- VM 1572 @ 1581686684 (loc) -- volumes: test -- mhdm -- 2020-14-02 15:24:44 (0h 29m ago)
State ID: 1581685784 -- VM 1572 @ 1581685784 (loc) -- volumes: test -- mhdm -- 2020-14-02 15:09:44 (0h 44m ago)
State ID: 1581684884 -- VM 1572 @ 1581684884 (loc) -- volumes: test -- mhdm -- 2020-14-02 14:54:44 (0h 59m ago)
State ID: 1581683984 -- VM 1572 @ 1581683984 (loc) -- volumes: test -- mhdm -- 2020-14-02 14:39:44 (1h 14m ago)
State ID: 1581683084 -- VM 1572 @ 1581683084 (loc) -- volumes: test -- mhdm -- 2020-14-02 14:24:44 (1h 29m ago)
State ID: 1581682184 -- VM 1572 @ 1581682184 (loc) -- volumes: test -- mhdm -- 2020-14-02 14:09:44 (1h 44m ago)
State ID: 1581681284 -- VM 1572 @ 1581681284 (loc) -- volumes: test -- mhdm -- 2020-14-02 13:54:44 (1h 59m ago)
State ID: 1581680384 -- VM 1572 @ 1581680384 (loc) -- volumes: test -- mhdm -- 2020-14-02 13:39:44 (2h 14m ago)
State ID: 1581679484 -- VM 1572 @ 1581679484 (loc) -- volumes: test -- mhdm -- 2020-14-02 13:24:44 (2h 29m ago)
State ID: 1581678584 -- VM 1572 @ 1581678584 (loc) -- volumes: test -- mhdm -- 2020-14-02 13:09:44 (2h 44m ago)
State ID: 1581677684 -- VM 1572 @ 1581677684 (loc) -- volumes: test -- mhdm -- 2020-14-02 12:54:44 (2h 59m ago)
State ID: 1581676784 -- VM 1572 @ 1581676784 (loc) -- volumes: test -- mhdm -- 2020-14-02 12:39:44 (3h 14m ago)
State ID: 1581675884 -- VM 1572 @ 1581675884 (loc) -- volumes: test -- mhdm -- 2020-14-02 12:24:44 (3h 29m ago)
State ID: 1581674984 -- VM 1572 @ 1581674984 (loc) -- volumes: test -- mhdm -- 2020-14-02 12:09:44 (3h 44m ago)
State ID: 1581674084 -- VM 1572 @ 1581674084 (loc) -- volumes: test -- mhdm -- 2020-14-02 11:54:44 (3h 59m ago)
State ID: 1581673184 -- VM 1572 @ 1581673184 (loc) -- volumes: test -- mhdm -- 2020-14-02 11:39:44 (4h 14m ago)
State ID: 1581669584 -- VM 1572 @ 1581669584 (loc) -- volumes: test -- mhdm -- 2020-02-14 10:39:44 (5h 14m ago)
State ID: 1581665984 -- VM 1572 @ 1581665984 (loc) -- volumes: test -- mhdm -- 2020-02-14 09:39:44 (6h 14m ago)
State ID: 1581662384 -- VM 1572 @ 1581662384 (loc) -- volumes: test -- mhdm -- 2020-02-14 08:39:44 (7h 14m ago)
State ID: 1581658784 -- VM 1572 @ 1581658784 (loc) -- volumes: test -- mhdm -- 2020-02-14 07:39:44 (8h 14m ago)
State ID: 1581655184 -- VM 1572 @ 1581655184 (loc) -- volumes: test -- mhdm -- 2020-02-14 06:39:44 (9h 14m ago)
State ID: 1581651584 -- VM 1572 @ 1581651584 (loc) -- volumes: test -- mhdm -- 2020-02-14 05:39:44 (10h 14m ago)
State ID: 1581647984 -- VM 1572 @ 1581647984 (loc) -- volumes: test -- mhdm -- 2020-02-14 04:39:44 (11h 14m ago)
State ID: 1581644384 -- VM 1572 @ 1581644384 (loc) -- volumes: test -- mhdm -- 2020-02-14 03:39:44 (12h 14m ago)
State ID: 1581640784 -- VM 1572 @ 1581640784 (loc) -- volumes: test -- mhdm -- 2020-02-14 02:39:44 (13h 14m ago)
State ID: 1581637184 -- VM 1572 @ 1581637184 (loc) -- volumes: test -- mhdm -- 2020-02-14 01:39:44 (14h 14m ago)
State ID: 1581633584 -- VM 1572 @ 1581633584 (loc) -- volumes: test -- mhdm -- 2020-02-14 00:39:44 (15h 14m ago)
State ID: 1581629984 -- VM 1572 @ 1581629984 (loc) -- volumes: test -- mhdm -- 2020-02-13 23:39:44 (16h 14m ago)
State ID: 1581626384 -- VM 1572 @ 1581626384 (loc) -- volumes: test -- mhdm -- 2020-02-13 22:39:44 (17h 14m ago)
State ID: 1581622784 -- VM 1572 @ 1581622784 (loc) -- volumes: test -- mhdm -- 2020-02-13 21:39:44 (18h 14m ago)
State ID: 1581619184 -- VM 1572 @ 1581619184 (loc) -- volumes: test -- mhdm -- 2020-02-13 20:39:44 (19h 14m ago)
State ID: 1581615584 -- VM 1572 @ 1581615584 (loc) -- volumes: test -- mhdm -- 2020-02-13 19:39:44 (20h 14m ago)
State ID: 1581611984 -- VM 1572 @ 1581611984 (loc) -- volumes: test -- mhdm -- 2020-02-13 18:39:44 (21h 14m ago)
State ID: 1581608384 -- VM 1572 @ 1581608384 (loc) -- volumes: test -- mhdm -- 2020-02-13 17:39:44 (22h 14m ago)
State ID: 1581604784 -- VM 1572 @ 1581604784 (loc) -- volumes: test -- mhdm -- 2020-02-13 16:39:44 (23h 14m ago)
State ID: 1581669584 -- VM 1572 @ 1581669584 (loc2) -- volumes: test -- mhdm -- 2020-02-14 10:39:44 (5h 14m ago)
State ID: 1581583184 -- VM 1572 @ 1581583184 (loc2) -- volumes: test -- mhdm -- 2020-02-13 10:39:44 (1d 5h 14m ago)
State ID: 1581496784 -- VM 1572 @ 1581496784 (loc2) -- volumes: test -- mhdm -- 2020-02-12 10:39:44 (2d 5h 14m ago)
State ID: 1581410384 -- VM 1572 @ 1581410384 (loc2) -- volumes: test -- mhdm -- 2020-02-11 10:39:44 (3d 5h 14m ago)
State ID: 1581323984 -- VM 1572 @ 1581323984 (loc2) -- volumes: test -- mhdm -- 2020-02-10 10:39:44 (4d 5h 14m ago)
State ID: 1581237584 -- VM 1572 @ 1581237584 (loc2) -- volumes: test -- mhdm -- 2020-02-09 10:39:44 (5d 5h 14m ago)
State ID: 1581151184 -- VM 1572 @ 1581151184 (loc2) -- volumes: test -- mhdm -- 2020-02-08 10:39:44 (6d 5h 14m ago)
State ID: 1581064784 -- VM 1572 @ 1581064784 (loc2) -- volumes: test -- mhdm -- 2020-02-07 10:39:44 (7d 5h 14m ago)
State ID: 1578472784 -- VM 1572 @ 1578472784 (loc2) -- volumes: test -- mhdm -- 2020-08-01 10:39:44 (37d 5h 14m ago)
State ID: 1575880784 -- VM 1572 @ 1575880784 (loc2) -- volumes: test -- mhdm -- 2019-09-12 10:39:44 (67d 5h 14m ago)
State ID: 1573288784 -- VM 1572 @ 1573288784 (loc2) -- volumes: test -- mhdm -- 2019-09-11 10:39:44 (97d 5h 14m ago)
State ID: 1570696784 -- VM 1572 @ 1570696784 (loc2) -- volumes: test -- mhdm -- 2019-10-10 11:39:44 (127d 5h 14m ago)
State ID: 1568104784 -- VM 1572 @ 1568104784 (loc2) -- volumes: test -- mhdm -- 2019-10-09 11:39:44 (157d 5h 14m ago)
State ID: 1565512784 -- VM 1572 @ 1565512784 (loc2) -- volumes: test -- mhdm -- 2019-11-08 11:39:44 (187d 5h 14m ago)

remote-backup

This mode is available only in primary/backup/primary_backup mode and has a few parameters - minute_interval, keep_minutely, keep_hourly, keep_weekly, keep_daily, keep_monthly and keep_local. It creates snapshots at every minute_interval minutes. The service will keep all keep_minutely of these snapshots. In addition to these, one snapshot from the last keep_hourly hours will be kept. Similarly, one snapshot from each of the last keep_daily days, keep_weekly weeks and keep_montly months will be kept. All snapshots are kept on the remote site. The primary location will keep only the last keep_local snapshots (defaults to 1, can be set to 0).

Example for a virtual machine snapshotted with remote-backup, with minute_interval=15, keep_minutely=2, keep_hourly=8, keep_daily=7, keep_weekly=2, keep_monthly=7

State ID: 1581687584 -- VM 1572 @ 1581687584 (loc) -- volumes: test -- mhdm -- 2020-02-14 15:39:44 (0h 14m ago)       | minute, hour (local)
State ID: 1581687584 -- VM 1572 @ 1581687584 (loc2) -- volumes: test -- mhdm -- 2020-02-14 15:39:44 (0h 14m ago)      | minute, hour
State ID: 1581686684 -- VM 1572 @ 1581686684 (loc2) -- volumes: test -- mhdm -- 2020-14-02 15:24:44 (0h 29m ago)      | minute
State ID: 1581683984 -- VM 1572 @ 1581683984 (loc2) -- volumes: test -- mhdm -- 2020-14-02 14:39:44 (1h 14m ago)      | hour
State ID: 1581680384 -- VM 1572 @ 1581680384 (loc2) -- volumes: test -- mhdm -- 2020-14-02 13:39:44 (2h 14m ago)      | hour
State ID: 1581676784 -- VM 1572 @ 1581676784 (loc2) -- volumes: test -- mhdm -- 2020-14-02 12:39:44 (3h 14m ago)      | hour
State ID: 1581673184 -- VM 1572 @ 1581673184 (loc2) -- volumes: test -- mhdm -- 2020-14-02 11:39:44 (4h 14m ago)      | hour
State ID: 1581669584 -- VM 1572 @ 1581669584 (loc2) -- volumes: test -- mhdm -- 2020-02-14 10:39:44 (5h 14m ago)      | hour, day
State ID: 1581665984 -- VM 1572 @ 1581665984 (loc2) -- volumes: test -- mhdm -- 2020-02-14 09:39:44 (6h 14m ago)      | hour
State ID: 1581662384 -- VM 1572 @ 1581662384 (loc2) -- volumes: test -- mhdm -- 2020-02-14 08:39:44 (7h 14m ago)      | hour
State ID: 1581583184 -- VM 1572 @ 1581583184 (loc2) -- volumes: test -- mhdm -- 2020-02-13 10:39:44 (1d 5h 14m ago)   | day
State ID: 1581496784 -- VM 1572 @ 1581496784 (loc2) -- volumes: test -- mhdm -- 2020-02-12 10:39:44 (2d 5h 14m ago)   | day
State ID: 1581410384 -- VM 1572 @ 1581410384 (loc2) -- volumes: test -- mhdm -- 2020-02-11 10:39:44 (3d 5h 14m ago)   | day, week
State ID: 1581323984 -- VM 1572 @ 1581323984 (loc2) -- volumes: test -- mhdm -- 2020-02-10 10:39:44 (4d 5h 14m ago)   | day
State ID: 1581237584 -- VM 1572 @ 1581237584 (loc2) -- volumes: test -- mhdm -- 2020-02-09 10:39:44 (5d 5h 14m ago)   | day
State ID: 1581151184 -- VM 1572 @ 1581151184 (loc2) -- volumes: test -- mhdm -- 2020-02-08 10:39:44 (6d 5h 14m ago)   | day
State ID: 1581064784 -- VM 1572 @ 1581064784 (loc2) -- volumes: test -- mhdm -- 2020-02-07 10:39:44 (7d 5h 14m ago)   | month
State ID: 1580805584 -- VM 1572 @ 1580805584 (loc2) -- volumes: test -- mhdm -- 2020-02-04 10:39:44 (10d 5h 14m ago)  | week
State ID: 1578472784 -- VM 1572 @ 1578472784 (loc2) -- volumes: test -- mhdm -- 2020-08-01 10:39:44 (37d 5h 14m ago)  | month
State ID: 1575880784 -- VM 1572 @ 1575880784 (loc2) -- volumes: test -- mhdm -- 2019-09-12 10:39:44 (67d 5h 14m ago)  | month
State ID: 1573288784 -- VM 1572 @ 1573288784 (loc2) -- volumes: test -- mhdm -- 2019-09-11 10:39:44 (97d 5h 14m ago)  | month
State ID: 1570696784 -- VM 1572 @ 1570696784 (loc2) -- volumes: test -- mhdm -- 2019-10-10 11:39:44 (127d 5h 14m ago) | month
State ID: 1568104784 -- VM 1572 @ 1568104784 (loc2) -- volumes: test -- mhdm -- 2019-10-09 11:39:44 (157d 5h 14m ago) | month
State ID: 1565512784 -- VM 1572 @ 1565512784 (loc2) -- volumes: test -- mhdm -- 2019-11-08 11:39:44 (187d 5h 14m ago) | month