PowerShell script exchange
Post Reply
chris.branagan
Lurker
Posts: 2
Liked: never
Joined: Feb 14, 2018 12:02 pm
Full Name: Chris Branagan
Contact:

File to Tape Only Backup Certain Files

Post by chris.branagan »

Job Type - File to Tape

Is it possible to only backup files that have been accessed in x amount of time ? I'm guessing this will be done via Powershell but i'm not sure.

Any help would be greatly appreciated.

Chris
veremin
Product Manager
Posts: 20284
Liked: 2258 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: File to Tape Only Backup Certain Files

Post by veremin »

You will need to combine Windows PowerShell and Veeam PowerShell.

The algorithm should look similarly to the following:

* Check given directory to find files that have not been accessed within certain period of time (Windows PS: Get-ChildItem ... | Where{$_.LastWriteTime -ge})
* Create a file to tape job object, using gotten paths (Veeam PS: New-VBRFileToTapeObject)
* Set a new job object to file to tape job (Veeam PS: Set-VBRFileToTapeJob)

Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 18 guests