Re: Restore syntax
2005-05-25 14:03:10
Here's an example of an aix restore (of incrementally backed up data) from one
box to another box.
>From sourcenode1, grant access to sourcenode1's backup data to targetnode2:
dsmc
tsm> set access backup * targetnode2 *
tsm> q access
If you want to increase sessions/tape drives for the restore:
Change maxmountpoints for targetnode2 to however many tape drives you
can afford (update node command)
Add resour # to targetnode2's dsm.sys file (where # is one more than
maxmountpoints)
>From targetnode2:
# dsmc
tsm> q ba -fromnode=sourcenode1 /directory-to-restore
-pitdate=mm/dd/yyyyy -pittime=hh:mm:ss -subdir=yes (use the query to ensure
you have the restore syntax correct)
nohup dsmc restore -fromnode=sourcenode1 "/directory-to-restore/"
/new-directory-name/ -pitdate=mm/dd/yyyyy -pittime=hh:mm:ss -subdir=yes >
/tmp/tsm/logs/restore-fromnode1.log &
Be sure to change back the maxmountpoints and remove the resour # from the
dsm.sys.
Also, review the "preservepath" option if you are concerned with the directory
structure that you're restoring:
dsmc
help
117
1c.lxxx) Preservepath
The preservepath option specifies how much of the source path to
reproduce as part of the target directory path when you restore or
retrieve files to a new location. Use the -subdir=yes option to
include the entire subtree of the source directory (directories
and files below the lowest-level source directory) as source to be
restored. If a required target directory does not exist, it is
created. If a target file has the same name as a source file, it
is overwritten. Use the -replace=prompt option to have Storage
Manager prompt you before files are overwritten.
*-(cut)---
>>> Jack.Coats AT BANKSTERLING DOT COM 05/24/05 5:54 PM >>>
I have a directory I need to restore as of a given date on an AIX system
but I need to restore it to a different system and different directory.
Can someone please help me with the syntax?
/usr/bin/dsmc -user=administrator -pass=administratorpassword restore
-pitdate=05/16/2005 -subdir=yes /usr/data/files/* /usr/restorearea/
I know I am missing the system names in there... what else?
TIA ... jack
|
|
|