svnbackup.py
From: Martin Furter <mf_at_rola.ch>
Date: 2006-02-07 23:30:52 CET
Hello
Attached is a backup script for use in post-commit hooks and cron jobs.
Since i have partial commit access now i can commit it myself, but i need
So let's start with the story first:
About two years ago i installed subversion on one of the servers at the
Six month later almost all projects have been moved to subversion, and
So i had to write a better backup script: svnbackup.py.
Now i run the following command in the weekly cronjob:
svnbackup.py -c 1000 -z /srv/svn/src /srv/svn_backup
The -c N option is the count of revisions per dumpfile, -z is for gzip.
src.000000-000999.svndmp.gz
Say the next time HEAD is at 3045 it creates these two files:
src.002000-002999.svndmp.gz
It has a few more options, for example -r for dumping single revision from
The script needs python 2.4 because it uses the package 'subprocess'. I
Another problem is that the script creates temporary dump files when using
I've never tested the script on windows so i guess it will not work there.
Does anyone object to commit it to tools/contrib (after adding the
Martin
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.