I am implmenting a Powershell script to delete the contents on the rotated drive before backup. I am aware there is a regkey to do this but it seemed to clear off some of the non rotated backups.
I see there are some Veeam PS commands to delete the backups from the database etc etc. Should I be including these functions? Or just deleting the files?
HKLM\Software\Veeam\Veeam Backup and Replication
ForceDeleteBackupFiles (DWORD)
Set to 3 to make the job delete the entire contents of the backup job’s folder only.
Set to 5 to make the job delete the entire contents of the root backup repository folder, potentially deleting any files belonging to other jobs. Note that if the backup repository points at the volumes root folder, the entire volume's contents are erased.
When each backup is made on rotated media it is creating a full backup. The above key deletes the contents of the job on the drive. However this has caused some issues has it has been deleting some other jobs which is not rotated media.
I believe the best advise is to use Powershell to delete the drive contents. However do I also use the cmdlets to delete the jobs from the Veeam database? Or just delete the files and leave the database untouched?
However this has caused some issues has it has been deleting some other jobs which is not rotated media.
Are you sure that the repository where the other jobs are pointed to does not have "Rotated media" option enabled? If that holds true and you still observe the other jobs' backups being deleted please contact support team and post your case ID.