I have a svn server on our lan locally its on windows. The developers use and check in/out from that. Just to be on the safer side we have took up a server from rackspace a linux one. Is it possible to do an automatic weekly synchronise from the local svn server to the remote one. The remote one will be mainly used as a remote backup but just in case if somebody wants to access then they can do as there is no static or external IP for our lan.
|
feedback
|
|
You can have a post-commit command updating automatically your backup repository. That way, you have real time backup. Alternatively, you can set up a cron job to update your backup repository at periods you like. | |||
|
feedback
|
|
Just to add on Veynom's answer, you could use the built-in svnsync tool to create a consistent backup of your local repository. Using tools like rsync are not recommended as you can rsync an inconsistent version which might be unusable when you really need it. | |||||
feedback
|
|
You can easily rsync the files in one direction, but nobody must use the repository at the other end. There would be no way of reconciling merge issues - you'd end up having two revisions with the same rev number and different content committed - it would be havoc. Either use a distributed VC such as Bazaar, or treat the offsite backup as strictly a backup - don't write to it. Distributed systems typically allow the developer to work on a branch hosted locally (which they can commit changes to as normal) and subsequently merge changes down/up to a "higher" repository. History of the changes is of course, maintained. | |||||||
feedback
|
|
There is a svn tool that will keep two svn servers in sync, sorry I can remember it’s same etc. It makes use of the same protocol as the svn client uses to talk to the server. You are likely to find a lot more svn users on stackoverflow | |||
|
feedback
|