backing up sourcesafe content without stopping sourceoffsite

If you are having a problem using SourceOffSite, post a message here.

Moderator: SourceGear

Post Reply
GrandPixel
Posts: 27
Joined: Tue Jun 16, 2009 8:07 am

backing up sourcesafe content without stopping sourceoffsite

Post by GrandPixel » Thu Jul 09, 2009 1:56 pm

I currently have a script that shuts down the sourceoffsite service, uses ntbackup to back up the directories that make up all of the source code etc, and restarts the sourceoffsite service. This is run daily, and I would like to be able to back up the data without shutting down sourceoffsite. It was suggested that I might be able to use Shadow Copy along with ntbackup to do this. I'm not sure how Shadow Copy would help with that, but I would like to know what you guys at sourcegear suggest to back up the sourcesafe repositories without shutting down the sourceoffsite server. Thanks for your help.

SOS version is 4.2
Last edited by GrandPixel on Thu Jul 09, 2009 2:00 pm, edited 1 time in total.

GrandPixel
Posts: 27
Joined: Tue Jun 16, 2009 8:07 am

Re: backing up sourcesafe content without stopping sourceoffsite

Post by GrandPixel » Thu Jul 09, 2009 1:59 pm

I just thought about the fact that I also have to stop the sourceoffsite service when I create a copy of one of the sourcesafe directories. Is there a way to do this also without shutting down sourceoffsite?

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: backing up sourcesafe content without stopping sourceoffsite

Post by lbauer » Thu Jul 09, 2009 6:26 pm

I don't think it's possible to do what you want without stopping the SOS Server service. To the VSS database, the SOS Server acts like a VSS client. The SOS Server maintains a connection to the database while the service is running. This is like a VSS client always being logged in.
Linda Bauer
SourceGear
Technical Support Manager

GrandPixel
Posts: 27
Joined: Tue Jun 16, 2009 8:07 am

Re: backing up sourcesafe content without stopping sourceoffsite

Post by GrandPixel » Fri Jul 10, 2009 12:42 pm

I believe in windows server 2003, ntbackup will automatically pause write operations momentarily, create a shadow copy snapshot, complete write oparations, and then create the backup using the snapshot. This way, even though sourceoffsite is connected to sourcesafe, the backup can still be created. Is anyone able to confirm this?

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: backing up sourcesafe content without stopping sourceoffsite

Post by lbauer » Fri Jul 10, 2009 2:56 pm

You can try it, but we don't recommend it. If someone's trying to do a checkin while the VSS database is being backed up, it could leave the files in an inconsistent state.
Linda Bauer
SourceGear
Technical Support Manager

Post Reply