Host-based backup of VMware vSphere VMs.
Post Reply
adam900331
Veteran
Posts: 300
Liked: 22 times
Joined: Dec 01, 2019 7:27 pm
Contact:

Backup job retention policy and remove deleted items data after parameter

Post by adam900331 »

Hy!

When I configure a backup job, I can define the backup retention policy, I set it to 7days. When I go to the Maintenance pane on Advanced settings I can define the retention which is related to deleted items. Is the deleted items related, when I remove a VM from backup job or remove from production environment? What happens when I set the "Remove deleted items data after" parameter to 14? Is it overwrite the retention policy value (7 days) and can I restore ONLY the removed VM from backup job in 14 days?

Its not clear for me.

Thanks.
Mildur
Product Manager
Posts: 8678
Liked: 2276 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: Backup job retention policy and remove deleted items data after parameter

Post by Mildur »

Hi Adam

It's related to "remove a VM from backup job". When the VM is no longer processed by the backup job (VM was deleted/VM removed or excluded from the job), VBR will delete the older restore points after the configured day. If you have enabled synthetic or active full backup with per-machine backup chains, the retention policy for deleted items will be ignored by the job.
From our user guide:
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.
____________
What happens when I set the "Remove deleted items data after" parameter to 14? Is it overwrite the retention policy value (7 days) and can I restore ONLY the removed VM from backup job in 14 days?
With a retention policy type of "restore points", I expect the restore point to be removed after 14 days. With a retention policy of "days", I expect the restore points to be removed by the configured retention policy, except for the last three days, which we always keep when there was no new backup of a vm. After 14 days, the 3 last days of restore points will be removed by the retention policy for deleted items will be applied.
Product Management Analyst @ Veeam Software
masonit
Service Provider
Posts: 325
Liked: 23 times
Joined: Oct 09, 2012 2:30 pm
Full Name: Maso
Contact:

Re: Backup job retention policy and remove deleted items data after parameter

Post by masonit »

Hi!

What happens with the backupdata for a vm that is removed from a backup jobb with retention 7 days and "Remove deleted items data after" unchecked (not active). Will the backupdata be removed after 7 days or not removed at all?

\Maso
masonit
Service Provider
Posts: 325
Liked: 23 times
Joined: Oct 09, 2012 2:30 pm
Full Name: Maso
Contact:

Re: Backup job retention policy and remove deleted items data after parameter

Post by masonit »

Hi!

Any body knows?
sandsturm
Veteran
Posts: 279
Liked: 23 times
Joined: Mar 23, 2015 8:30 am
Contact:

Re: Backup job retention policy and remove deleted items data after parameter

Post by sandsturm »

Hi
I have another question concerning the "Remove deleted items data after" flag. My backupjob is configured with a Retentionpolicy of 21 days and a GFS policy with "keep weekly full backups" for 13 weeks. The backupjob runs once a day, synthetic full backup every Friday, Friday backup is used for the GFS weekly points. The "Remove deleted items data after" is set to 14 days.
I removed a virtual machine on 30.7.2023 and checked today if I still see some backups and in fact I can still see the oldest GFS restore points (8 weekly restore points from 10.6.2023 until 10.6.2023 for every Friday are still there). How does the "Remove deleted items data after" work with GFS retention? Are these 14 days in my case set on top of the GFS retention and only than are the files deleted? Example:

30.7.2023 (removal day of VM) + 13 weeks (GFS retention) + 14 days (remove items after 14 days)?

Could not find anything in the documentation regarding this topic and hope anybody can help me here in the forum....

thx,
sandsturm
Mildur
Product Manager
Posts: 8678
Liked: 2276 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: Backup job retention policy and remove deleted items data after parameter

Post by Mildur »

@masonit
Backup Job retention or our new background retention job (in v12) will take care of it.
https://helpcenter.veeam.com/docs/backu ... ml?ver=120

@sandsturm
How does the "Remove deleted items data after" work with GFS retention?
This option only removes regular backup chains. It doesn't remove GFS restore points. GFS restore points are removed based on their GFS retention.

We have it documented here for backup jobs:
https://helpcenter.veeam.com/docs/backu ... imitations
Retention policy for deleted items does not apply to full backup files to which GFS flags are assigned.
And here for backup copy jobs:
https://helpcenter.veeam.com/docs/backu ... ml?ver=120
The deleted items retention applies only to regular backup chains. Veeam Backup & Replication does not remove data for deleted machines from weekly, monthly and yearly backups.
Best,
Fabian
Product Management Analyst @ Veeam Software
sandsturm
Veteran
Posts: 279
Liked: 23 times
Joined: Mar 23, 2015 8:30 am
Contact:

Re: Backup job retention policy and remove deleted items data after parameter

Post by sandsturm »

Hi Fabian

Thanks a lot for the clarification. Good to know, that GFS retentionpoints will not be removed. So we have to take care about them by ourselfs.

regards,
sandsturm
_james
Enthusiast
Posts: 30
Liked: 6 times
Joined: Nov 15, 2018 3:51 pm
Contact:

Re: Backup job retention policy and remove deleted items data after parameter

Post by _james »

Hello Mildur

Question from my side but with using Backup-copy-jobs - retention is set to 7 points, Remove deleted items is not checked.
If I remove a particular backup-job from backup-copy-job, will there still be data from said particular job in the backup-copy-job? Or with backup-copy-jobs it is different and Veeam will remove it?
_james
Enthusiast
Posts: 30
Liked: 6 times
Joined: Nov 15, 2018 3:51 pm
Contact:

Re: Backup job retention policy and remove deleted items data after parameter

Post by _james »

Hello, do anyone know about retention and deleted items option when working with backup-copy-jobs? Our goal is to exclude some jobs from backup-copy-job but not to delete them.
Post Reply

Who is online

Users browsing this forum: wsmery and 50 guests