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

Re: subversion repository backup

From: Brian Brophy <brianmbrophy_at_gmail.com>
Date: Fri, 12 Dec 2008 08:31:02 -0500

The backup scheme we use is the following:
- Every commit is backed-up to a dump of the revision committed using a
post-commit hook. We keep these for 30 days.
- 4:00 AM Daily, svnadmin hotcopy dumps the repository to a backup
location. These are kept for 3 days.
- The host itself (including the repository) also participates in a
standard saturday full, daily differential backup scheme where
individual week's data is kept 6 weeks, Saturday fulls are kept 4
months, and the first Saturday of every month is kept for one year.

I like the post-commit hook to backup each transaction as it becomes a
handy way to manually restore the repository using the committed
transactions in the order they were committed as a tedious last resort
option.

Brian

vinay i wrote:
> Hello All,
>
> I am using fsync to back my subversion repository. This is not the
> ideal way to make a backup and I faced some issues probably because
> the files were copied in the wrong order.
>
> Subversion book talks about "svnsync" and "svnadmin hotcopy" for
> repository backup. I have a few queries regarding this:
>
> 1. svnsync: This only syncs the revisions. How do I sync all other
> configuration files,hooks and files which reside inside the repository
> directory?
> 2. svnsync: The advice is to maintain a "mirror copy" which has only
> read permissions. But we have scenarios when we need to make commits
> on the back up repository. (We used to do the same with CVS
> repository. When the primary repository was restored we committed the
> changes again on the primary repository). Hence, can I have a mirror
> copy which has write permissions. Will there be any side effects?
> 3. svnadmin hotcopy: There are two ways to do it (incremental and full
> copy). I prefer to use full copy.
> We use the same path for the repository on the main and backup
> server.
> a. Can I run a svnadmin copy directly to create a copy on the
> backup server?
> b. Should I do a hotcopy on the local server and then do a rsync
> to the backup server. Will there be any issues when rsync happens
> (should I use a staging area to rsync and then copy to the desired
> location)?
>
> Any insight into this would be really helpful!!
>
> Thanks
> Vinay

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2008-12-12 14:32:01 CET

This is an archived mail posted to the Subversion Users mailing list.