Wednesday, May 4, 2011

TSM backup/restore



Pre-cautions:
  • Application/Database teams are responsible for their application/database backup and restore.
  • First restore the files from TSM to a temporary location, and then restore it to original location.
Pre-checks:
  • ‘dsmc q session’ – the session between TSM client and TSM server is to be active
Installation Instructions:
  • To initiate a backup of a file or directory: 
“dsmc ba /file-dir-location”   
“dsmc ba ‘/dir/*’ –sub=yes”
  • To query the backup status:
“dsmc q ba /file-dir-location”
  • To take the incremental backup of filesystem
“dsmc incr /fsname”
  • To take the full backup of filesystem
“dsmc ba /fsname”
  • TSM Config files:
/usr/tivoli/tsm/client/ba/bin/dsm.opt   [contains filesystem to be backed up in the scheduler]
/usr/tivoli/tsm/client/ba/bin/dsm.sys   [TSM configuration file]
  • TSM error logs:
/usr/tivoli/tsm/client/ba/bin/dsmerror.log
/usr/tivoli/tsm/client/ba/bin/dsmsched.log
  • To query the scheduler:
“dsmc q sched”
  • To restore a file from the TSM backup [non-interactive]
“dsmc rest /sourcedir/file1  /destndir/”
  • Just restores the file/dir to the specified destination directory. Or pick up from the list and restore [interactive]
“dsmc rest /sourcedir/* /destndir/ -sub=yes –ina –pick”
  • Note: rest stands for restore; sub stands for subdirectories; ina stands for inactive.
Verification / Postchecks:
  • Verify the backup with “dsmc q ba /dir/filename”  [q stands for query]
Backout:
  • Restore the old file.

    No comments:

    Post a Comment