Hi Punitha,
punitha wrote:
1.As a first step , we need to change the VSS installation directory right? In my project we've installed the VSS in a remote server. So how do i specify the installation directory? Do i need to mention the server address or something else.
Yes. In order to access the VSS database via network, the vss database folder must be shared on the internet. For example, the shared folder path might be "\\Catherine-PC\Share\VSSDB". Suppose the user name is "admin" and password is "123", the script should be like:
Code:
@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:\Program Files\Microsoft Visual SourceSafe\ssarc" -d- "E:\VSSBackups\[%DATE%
%TIME% %AMPM%].ssa" $/ "-s\\Catherine-PC\Share\VSSDB" -yadmin,123
@ECHO Finished backups
punitha wrote:
2.If i want to take the weekly backup also , can i use the below mentioned script? or do i need to modify any parameter to specify the day.
Actually, you can add the bat file to Windows Schedule Task (Task Scheduler) for a weekly backup. For more info on how to schedule a task in Windows, you can click
here.