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

Re: Strategy for backup and recovering svn repository

From: Dhiraj Soni <dhiraj.soni_at_oracle.com>
Date: 2007-05-08 16:29:34 CEST

(SVN version 1.4.3 on Sun Hardware running RH Linux Enterprise.
Compiled natively from source. )
Hi all,
I implemented the strategy, it doesn't work. Somehow, when you apply
incremental dump after a full hotcopy, it results in an error on the
lines of:

> ERROR: *svnadmin* failed with the following output while loading
    the dumpfile:
> *svnadmin*: *File* *already* *exists*: *filesystem* '.../db',
> transaction '462-1', path 'trunk'

This only happens for first incremental commit, the rest goes through
ok. Don't know why it doesn't work. Here's what i did:
1) Made a hotcopy backup of full repository
2) Grab the youngest revision of that hotcopy backup. Lets say its at rev. 3
3) Do daily or post-commit incremental backups from then on, eg. 3-4,
4-7 etc.
4) Refresh this mechanism monthly.

To recover:
1) Place the hotcopy in original's place
2) Apply the incremental dumps. The 3-4 dump always results in error.
3) Rest of incremental dumps go on fine.

Can anyone help me figure out what's going wrong??

Thanks,
Dhiraj.

Dhiraj Soni wrote:
> I tried this, seems to work. Anyone has experience with this method?
> The repositories are going to be huge 1GB to 50GB, that's why i'm
> thinking of taking this approach. Take a hotcopy dump, then
> incremental dumps. Refresh this monthly.
> My strategy is that after taking hotcopy ,grab its youngest version
> and then get dumps after that. After that just zip the data and get
> rid of directory. So, that way i ensure that i grab all the revisions
> after hotcopy.
> What do you guys think?? Any issues? Anyone taking this approach, or
> i'm better off just using svnadmin dump instead of hotcopy??
> The FAQ needs to address this, as searching this list brought me some
> similar questions but no concrete answer.
> -Thanks.
>
> Dhiraj Soni wrote:
>> Hi,
>> I'm trying to setup a backup/reco strategy for our svn repositories.
>> My question is if i take a full dump via 'svnadmin hotcopy' command
>> then taking incrementail daily via 'svnadmin dump', can i apply the
>> daily incremental dumps to the full dump taken by hotcopy command??
>> Thanks,
>> Dhiraj.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
>> For additional commands, e-mail: users-help@subversion.tigris.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
Received on Tue May 8 16:32:13 2007

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