SharePoint :: STSADM 以日期命名檔名進行每日備份

SharePoint :: STSADM 以日期命名檔名進行每日備份

指令必須以 batch file 的方式執行,執行範例如下

%date:~0,4%
%date:~5,2%
%date:~8,2%
%date:~0,4%-%date:~5,2%-%date:~8,2%.bak
stsadm -o backup -url
http://www1.ms.com -filename %date:~0,4%-%date:~5,2%-%date:~8,2%.bak
pause

clip_image002