Back-up / Restore with the command cell client

The following instructions were created using Suse SLES 11. The command line client looks similar in all platforms and therefore applies to Mac OS X, Solaris, and AIX, as well.

Back-up

  • In the command line, enter dsmc followed by a command to carry out a single command. If you only enter dsmc, the interactive mode is activated in which several commands can be carried out, e.g.
dsmc incr /home/werner/TEST.txt
dsmc
tsm> incr /home/werner/file1.txt
tsm> .....
tsm> quit
  • Example: Back up all files in the directory /home and in all its sub-directories.
dsmc incremental /home/ -subdir=yes
  • Example: Back up all local file systems in your client domains outside of the file system /home.

dsmc incremental -domain="all-local -/home"
  • Example: Back up all files in the directory /home/proj and all its sub-directories, regardless of whether the files have changed since the last partial back up. 
dsmc selective /home/proj/ -subdir=yes
  • Example: Back up the files /home/dir1/h1.doc and /home/dir1/test.doc .
dsmc selective /home/dir1/h1.doc /home/dir1/test.doc
  • Example: Which files were backed up in /home/dir1?
dsmc query backup /home/dir1/
  • Example: Which files were backed up in /home/dir1 and the sub-directories? The active and the inactive:
dsmc query backup /home/dir1/ -inactive -subdir=yes

Restore

  • Example: The file /home/dir1/h1.doc should be written back (in its original location)
dsmc restore /home/dir1/h1.doc
  • Example: The entire file tree under /home/werner is to be written back to /tmp
dsmc restore /home/werner/ /tmp/ -subdir=yes -preservepath=complete
  • All files under /home are to be replaced by the last back-up version, but only if the back-up version is more recent than the existing version. The replacement is to be done without requests.
dsmc restore "/home/*" -subdir=yes -replace=yes -ifnewer

Do you have questions or comments about this site? contact form