:: 設定 日期 變數
for /f "tokens=1,2,3 delims=/ " %%i in ("%date%") do set CUR-DRB=%%i-%%j-%%k
C:\FastCopy\fastcopy_EN.exe /cmd=move /Force_Close /estimate /logfile="C:\FastCopy\MOVE_VHD.log" "\\192.168.xx.xx\vhd_e\xxx.VHD" /to="D:\Hyper-V\Backup_22_127\Virtual Hard Disks\"
exit
代表FASTCOPY的模式。依FASTCOPY內的說明,模式如下:
cmdline | In GUI | 說明(FASTCOPY) |
noexist_only | Diff (No Overwrite) | Copy if the same filename does not exist in destination. 複製-如果相同檔名不存在於目的目錄中。 |
diff | Diff (Size/date) | Copy if size or date is different, or if it does not exist (in default) 複製-如果檔案大小或日期不同或檔案不存在。(預設選項) |
update | Diff (update) | Copy if source file timestamp is newer or does not exist. 複製-如果來源檔案時間戳記較新或檔案不存在。 |
force_copy | Copy (Overwrite) | Always copy/overwrite all. 始終複製/複寫全部。 |
sync | Sync (Size/date) | Copy if size or date is different, or does not exist. In addition, delete all destination files/directories that do not exist in source. 複製-如果檔案大小或日期不同或檔案不存在。此外,刪除所有不存在於來源目錄的目的檔案/目錄。 |
move | Move (Overwrite) | Always copy/overwrite all and delete all copied source files. 始終複製/覆寫全部並刪除所有已複製的來源檔案。 |
delete | Delete | Delete all files/dirs by force. 全部刪除。 |
沒有留言:
張貼留言