I wrote a small Python script to handle this problem.
It "resolves" the issue of accidently hotcopy'ing to an existing
repository/directory by creating a unique name (temporary directory)for the
repository. It then tar's and gzip's the results (all using Python 2.3
library calls :-)) such that I end up with a file of the form
"reproback-DD-MMM-YYYY-HH-MM-SS.tar.gz" in the root of my C drive. It cleans
up after itself so there are no temporary directories/files left lying
around.
Next step will be to set it up as a cron job on my cygwin installation so
that it runs at appropriately regular intervals (haven't used cron since my
Unix days - which was a long time ago so a small amount of research is
required here :-)).
I am working with a couple of guys who don't have Python installed, so I
even created a executable of it so they can install and run it if need be -
see py2exe for instructions on doing this.
Peter
-----Original Message-----
From: Toby Johnson [mailto:toby@etjohnson.us]
Sent: Saturday, May 08, 2004 11:21 PM
To: users@subversion.tigris.org
Subject: Re: Backing up a live repos
Stefan Pettersson wrote:
>You may schedule to run a batch that uses "svn hotcopy" to make a backup
>each night.
>
>- stefan
>
>
Make that "svnadmin hotcopy".
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Warning: Copyright ResMed. Where the contents of this email and/or attachment includes materials prepared by ResMed, the use of those
materials is subject exclusively to the conditions of engagement between ResMed and the intended recipient.
This communication is confidential and may contain legally privileged information.
By the use of email over the Internet or other communication systems, ResMed is not waiving either confidentiality of, or legal
privilege in,the content of the email and of any attachments.
If the recipient of this message is not the intended addressee, please call ResMed immediately on +61 2 9886 5000 Sydney, Australia.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon May 10 01:50:38 2004