VSS is all called Visual Source Safe, and as a member of Microsoft Visual Studio, its primary task is to manage project files, which can be applied to almost any software project.
Small footprint and easy access to various version codes and documents, and effective coordination of source code accesses in the development team.
The VSS 2005 interface is as follows:
In order to prevent the failure of the primary server to cause data loss, we need to regularly back up the code data to the backup server, the VSS comes with a backup tool for the installation directory of Ssarc.exe, the following usage:
Manual backup is troublesome, find the relevant information, write a bat document, and then arrange the corresponding Windows scheduled tasks, easy to implement the automatic data backup, the code is as follows:
@ECHO OFF@TITLEBackupVisual Source Safe DatabaseSETVss_install_path= "C:\Program Files (x86) \microsoft Visual Sourcesafe\ssarc.exe"SETvss_db= "D:\VSSDB"SETBackpath=d:\softwar\VSSSETbackupname=%DATE: ~0,4%%DATE: ~5,2%%DATE: ~8,2%.SSASETBakfile= "%backpath%\%backupname%"SETDestpath= "\\192.168.1.145\d$\VSSBK"SETVss_admin_name= "Admin"SETVss_admin_password= "123456"@ECHO Net UseRemote Server ....Net Use%destfile% 123456/user: Administrator @ECHODelete oldBackupFile ...Del"%backpath%\*.*"/QDel"%destpath%\*.*"/Q@ECHO BackupVSS DB ....%vss_install_path%-D-i--y%vss_admin_name%,%vss_admin_password%-s%vss_db%%bakfile% $/@ECHO CopyFile to Remote Server ....Copy%bakfile%%destpath%@ECHOFinished Visual Source Safe databaseBackup
where Vss_install_path,vss_db,backpath,bakfile,destpath,vss_admin_name,vss_admin_password and net use%DestFile% 123456/ User:administrator the statement, according to their own needs to make corresponding changes.
The result of executing the bat document is as follows:
VSS Data Automatic Backup