Welcome, Guest! Log In | Create Account

Ticket #467 (closed: self-service)

Opened 9 months ago

Last modified 9 months ago

Cant restore svn backup.

Reported by: audetto Owned by: jwigglesworth
Keywords: svn backup restore Cc:
Private: no

Description

Hi,

I would like to restore a previously saved version of my svn repository.
I've saved a copy using rsync, generated a dump file, uploaded.
So far so good, now, following the instructions, I do

adminrepo -c svn
svnadmin load /svnroot/andsoft < dumpfile

And I get an error

[audetto@shell-21001 ~]$ svnadmin load /svnroot/andsoft < uploads/sf.dump
<<< Started new transaction, based on original revision 1
svnadmin: File already exists: filesystem '/svnroot/andsoft/db', transaction '155-4c', path 'trunk'

  • adding path : trunk ...

It does not surprise me as "svnadmin load" is used to add to a repository not to replace it.
I remember there used to be a web interface to upload a dumpfile and *replace* the content.
Should I manually delete /svnroot/andsoft and use "svnadmin create"?

Thanks for your help

Andrea

Change History

Changed 9 months ago by jwigglesworth

  • owner set to jwigglesworth
  • status changed from new to accepted

Changed 9 months ago by jwigglesworth

  • status changed from accepted to closed
  • resolution set to self-service

Hi

That appears to be correct. If your problem continues after using the svnadmin create command, please don't hesitate to submit a new ticket.

Best,
Jonathan Wigglesworth
SourceForge Support

Changed 9 months ago by audetto

Thanks.
I was scared by such a dramatic approach, but it worked well.

Thanks

Note: See TracTickets for help on using tickets.