tirsdag 6. september 2011

TSM for Linux - nightly routine full backup for CentOS

Script created in /etc/cron.daily/

[root@name cron.daily]# cat dsmc.sh
#!/bin/bash

cd /var/log

/opt/tivoli/tsm/client/ba/bin/dsmc incremental / -subdir=yes | mail -s "backup report " mail@mail.com

Examples - restore:
dsmc restore -filelist=/home/dir2/restorelist.txt /home/NewRestoreLocation/
dsmc restore /home/monnett/h1.doc -latest
dsmc restore "/user/project/*"-pick -inactive
dsmc restore /home/monnett/h1.doc /home/newdoc/h2.doc
dsmc restore -pitd=9/10/2011 -pitt=13:23:20 /home/mydir/
dsmc restore "/home/projectA/*.bak" /home/projectB/ 



Examples - backup:

dsmc incremental / -subdir=yes
dsmc incremental -domain="/fs1 /fs2"
dsmc selective /home/proj/ -subdir=yes
dsmc selective /usr/dir1/sub1/ -subdir=yes -snapshotroot=/snapshot/day1


Ingen kommentarer:

Legg inn en kommentar