Automated VSS Backup "Microsoft Visual Source Safe"

I just visited a  forum and found something useful for Microsoft Visual Source Savfe

Its a DOS script for VSS database backup.

Abstracts:

@ECHO OFF
@TITLE Backing up source safe databases

FOR /F "tokens=2-4 delims=/ " %%i IN ('date /t') DO SET DATE=%%k%%j%%i
FOR /F "TOKENS=1-2 DELIMS=: " %%I IN ('time /t') DO SET TIME=%%I%%J
FOR /F "TOKENS=2 DELIMS= " %%K IN ('time /t') DO SET AMPM=%%K
C:\Packages\VSS\win32\ssarc -d- "f:\backups\[%DATE% %TIME% %AMPM%].ssa" $/ "-sD:\vssdb" -yUsername,Paswd
@ECHO Finished backups

Copy this script & paste in txt file & name the file as "backupscript.bat"
made it a batch file.

Note:
1- Change the VSS installation directory
(mine is C:\Packages\VSS\)
2-change your backup path accordingly
(mine is f:\backups\)
3- change ur vss db.
(mine is D:\vssdb)
4- Add ur username,paswd after -y.
5-Use " " if having spaces between ur dir/file names.

...
....
for more details visit the original article by clicking  here

OR

Copy the URL and past it in your browser
http://help.wugnet.com/office2/ Automatic-Backup-VSS-Database-ftopict814243.html

No comments:

Post a Comment