If you are using hotcopy for backups to be saved off on another
machine, you should look into using svnsync instead. It will keep
your repository in sync incrementally as commits are made.
To keep doing things how you are doing them, use the --checksum option
to rsync so that it compares files based on checksum, not date and
size.
On 10/19/06, Stephen Adler <adler@stephenadler.com> wrote:
> Guys,
>
> I'm in the process of setting up a backup system for my subversion
> repositories. What I'm doing is
> basically
>
> \rm -rf /tmp/HotCopy/MyRepository
> svnadmin hotcopy /SVNRepDir/MyRepository /tmp/HotCopy/MyRepository
> rsync -avz /tmp/HotCopy/MyRepository remotehost:/backup
>
> The problem is, every time I execute the backup, I loose the
> effectivness of rsync since
> the whole repository gets pushed over to the remotehost because the /tmp
> directory has
> been recreated. Is there an incremental hotcopy command which allows me
> to do something
> like this?
>
>
> svnadmin hotcopy /SVNRepDir/MyRepository /tmp/HotCopy/MyRepository
> svn commit -m "doing something to repository" changedfile.c
> file:///SVNRepDir/MyRepository/Module
> svnadmin hotcopy /SVNRepDir/MyRepository /tmp/HotCopy/MyRepository
>
> The second hotcopy command complains that the directory already exists
> and is non-empty....
>
> Cheers. Steve.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
--
Mark
"Blessed is he who finds happiness in his own foolishness, for he will
always be happy."
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Oct 20 08:30:16 2006