PowerShell script exchange
Post Reply
zak2011
Veteran
Posts: 367
Liked: 41 times
Joined: May 15, 2012 2:21 pm
Full Name: Arun
Contact:

Data Domain. Copy .vbk to external drive.

Post by zak2011 »

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?
veremin
Product Manager
Posts: 20397
Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

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

Post by veremin »

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.
zak2011
Veteran
Posts: 367
Liked: 41 times
Joined: May 15, 2012 2:21 pm
Full Name: Arun
Contact:

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

Post by zak2011 »

Thanks for your efforts Vladimir. I will try it out and let you know how it goes.
Thanks
muhammad.toffaha
Lurker
Posts: 1
Liked: never
Joined: Jun 18, 2017 11:53 am
Full Name: Muhammad Toffaha
Contact:

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

Post by muhammad.toffaha »

Thanks
how i can determine other locations like USB in the back of Data Domain 2200
Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests