Data Domain. Copy .vbk to external drive.

PowerShell script exchange

Data Domain. Copy .vbk to external drive.

Veeam Logoby zak2011 » Mon Mar 25, 2013 12:21 pm

Is there a script to copy the last vbk file on a dedup appliance like a Data domain to an external drive for offsite purposes?
zak2011
Expert
 
Posts: 367
Liked: 41 times
Joined: Tue May 15, 2012 2:21 pm
Full Name: Arun

Re: Data Domain. Copy .vbk to external drive.

Veeam Logoby v.Eremin » Tue Mar 26, 2013 1:43 pm

As we’ve discussed previously via PM, in this case its BASH command shell that should be used.

I have to admit that it’s my first BASH-scripting experience; probably, some more qualified Linux guy will correct me. Below you can find the script I came up with which is responsible for copying latest .vbk-file from original to other location:

Code: Select all
LatestVBK=$(find /original-location '*.vbk' | sort -rn | head -n1)
cp –v -n "$LatestVBK" /other-location


Additionally, if you're willing to run this script once a month or so, you should schedule it by the means of something like cron utility which allows tasks to automatically run in the background of the system at regular intervals.

Hope this helps.
Thanks.
v.Eremin
Veeam Software
 
Posts: 13525
Liked: 1002 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Data Domain. Copy .vbk to external drive.

Veeam Logoby zak2011 » Wed Mar 27, 2013 7:31 am

Thanks for your efforts Vladimir. I will try it out and let you know how it goes.
Thanks
zak2011
Expert
 
Posts: 367
Liked: 41 times
Joined: Tue May 15, 2012 2:21 pm
Full Name: Arun

Re: Data Domain. Copy .vbk to external drive.

Veeam Logoby muhammad.toffaha » Thu Aug 10, 2017 1:05 pm

Thanks
how i can determine other locations like USB in the back of Data Domain 2200
muhammad.toffaha
Lurker
 
Posts: 1
Liked: never
Joined: Sun Jun 18, 2017 11:53 am
Full Name: Muhammad Toffaha


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 2 guests