Re: How to backup all Repositories in a Directory?
From: Thomas Harold <thomas-news_at_nybeta.com>
Date: Sat, 10 Jan 2009 09:14:26 -0500
David Weintraub wrote:
Proof that there is more then one way to skin a cat. Ours looks
The downside is that you have to "rm -r" the destination folder every
-----------------------------------
BASE="/var/svn/"
FIND=/usr/bin/find
DIRS=`find ${BASE} -name uuid | $GREP 'db/uuid$' | $SED 's:/db/uuid$::'
for DIR in ${DIRS}
if ! test -d ${HOTCOPY}${DIR}
$RM -r ${HOTCOPY}${DIR}
# insert rdiff-backup line here
I'll have to add in Marko's consistency check.
Marko's use of the find command is definitely slicker then using grep &
We used to setup the $DIRS folder manually by typing in all of the
------------------------------------------------------
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
|
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.