Contact us


All times are UTC - 8 hours



Post new topic Reply to topic  [ 4 posts ] 
Author Message
Offline Profile  


Joined: Tue Mar 08, 2005 12:23 am
Posts: 1315
Hi Punitha,

You may need a script for automic VSS database backup.

Below is an example for your reference:

@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".

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.

Regards.

_________________
Catherine Sea
Dynamsoft Support Team
Follow us@Twitter, Facebook


Offline Profile  


Joined: Tue Mar 08, 2005 12:23 am
Posts: 1315
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.

_________________
Catherine Sea
Dynamsoft Support Team
Follow us@Twitter, Facebook


Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ]  Moderators: Robert, Catherine


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:

Copyright © 2016 Dynamsoft | All Rights Reserved
dynamic designed by Dynamsoft team