SVN backup CGI script
From: Stephen Warren <swarren_at_paramanet.com>
Date: 2004-04-02 19:55:46 CEST
I have written a little CGI script that basically does "svnadmin hotcopy" and tar's the result. The idea is that computer A can 'execute' this via a GET call on computer B, and download the resulting backup data - a very simple way to pull a backup of an SVN database from one host to another...
It's attached.
Personally, I run this in a password-protected directory, over SSL, with no links to that directory!
Perhaps the error checking could be improved too. I need to verify that a "raise" in Python will cause a non-200 response that my client script can see.
-- Stephen Warren, Software Engineer, Parama Networks, San Jose, CA http://www.wwwdotorg.org/work_contact/
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.