Automate Visual SourceSafe Backup

2007 April 15
by Administrator

I work with Source Safe as a source control repository in my current job where I also acted as a Configuration Manager for Capability Maturity Model (CMM) compliance. One of my job description is to manage sourcesafe database. Recently I was getting tired of manually backing up the source safe database by going into the source safe administration and going through manual back up procedure. So I decided to automate the procedure. What I end up doing is creating a batch file and creating a schedule task on my windows machine so that it wouldn't require any manual intervention and could run on weekends. My goals for this process were to 1. Automate the process so it occurs once a week. 2. Generate backup files that are identified by date (ie. '08-20-2000 Project Backup.ssa'). Step 1: Create a batch file which looks like this @ECHO OFF rem ****************************************** rem This file is used to run backup on a specified Source Safe database or individual project. rem You can use windows scheduler service to schedule this task run periodically preferablly rem once a week. I have set up 'VSS' folder on my local drive with 'backup' as a subfolder. This rem batch file will create a new file within the 'backup' named as current date. rem ********************************************** @TITLE Backing up source safe databases FOR /F "tokens=2-4 delims=/ " %%i IN ('date /t') DO SET DATE=%%i-%%j-%%k cd\ cd program files\microsoft visual studio\vss\win32 ssarc -yAdmin,sourcesafeadminpassword -d- -i-y -sC:\source_safe repository c:\VSS\backups\%DATE% mybackup.ssa $/ @ECHO Finished backups * replace sourcesafeadminpassword with your password * replace "-sC:\source_safe repository" with the location of your source safe repository. * replace "c:\VSS\backups" with your choice of location for backup. * $/ represents the whole source safe tree. You can include a project name if you want to back only a particular project. Step 2: Automate the batch file with the window scheduler service. After following the above two steps you should be good to go and your backups will be saved in the location that you have specified in the batch file. I will write more about the batch file and explaining various parameters later.

| View count: 11392
17 Responses leave one →
  1. James Buckingham
    May 29, 2008 at 8:47 AM

    Hi Qasim,

    Just downloaded this from riaforge. The main thing I liked (that DevNotes is lacking) is the ability to add notes to specific pages.

    I have an existing system which I'm now adding major new features to and I'd like to use a system similar to this that I can attach to the footer for clients to use. How easy would it be to integrate cfprototype with my existing code?


  1. Qasim Rasheed
    May 31, 2008 at 1:08 AM


    I tried responding directly to your email address but it bounced back. Anyways here is my response


    I am glad that you liked the application however I think your comment got posted under the Visual Source Safe post. I am not sure if cfprototype is suitable for integrating into existing applications. It is primarily meant to create quick html pages of the desired application. At least that's how we use it at work. We'll create a prototype for any new feature first and once it is approved only then we proceed with actual development kinda like FLiP.

    Let me know if you have any question. I will be using this application for my presentation at CFUnited, so the code will likely to change.


  1. impression sur toile
    Dec 4, 2011 at 6:57 PM

    hi, that's a city move. There is several mistakes but the primary is here.

  1. rahul nemade
    rahul nemade PERMALINK
    Mar 28, 2012 at 2:40 AM

    what do yuo mean by source safe repository("-sC:\source_safe repository").
    I have scheduled it with this.but database is not backing up fully its in kb

  1. rahul nemade
    rahul nemade PERMALINK
    Mar 28, 2012 at 3:06 AM

    cd\ cd program files\"microsoft visual studio"\vss\win32 ssarc.
    is it visual studio or visual source safe?

  1. karen millen handbag
    Jul 4, 2014 at 9:37 AM

    Mais tout n'?tait pas sombre et sinistre de ces travailleurs ? prendre des risques, comme Wright a d?couvert quand il a entendu la chanson "Coal ville samedi soir" par Randall Hylton.

    Jul 9, 2014 at 7:00 PM

    It is the best time to make a few plans for the long run and it is time to be happy.

    I have learn this put up and if I may I wish
    to suggest you some attention-grabbing issues or advice. Maybe you could write next articles referring to this article.

    I desire to learn even more issues approximately it!

  1. canada newspapers list
    Jul 14, 2014 at 4:09 PM

    Undeniably believe that which you said. Your favorite justification seemed to
    be on the web the easiest thing to be aware of.
    I say to you, I certainly get irked while people consider worries that they
    just do not know about. You managed to hit the nail upon the top and also defined out the whole thing without having side effect , people could take
    a signal. Will probably be back to get more.

  1. hotspot
    Jul 18, 2014 at 8:43 PM

    My brother recommended I might like this blog. He used to be totally right.
    This submit actually made my day. You can not believe simply how much time I had spent for this
    information! Thank you!

  1. maszyny online na prawdziwe pieniadze
    Jul 21, 2014 at 9:28 PM

    gry hazardowe maszyny na kase

    Sep 1, 2014 at 8:31 PM

    Wonderful goods from you, man. I've understand your stuff previous to and you're just too fantastic.
    I really like what you have acquired here, certainly like what you're saying and the way in which you say it.

    You make it entertaining and you still take care of to keep it wise.
    I can't wait to read much more from you. This is actually a terrific site.

    Sep 4, 2014 at 9:56 PM

    That is a good tip especially to those new to the blogosphere.

    Brief but very precise information… Appreciate your sharing
    this one. A must read post!

  1. clik here to log in
    Sep 8, 2014 at 10:21 PM

    Please let me know if you're looking for a article writer for your
    site. You have some really great posts and I feel I
    would be a good asset. If you ever want to take some of the load off, I'd really
    like to write some content for your blog in exchange for
    a link back to mine. Please shoot me an e-mail if interested.

  1. carpet cleaners boston
    Sep 15, 2014 at 7:26 AM

    This design is steller! You most certainly know how to keep a reader
    amused. Between your wit and your videos, I was almost moved to start my own blog (well,
    almost...HaHa!) Fantastic job. I really enjoyed what you
    had to say, and more than that, how you presented it. Too cool!

  1. clik here to waste 7 seconds of your life
    Sep 27, 2014 at 9:33 PM

    It's amazing to go to see this web page and reading the views of all colleagues concerning this post, while I am also zealous of getting experience.

  1. Air Jordan Shoes All
    Oct 9, 2014 at 4:00 PM

    Coined the "Greatest Basketball Shoe Ever." The Air Jordan XXIII boasts dual density foam and full-length internal bootie. Jordan's fingerprint was also used for the pattern on the outsole.

  1. Jordan On Sale Online
    Oct 9, 2014 at 4:01 PM

    The outer shell includes Navy patent leather on the toe and White premium leather on the rest of the shoe.

Leave a Reply