今天应客户的要求,从磁带tsm恢复特定时间的文件。
记下下面的command:
./dsmc q backup /opt/secu/rec/log/ -subdir=yes -inactive -pitdate=11/20/2011 -pittime=00:00 | grep rec.log
4.45M 11/19/11 02:08:41 BKDAILY I /opt/secu/rec/log/rec.log
Following is restore command:
./dsmc restore /opt/secu/rec/log/rec.log /tmp/rec.log -inactive -pitdate=11/19/11 -pittime=02:08:41
为了不把最新的文件覆盖,恢复到/tmp下的文件:rec.log
下面就可以看到恢复成功了。
下面说一下文件上带:
./dsmc selective /tsmdata/ /file_2 -subdir=yes