Set Archive Bit for File to Tape Job

PowerShell script exchange

Set Archive Bit for File to Tape Job

Veeam Logoby cthomas801 » Fri Jan 13, 2017 6:37 pm

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?
cthomas801
Novice
 
Posts: 3
Liked: never
Joined: Fri Jun 19, 2015 5:10 am
Full Name: Chad Thomas

Re: Set Archive Bit for File to Tape Job

Veeam Logoby v.Eremin » Mon Jan 16, 2017 10:33 am 1 person likes this post

I suppose this article should help you. Thanks.
v.Eremin
Veeam Software
 
Posts: 13558
Liked: 1006 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Set Archive Bit for File to Tape Job

Veeam Logoby cthomas801 » Tue Jan 17, 2017 3:47 pm

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?
cthomas801
Novice
 
Posts: 3
Liked: never
Joined: Fri Jun 19, 2015 5:10 am
Full Name: Chad Thomas

Re: Set Archive Bit for File to Tape Job

Veeam Logoby v.Eremin » Wed Jan 18, 2017 5:25 pm 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.
v.Eremin
Veeam Software
 
Posts: 13558
Liked: 1006 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Set Archive Bit for File to Tape Job

Veeam Logoby cthomas801 » Fri Jan 20, 2017 6:05 pm

Thanks for the info. I'll go ahead and try and tackle it that way.
cthomas801
Novice
 
Posts: 3
Liked: never
Joined: Fri Jun 19, 2015 5:10 am
Full Name: Chad Thomas

Re: Set Archive Bit for File to Tape Job

Veeam Logoby v.Eremin » Mon Jan 23, 2017 10:58 am

You're welcome. Let me know how well it goes for you and whether additional assistance is needed.
v.Eremin
Veeam Software
 
Posts: 13558
Liked: 1006 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 6 guests