On Windows Server I configured the “Visual
Source Safe” Software Backup. Please find below scripts for Backup configuration.
1.
This script will take backup of VSS repository.
@ECHO OFF
@TITLE Backing up source safe databases
FOR /F "tokens=2-4 delims=/ " %%i IN ('date
/t') DO SET DATE=%%i-%%j-%%k
C:\Program Files\Native Visual Safe\win32\ssarc
-d- e:\vss_backups\%DATE% General backup.ssa $/QMS “-sF:\vssqms”
–y<username>,<Pasword>
@ECHO Finished backups
Where C:\Program Files\Native Visual
Safe\win32\ssarc is path of ssarc command.
E:\vss_backups\%DATE% General backup.ssa is the destination path of backup.
“-sF:\vssqms” is the path
of VSS Directory.
$/QMS is the name of
repository in VSS which backup is required. If full backup needed we can use
“$/” .
2.
This script will delete 7 days older files in
E:\vss_backup directory in Windows.
forfiles /p "E:\vss_backup" /s /m *.*
/c "cmd /c Del @path" /D -7
No comments:
Post a Comment