VSS2005自动备份/恢复

@echo off
@title Backing up SourceSafe databases

SET VSS_DB=E:\RuiLanCodeManageVSS\
set BakPath=D:\VSSBackUp\


FOR /F "tokens=1-3 delims=- " %%i IN ('date /t') DO SET DATE=%%i-%%j-%%k
FOR /F "tokens=2-2" %%i IN ('date /t') DO SET DAY=%%i

ssarc.exe -d- -s%VSS_DB% -yadmin,meiyoumima -o%BakPath%Backup_output_log(%DATE%%DAY%).txt -l %BakPath%Backup_Database(%DATE%%DAY%).ssa $/

if errorlevel 1 (
echo 备份失败
) ELSE (
echo 备份完成
)

@echo on

注意文件要放入你的VSS安装目录下

您可以吧它生成.bat文件后加入作业保证定期备份

修复vss Projects 文件错误(必须断开网络)

<style type="text/css"> TABLE { TABLE-LAYOUT: fixed; WORD-WRAP: break-word; }</style><style type="text/css"> .lineBorderBlue1{ BORDER-TOP: #999999 1px groove; BORDER-BOTTOM: #999999 1px groove; BORDER-LEFT: #999999 1px groove; BORDER-RIGHT: #999999 1px groove; background-color:#efefef;}</style>

rd E:\ProjectVSS\data\backup /s /q
"C:\Program Files\Microsoft Visual SourceSafe\analyze.exe" -F -V3 -D "e:\projectvss\data"

你可能感兴趣的:(css,Microsoft,F#,UP,vss)