Short-Term Retention Policy

In this article

    Every successful backup job session creates a new restore point that lets you roll back VM data to an earlier point in time. To control the number of restore points in the backup chain, you must specify retention policy settings. The retention policy defines how many restore points you want to retain on disk and thus how ‘far’ you are able to roll back. After the allowed number of restore points is exceeded, Veeam Backup & Replication applies the retention policy - so it removes the earliest restore point from the backup chain.

    To define the retention policy for a backup job, you must specify the necessary number of restore points or days in the Retention policy field in the backup job settings. By default, Veeam Backup & Replication keeps restore points for the last 7 days. In the Storage step of the New Backup Job wizard you can select the following units of retention policy.

    • Restore points: Veeam Backup & Replication keeps the last N restore points, where N is the specified number of restore points.
    • Days: Veeam Backup & Replication keeps restore points created during the last N days, where N is the specified number of days.

    The daily retention policy can be helpful if you periodically create off-schedule backups. For example, you create a daily backup job and you want to store retention points for 14 calendar days. If you select 14 restore points and manually create off-schedule backups, there will be several restore points in one day. So, you will have retention points for less than 14 days. In this case, you can use the days option.

    Mind the following for the daily retention policy:

    • The minimum number of retained restore points is 3. This number does not depend on the number of days set in the retention policy. For example, the retention policy is set to 5 days. You launch the job after it was stopped for 10 days. Normally, Veeam Backup & Replication would delete all previous restore points. However, due to the minimum number of retained restore points, you will still have at least 3 restore points: the newly created restore point and the two previous ones.

    You can change the minimum number of retained restore points with a registry key. For more information, contact Veeam Customer Support.

    • If the backup job starts at the end of the day and finishes the next day, Veeam Backup & Replication assumes that the restore point is created at the moment when the backup job started. However, Veeam Backup & Replication starts counting retention policy days only after the backup job finishes processing VMs.
    • When determining whether the number of allowed days is exceeded, Veeam Backup & Replication ignores the day when the daily retention policy is applied.

    In fact, Veeam Backup & Replication keeps restore points for the N + 1 days, where N is the number of days that you specify in the job settings. In this case, Veeam Backup & Replication applies retention policy after the N+1 days are passed. For example, if you set retention policy to keep restore points for 6 days, Veeam Backup & Replication will keep restore points for 7 days and will apply the retention policy on the 8th day. Note that the retention period may be longer depending on the specified backup method.

    • When determining whether the number of allowed days is exceeded, Veeam Backup & Replication also counts days when the backup job did not create any backups.

    When the specified number is exceeded, the earliest restore points will be removed from the backup chain or merged with the next closest restore point. Veeam Backup & Replication handles restore points in different ways for forever forward incremental, forward incremental and reverse incremental backup chains:

    Note

    When the specified number of restore points or days is exceeded, Veeam Backup & Replication deletes the whole backup file, not separate VMs from it. For more information, see Removal of Restore Points.

    Short-Term Retention Policy 

    Related Topics