dsmc restore /Users/monnett/Documents/h1.doc -latest
2.Display a list of active and inactive backup versions of files from which you can select versions to restore.
dsmc restore "/Users/monnett/Documents/*"-pick -inactive
這個指令可以看你目錄下所有的東西,因為有些檔案已過期,不是active
dsmc restore /Users/monnett/Documents/* -ina -subdir=y
要加Ina,才會把過期的檔案撈回去
3.Restore the /Users/monnett/Documents/h1.doc file to its original directory.
dsmc restore /Users/monnett/Documents/h1.doc
4.Restore the /Users/monnett/Documents/h1.doc file under a new name and directory.
dsmc restore /Users/monnett/Documents/h1.doc /Users/gordon/Documents/h2.doc
5.Restore the files in the /Users directory and all of its subdirectories.
dsmc restore /Users/ -subdir=yes
6.Restore all files in the /Users/gordon/Documents directory to their state as of 1:00 PM on August 17, 2003.
dsmc restore -pitd=8/17/2003 -pitt=13:00:00 /Users/gordon/Documents/
dsmc restore "/fs1/*" -sub=y -pitdate=08/01/2003
-pittime=06:00:00
7.Restore all files from the /Users/mike/Documents directory that end with .bak to the /Users/mike/projectn/ directory.
dsmc restore "/Users/mike/Documents/*.bak" /Users/mike/projectn/
8.Restore files specified in the restorelist.txt file to a different location.
dsmc restore -filelist=/Users/user2/Documents/ restorelist.txt /Users/NewRestoreLocation/
9.還原指定的時間與日期,接-LATest可還原inactive file
dsmc REStore -FROMDate=06/01/96 -TODate=06/30/96 -LATest "*.f" -pittine=07:00:00 -subdir=y
大寫表示可以打縮寫
dsmc RES -FROMD=06/01/96 -TOD=06/30/96 -LAT "*.f"
指定檔案路徑名稱做過濾,在指定檔案還原
(例檔案名稱有100.xlsx)如有繁體中文請在putty→translation→remote character set:選擇UTF8不然無法下指令
dsmc query backup '/home/share/@*/100*.xlsx' -ina -subdir=y
可以show出所有有關100的檔案
Size Backup Date Mgmt Class A/I File
---- ----------- ---------- --- ----
68,744 B 04/13/11 01:14:28 DEFAULT A /home/share/@月報/100年月報/1.xlsx
45,326 B 04/20/11 01:23:03 DEFAULT A /home/share/@月報/100年月報/2.xlsx
79,367 B 05/12/11 01:23:56 DEFAULT A /home/share/@月報/100年月報/2.xlsx
45,220 B 05/13/11 01:19:47 DEFAULT A /home/share/@月報/100年月報/3.xlsx
87,012 B 06/29/11 01:10:57 DEFAULT A /home/share/@月報/100年月報/3.xlsx
找到想要還原的檔案直接restore (使用pick 選擇要回復的檔案)
沒有留言:
張貼留言