The leading provider of version control solution and TWAIN SDK
The leading provider of version control solution and TWAIN SDK

Dynamsoft Forums

Support for Version Control, Bug Tracking and Configuration Management Software
* Login   * Register
* FAQ    * Search

It is currently Wed May 16, 2012 5:48 pm




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: backup VSS code from remote server
PostPosted: Sat Sep 24, 2011 11:38 pm 
Offline

Joined: Sat Sep 24, 2011 11:26 pm
Posts: 2
Hi Team,
in my project, we've installed the VSS in a remote server. In that VSS server, we've created individual databases for each application. However, we need to take the backup from that server for all the applications. How to automate it. Please advice. It is taking too long,for the manual backup.

Thanks in advance.
Punitha


Top
 Profile  
 
 Post subject: Re: backup VSS code from remote server
PostPosted: Sun Sep 25, 2011 6:33 pm 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1489
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
Dynamsoft - The leading provider of version control solution and TWAIN SDK
Source Control Software | Software Configuration Management | SCM Solution | Issue Tracking
SourceSafe (VSS) Remote/Web/Internet Access | SourceSafe (VSS) Replacement/Alternative | SourceSafe (VSS) Hosting|TFS Hosting

Follow me @Twitter, Facebook
Image


Top
 Profile  
 
 Post subject: Re: backup VSS code from remote server
PostPosted: Mon Sep 26, 2011 4:46 am 
Offline

Joined: Sat Sep 24, 2011 11:26 pm
Posts: 2
Hi Cathy,

Thanks for your prompt response. well, I've tried the below mentioned script, but I've no luck . It is not resulting.
Couple of things, I just want to clarify with you.
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.
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.

Please help me.

Thanks in advance.

Punitha


Top
 Profile  
 
 Post subject: Re: backup VSS code from remote server
PostPosted: Tue Sep 27, 2011 1:09 am 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1489
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
Dynamsoft - The leading provider of version control solution and TWAIN SDK
Source Control Software | Software Configuration Management | SCM Solution | Issue Tracking
SourceSafe (VSS) Remote/Web/Internet Access | SourceSafe (VSS) Replacement/Alternative | SourceSafe (VSS) Hosting|TFS Hosting

Follow me @Twitter, Facebook
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

It is currently Wed May 16, 2012 5:48 pm


Who is online

Users browsing this forum: No registered users and 0 guests


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:
Jump to:  

Copyright © 2010 Dynamsoft Corporation. All Rights Reserved. | Knowledge Base | Source Control Blog