已删除项目的保留策略
In some situations, after you configure and run backup jobs in Veeam Backup & Replication, you may want to change something in the virtual infrastructure or in the backup strategy. For example, you may remove some machines from the virtual infrastructure or move them to another location. You may also exclude some machines from jobs that have already run for some time.
Retention policy for deleted items functions differently depending on the per-machine backup file option. For details, see Per-Machine Backup Files.
- [If per-machine is enabled] When you enable retention policy for deleted items, Veeam Backup & Replication will remove data for machines that are no longer processed by the backup job from the backup repository.
- [If per-machine is disabled] When you enable retention policy for deleted items, Veeam Backup & Replication will remove the data about deleted items from the backup job and Veeam Backup & Replication database. The stored blocks of deleted machines will remain in the repository. The stored blocks of deleted machines will be removed only when the restore point retention limit is reached or by the compact full backup file option.
Retention policy for deleted items data is set at the level of the backup job. You must enable the Remove deleted items data after option in backup job settings and specify the period of time for which data for deleted items must be retained in the backup repository.
Mind the following:
- You must use retention policy for deleted items data carefully. It is strongly recommended that you set the retention policy to 3 days or more to prevent unwanted data loss.
- The Remove deleted items data after option lets you control data of deleted or excluded items. In addition to it, Veeam Backup & Replication applies general retention policy rules to maintain the necessary number of restore points in the backup chain. For more information, see Retention Policy.
How Retention Policy for Deleted Items Works
If you enable retention policy for deleted items data in backup job settings, Veeam Backup & Replication performs the following actions:
- If all machines in the job are processed with the Success status, at the end of the backup job session Veeam Backup & Replication gets a list of machines in the backup.
- For every machine in the backup, Veeam Backup & Replication checks the configuration database and gets the date of the latest backup job session completed with the Success status.
- Veeam Backup & Replication checks if any machine in the backup meets the following conditions:
- There are no successful backups for the machine for the last N days.
- There are no corrupted backups for the machine for the last N days.
Where N is the number of days specified in the Remove deleted items data after N days setting.
- If both conditions are true for some machine, Veeam Backup & Replication removes data for this machine from the backup. Note that if per-machine is disabled, it does not free up space in the backup repository. It marks the space as available to be overwritten, and this space is removed during subsequent job sessions or the full backup file compact operation.
Example 1
You create a backup job for 2 VMs and set the retention policy for deleted items to 5 days. The backup job runs once a day for 7 times and processes VMs in the following way:
- VM 1 is successfully processed during all job sessions.
- VM 2 is successfully processed during the 1st and 2nd backup job sessions. Before the 3rd job session, VM 2 is excluded from the job and is not processed by subsequent job sessions.
During the 8th job session, Veeam Backup & Replication will remove data for VM 2 from backups in the backup repository since there are no successful and corrupted backups for VM 2 for the last 5 days.
Example 2
You create a backup job for 2 machines and set the retention policy for deleted machines to 5 days. The backup job runs once a day for 7 times and processes machines in the following way:
- VM 1 is successfully processed during all job sessions.
- VM 2 is successfully processed during the 1st and 2nd backup job sessions. Starting from the 3rd job session, VM 2 fails to be processed, for example, due power loss while machine data is transported.
During the 8th job session, Veeam Backup & Replication will not remove data for VM 2 from backups in the backup repository. Even though there are no successfully created backups for VM 2 for the last 5 days, Veeam Backup & Replication will detect that the configuration database contains information about corrupted backups for VM 2 for the last 5 days.
Limitations for Retention Policy for Deleted Items
- [Per-machine is disabled] Retention policy for deleted items does not function if you enable synthetic full backups and/or active full backup.
[Per-machine is enabled] Retention policy for deleted items functions without limitations.
Related Topics