VSS数据备份的BAT脚本

@ECHO OFF
@TITLE Backing up source safe databases
SET VSS_Install_Path="C:\Program Files\Microsoft Visual SourceSafe\"
SET VSS_DB="d:\vss_cnpcDoc"
SET Bak_File="e:\vssdata_bak\%DATE%_Backup.ssa"
SET VSS_Admin_Name="admin"
SET VSS_Admin_Password="sanle11@sina.xom"
FOR /F "tokens=1-3 delims=- " %%i IN ('date /t') DO SET DATE=%%i-%%j-%%k
%VSS_Install_Path%"ssarc" -d- -y%VSS_Admin_Name%,%VSS_Admin_Password% -s%VSS_DB%  %Bak_File% $/
@ECHO Finished backups

posted on 2008-08-17 23:40  Sanle  阅读(331)  评论(0编辑  收藏  举报

导航