You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Robert Denton <ro...@headsprout.com> on 2007/07/26 21:02:57 UTC
Incremental Dumps question
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
Re: Incremental Dumps question
Posted by Vasili Sviridov <vs...@exceede.com>.
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
Re: Incremental Dumps question
Posted by Blair Zajac <bl...@orcaware.com>.
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
It would be better to have the incremental dumps in your post-commit script so
you don't loose any work if there is an issue. Then we have a crontab use find
-mtime +14 to remove incrementals.
Regards,
Blair
--
Blair Zajac, Ph.D.
CTO, OrcaWare Technologies
<bl...@orcaware.com>
Subversion training, consulting and support
http://www.orcaware.com/svn/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org