Robert Denton wrote:
> I would like to leverage dumpfiles as a backup mechanism for my repo.
> I would like to do a weekly dump with nightly incremental dumps.
> Would the following accomplish this goal?
>
> in crontab:
> 1 12 * * 0 root svnadmin dump /svn/repo > /svn/dumpfiles/repo_dump
>
> in cron.daily:
> svnadmin dump --incremental /svn/repo >> /svn/dumpfiles/repo_dump
>
> I guess my questions are: Is the --incremental switch capable of
> determining where the dumpfile left off, such that I do not need to
> specify revision numbers via the -r switch? Also, can I use the
> append operator (>>) to append the incremental dump to the original
> dumpfile, or is it necessary to create a new dumpfile each night?
>
> Thanks!
>
> Robert
svnadmin help text clearly states that
"If --incremental is passed, then the first revision dumped will be
a diff against the previous revision, instead of the usual fulltext."
so it's not gonna track where you've left off. you need a bit more
elaborate scheme. like storing last revision dumped in a text file, and
then using that value as a "svnadmin dump -r $lastRev /svn/repo >
/svn/dumpfiles/repo_dump.from$lastRev" or something like that.
V.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jul 26 23:06:26 2007