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

Backups with svnadmin dump using -r ?

From: Adam Funk <a24061_at_ducksburg.com>
Date: Wed, 14 Oct 2009 19:54:21 +0100

At the moment I back up my repository using this script from a cron
job:

#v+
DSTR=`date +%Y%m%d-%H%M` # e.g. 20011230-0305
REPOS='/usr/local/svn/repository'
DUMP_NAME="bunsen-svn-${DSTR}.dump"

pushd /var/scratch/backups
svnadmin dump -q ${REPOS} >${DUMP_NAME}
popd
#v-

and I later copy the back-up file somewhere safe. The repository is
almost at version 700 now, and I never need to look back more than a
couple of revisions, so I'd be willing to lose a lot of history in
order to reduce the size of the back-up file, but I want to check that
I understand the -r option correctly. If I change the dump command to

svnadmin dump -q -r 600:HEAD ${REPOS} >${DUMP_NAME}

and I need to restore the repository from the back-up, does that mean
I could do all of "svn up -r 600", "svn up -r 601", ..., "svn up"
successfully from it? For example, would it keep files that had been
checked in at r300 and not modified since then?

Thanks,
Adam

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2407700

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-10-14 21:16:49 CEST

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.