PowerShell script exchange
Post Reply
cthomas801
Novice
Posts: 3
Liked: never
Joined: Jun 19, 2015 5:10 am
Full Name: Chad Thomas
Contact:

Set Archive Bit for File to Tape Job

Post by cthomas801 »

Hello all,

I'm looking for a way to get the archive bit set on all files successfully written to tape by a File to tape job. I'm assuming this could be accomplished with a post job powershell script. Any scripting experts willing to help out?
veremin
Product Manager
Posts: 20406
Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Set Archive Bit for File to Tape Job

Post by veremin » 1 person likes this post

I suppose this article should help you. Thanks.
cthomas801
Novice
Posts: 3
Liked: never
Joined: Jun 19, 2015 5:10 am
Full Name: Chad Thomas
Contact:

Re: Set Archive Bit for File to Tape Job

Post by cthomas801 »

Thank you for the link. That is very close to what I need. A follow up question would be is there an easy way to pull a list of files that have been backed up to tape successfully, by a file to tape job in Veeam?
veremin
Product Manager
Posts: 20406
Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Set Archive Bit for File to Tape Job

Post by veremin » 1 person likes this post

You can query SQL db directly to check what files have been written to tapes. Be aware to replace removal part with the one that sets archive bit. Thanks.
cthomas801
Novice
Posts: 3
Liked: never
Joined: Jun 19, 2015 5:10 am
Full Name: Chad Thomas
Contact:

Re: Set Archive Bit for File to Tape Job

Post by cthomas801 »

Thanks for the info. I'll go ahead and try and tackle it that way.
veremin
Product Manager
Posts: 20406
Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Set Archive Bit for File to Tape Job

Post by veremin »

You're welcome. Let me know how well it goes for you and whether additional assistance is needed.
Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests