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

RE: RE: Backup Question -- Difference between rsync and hotcopy

From: Olivier Dagenais <olivier.dagenais_at_formark.com>
Date: 2007-05-17 21:42:51 CEST

> > I'd advise using svnadmin dump/load instead.
> On a 100+ GB repository, you might not finish a full dump in an
> acceptable time period. I know my 4 GB repo will take a minimum of an
> hour to do a full dump.

How about a partial dump, then? You can specify revision ranges:

"""
dump: usage: svnadmin dump REPOS_PATH [-r LOWER[:UPPER]] [--incremental]

Dump the contents of filesystem to stdout in a 'dumpfile'
portable format, sending feedback to stderr. Dump revisions
LOWER rev through UPPER rev. If no revisions are given, dump all
revision trees. If only LOWER is given, dump that one revision tree.
If --incremental is passed, then the first revision dumped will be
a diff against the previous revision, instead of the usual fulltext.

Valid options:
  -r [--revision] arg : specify revision number ARG (or X:Y range)
  --incremental : dump incrementally
  --deltas : use deltas in dump output
  -q [--quiet] : no progress (only errors) to stderr
"""

...and if you can guarantee nobody's ever going to modify previous revisions, then you don't need to back those up during EVERY backup session, you just need a "permanent copy" which you duplicate on a more relaxed basis (say every 4 months), as the documentation implies:

"""
If you add the --incremental option when you dump your repository, svnadmin will compare the first dumped revision against the previous revision in the repository, the same way it treats every other revision that gets dumped. It will then output the first revision exactly as it does the rest of the revisions in the dump range—mentioning only the changes that occurred in that revision. The benefit of this is that you can create several small dump files that can be loaded in succession, instead of one large one, like so:

$ svnadmin dump myrepos --revision 0:1000 > dumpfile1
$ svnadmin dump myrepos --revision 1001:2000 --incremental > dumpfile2
$ svnadmin dump myrepos --revision 2001:3000 --incremental > dumpfile3
"""
http://svnbook.red-bean.com/en/1.1/ch05s03.html#svn-ch-5-sect-3.5

I haven't tried it, though...

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Olivier Dagenais
Software Engineering / Génie logiciel
Formark - Combine the Best of SharePoint® and Livelink®
Phone: 613-599-5173 ext 238
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Make sure you don't miss anything: subscribe to the Formark Newsletter:
http://www.formark.com/support/register/index.asp
Received on Thu May 17 21:40:57 2007

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.