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

Compressed Dump Files

From: Ryan Hunt <rhunt_at_hp.com>
Date: 2003-11-20 00:17:39 CET

I have found that by sending the dump files through gzip i can save
about 50% of the space.

-rw-rw-r-- 1 rhunt users 710977745 Nov 19 13:51 svn-dumpfile_2
-rw-rw-r-- 1 rhunt users 314348415 Nov 19 13:49
svn-dumpfile_2.gz

I can then load with out any problems by:

zcat svn-dumpfile_2.gz | svnadmin load /path/to/repos

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.

When piped directly to gzip and then directed to a file there is always
a 15 byte discrepancy between it and a file that was dumped directly
and then sent through gzip.

-rw-r--r-- 1 rhunt staff 285 Nov 19 14:06 svn-dumpfile_1.gz
-rw-r--r-- 1 rhunt staff 270 Nov 19 15:41 svn_dump_1.gz
-
Anyone have any ideas why a direct pipe doesn't work??

Any thoughts on incorporating gzip compression directly into the dump
and load processes??

-Ryan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Nov 20 00:09:17 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.