Gary,
I was tasked to do this for over 1,000 servers in our DR facility, basically
data is backed up in production and it need to be restored on an ongoing basis
to stand-by servers at our DR site to minimize recovery time.
You can create a restore schedule in the same manner as a backup schedule, but
for my needs there were limitations that made it unattractive, such as
overwriting existing files, multiple filespaces, etc., etc.
In the end I went in another direction, creating a macro. I tested the
commands needed to accomplish my restore, copied them into a text file, named
it with an extension of "mac", copied it to the client install directory. and
whala , problem solved.
Then I defined a reoccurring client schedule that looks like this:
Policy Domain Name: FILE_DOMAIN
Schedule Name: RESTORE2
Description: DR/BCP restore schedule for LPAR-2.
Action: Macro
Subaction:
Options:
Objects: restore-bcp.mac
Priority: 5
Start Date/Time: 05/23/2016 08:00:00
Duration: 8 Hour(s)
Maximum Run Time (Minutes): 0
Schedule Style: Classic
Period: 1 Day(s)
Day of Week: Any
My commands in the macro are exactly as they would be typed at the command
line, here's an example:
restore -replace=all -subdir=yes /home/ra/
You would obviously need to add a second file specification to the end of it
for your restore destination.
I use the replace option to replace all the files, as well as restore any
subdirectories and their files too.
Refer to documented syntax for the restore command for a list of the myriad of
options available.
Possibilities are pretty much endless....
-Rick Adamson
Jacksonville, FL.
-----Original Message-----
From: ADSM: Dist Stor Manager [mailto:ADSM-L AT VM.MARIST DOT EDU] On Behalf Of
Lee, Gary
Sent: Friday, March 31, 2017 8:19 AM
To: ADSM-L AT VM.MARIST DOT EDU
Subject: [ADSM-L] scheduling a restore
Tsm client 6.3.2 for windows, server 7.1.7.1 running on RHEL 6.8.
Had some notes on this, but can't find them.
Trying to schedule a restore to an alternate destination and can't get it to
work.
What am I missing.
Want to restore g:\*.*
To
F:\drive-g\
Essentially move all files from drive g: to f:\drive-g folder.
Thanks for the help.
|