Click to See Complete Forum and Search --> : Backing up SVN
dougal85
07-13-2008, 07:08 PM
I've started to use SVN more and more and my projects are getting bigger and bigger...
I was wondering if any of you have suggestions about how I would be best to back-up SVN? At the moment I do a manual back-up. I was thinking about doing a RAID 1 but I guess I should also have an external back-up somehow too... maybe I don't even need the RAID since downtime wouldn't be a big issue and I could recover from the external...
cheers
bpat1434
07-13-2008, 10:03 PM
You should just be able to grab the SVN project folder and store the elsewhere.
dougal85
07-26-2008, 09:53 AM
Thanks I finally got around to setting up my SVN server. I'll do that.
The only other things is, should I store my code outside SVN too? or am I able to trust that it wont corrupt or something silly?
I guess I could write a script to export the code every day...
bpat1434
07-26-2008, 11:45 AM
I keep my code local and on SVN. Then I just commit every night to my SVN and still have my local copy.
Remember, SVN is not replacing your local filesystem. It's just a versioning system that will take what you have and store information about the files, as well as the files themselves. Then when you screw up, you can go back to a specific time/place. You should always have your local code. I never delete my local code, I just use SVN as a backup in case my computer dies (which tends to happen a lot with Windows).
dougal85
07-26-2008, 05:21 PM
True, thats a good point. I guess I'll do something similar.
cheers
malbera
07-27-2008, 01:25 PM
For more redundancy, also try rsync: http://pc-tips.net/2008/05/17/data-backup-with-rsync/
dougal85
07-30-2008, 05:42 PM
As an added measure what I ended up doing was writing a simple Python script that done a svn co (checkout) and then scp'ed it to another machine.
This is that run by crontab every morning at 4am. My regular back-up system then picks up the folder its scp'ed too and I end up with lots and lots of copies! :)
PHP Builder
Copyright WebMediaBrands Inc. All Rights Reserved.