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

Re: Compressed Dump Files

From: Ryan Hunt <rhunt_at_hp.com>
Date: 2003-11-20 01:47:57 CET

Right I can see my mistake on the pipeline now, but I guess I didn't
state the original problem as well as I should have...

The benefit of this would be in remote piping. Like the following:

svnadmin dump /Users/rhunt/tmp/svn_test --revision 1 --incremental |
gzip -9 - | ssh remotehost "cat > /path/to/backups/svn-dump_1.gz"
or
svnadmin dump /Users/rhunt/tmp/svn_test --revision 1 --incremental |
gzip -9 - | ssh remotehost "zcat | svnadmin load /path/to/new/repos"

It looks as if all the errors were self inflicted...

Thanks for the extra set of eyes...

-Ryan

On Wednesday, November 19, 2003, at 05:02 PM, Brian Mathis wrote:

> Ryan Hunt wrote:
> [...]
>> However, if I try pipe directly to gzip I get a failure.
>> => svnadmin dump /Users/rhunt/tmp/svn_test --revision 1 --incremental
>> | gzip -9 - | svnadmin load /Users/rhunt/tmp/svn_test2
>> * Dumped revision 1.
>> svn: Incomplete data
>> svn: Premature end of content data in dumpstream.
>
>
> Maybe I don't understand this line here, but it looks like you're
> trying to pipe the compressed gzip data directly into 'svnadmin load'?
> That doesn't really make any sense. I think you want:
>
> > svnadmin dump /Users/rhunt/tmp/svn_test --revision 1 --incremental |
> gzip -9 | gzip -d | svnadmin load /Users/rhunt/tmp/svn_test2
>
> Though I'm not really sure of the value of doing this.
>
> [...]
>> -Ryan
>
> --
> Brian Mathis
> http://directedge.com/b/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Nov 20 01:38:26 2003

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.