VSS Data Automatic Backup

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.