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

Re: Backing up repository differentially

From: Ryan Schmidt <subversion-2007a_at_ryandesign.com>
Date: 2007-02-13 22:20:05 CET

On Feb 13, 2007, at 09:55, lightbulb432 wrote:

> If today I back up my repository's root folder and it has 10
> revisions, and
> tomorrow I back up my repository with 15 revisions, can I back up
> on the
> second day differentially? (i.e. back up only the 5 new revisions
> as opposed
> to all 15?)
>
> How would I do this? (Is it a filesystem issue whereby there are
> certain
> files that need to be copied over, or are there specific Subversion
> commands
> for this?)

If you are backing up by creating dump files, then sure, there's the
--incremental option:

$ svnadmin help dump
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

For FSFS-based repositories, there's also this fast-backup script,
which uses hard links so that backups are incremental:

http://svn.collab.net/repos/svn/trunk/contrib/server-side/svn-fast-
backup

-- 
To reply to the mailing list, please use your mailer's Reply To All  
function
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Feb 13 22:21:01 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.