[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svnbackup.py

From: Martin Furter <mf_at_rola.ch>
Date: 2006-02-13 22:37:58 CET

On Mon, 13 Feb 2006 kfogel@collab.net wrote:

> Martin Furter <mf@rola.ch> writes:
>> Does anyone object to commit it to tools/contrib (after adding the
>> collabnet license) ?
>> Any other suggestions or wishes?
>
> I think it needs more documentation -- something like the email you
> wrote would be good :-). Also, maybe "svn-range-backup.py" or
> something like that? There are many possible backup strategies for
> Subversion, we shouldn't imply one is canonical unless it's clearly
> best for the majority of cases. (While this script will be very
> useful for certain situations, I don't think it meets that criterion.)

Yes, more documentation would be good. I haven't found docs in the tools
dir so I'm not sure where to put it. What about svnbackup.readme ?

I agree, the name is not very good. I'd prefer something which includes
the word 'dump'. What about "svn-backup-dumps.py" ?

On Wed, 8 Feb 2006, Alan Barrett wrote:

> On Tue, 07 Feb 2006, Martin Furter wrote:
>> So i had to write a better backup script: svnbackup.py.
>
> This looks very useful. I have a few suggestions:
>
> * Make the compression program (and filename extension) configurable.
> (I find that bzip2 compresses dumps better than gzip does.)
>
> * Make the use of the svnadmin dump "--deltas" option configurable.

Good ideas, i'll implement both.

>> Another problem is that the script creates temporary dump files when
>> using the gzip option. It would be better to pipe the output of
>> svnadmin dump directly into gzip, if would consume less disk space and
>> even run faster on my solaris box.
>
> Yes, that would be better.

On Fri, 10 Feb 2006, Chris Foote wrote:

> Or, you could just use the python zipfile/gzip/bz2/tarfile modules.

When i wrote the script I wanted to do that but I haven't found a streamy
version of the gzip functions. I'll take another look into the python
docs...

Martin

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Feb 13 22:38:49 2006

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.