Quantcast
Channel: R&D Forums
Viewing all articles
Browse latest Browse all 5326

Veeam Backup & Replication • Using PowerShell to get a backup chain ID if one exists

$
0
0
I am trying to write a script that can kick off a Veeam backup to tape job that will collect all the related full/incremental backup files for the second to latest backup chain on disk for a given Veeam backup job and copy them to tape.

For example lets say I have a weekly Veeam backup job that backs up multiple VMs to disk and keeps them on disk months. Each Monday a new active full is created and the remaining days of the week each have an incremental backup for that day. Now lets say I have 3 weeks of these backups on disk at the moment. That would mean I have three full backup files, each with six incremental backup files associated to the given full backup giving us 21 files in total.

Now lets say I want to copy just week 2 backup files to tape. In the past I would use a file to tape job and come up with a way to filter down to just the backup files associated to that weeks files that I needed in the GUI. But now on Veeam B&R 12.1, if I did that it would require buying more licenses if the total file size went over a specific limit. So instead I would like to use a Veeam backup to tape job to do the backup and just tell it to copy the second to last backup chain (aka week 2 backup files) to tape.

I am looking around in PowerShell but having issue file an ID on the recovery points of the files that tie all the full/incremental backups for a given backup chain together.

Statistics: Posted by ShawnKPERS — Apr 02, 2024 7:06 pm



Viewing all articles
Browse latest Browse all 5326

Latest Images

Trending Articles



Latest Images