LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-14-2011, 12:28 PM   #1
blainemiller
Member
 
Registered: Dec 2003
Posts: 78

Rep: Reputation: 1
svnadmin dump dumpfile location


One of my clients needs a backup of his svn repository. I see that this is possible using svadmin dump command. I see where the location of the source repository is, but I don't see anything in documentation as to where the actual dump file is located.

I need to know where the dump file is so I can scp or rsync the file to another server for backup.

Thanks!

Blaine
 
Old 04-14-2011, 02:06 PM   #2
zordrak
Member
 
Registered: Feb 2008
Distribution: Slackware
Posts: 595

Rep: Reputation: 116Reputation: 116
The dump goes to STDOUT (the console display). If you want to pipe the output to a file, use ">".

Quote:
svnadmin dump /srv/svn/repos > /tmp/dump.file
 
Old 04-14-2011, 02:27 PM   #3
blainemiller
Member
 
Registered: Dec 2003
Posts: 78

Original Poster
Rep: Reputation: 1
Wow! Great! Thanks!

I'll give it a shot. I hoped it was that simple, but the doc in subversion was rather sparse.

Thanks again,

Blaine
 
Old 04-18-2011, 01:58 PM   #4
blainemiller
Member
 
Registered: Dec 2003
Posts: 78

Original Poster
Rep: Reputation: 1
A related question, I believe. I've seen a couple of references to a problem with the svnadmin dump command and it corrupting commits into the subversion repository when the repository is *live*...

I wouldn't think this is so as don't commits lock the tree? Better safe than sorry. Should I lock out/quiesce the repository before I run svnadmin dump so as to not corrupt the repository? Anyone have any experience with this in subversion?

We have another unrelated code base that uses a commercial program, Perforce, and this is the case. That is, for repository backups to take place using it's own internal dump program, teh repositories need to be in static mode, that is, not in use...

Thanks!

Blaine
 
Old 04-18-2011, 03:31 PM   #5
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,455

Rep: Reputation: 448Reputation: 448Reputation: 448Reputation: 448Reputation: 448
Hi

Instead, try "svnadmin hotcopy /path/to/repos /path/to/copy". It works even if someone is using it.
 
Old 04-25-2011, 12:13 PM   #6
blainemiller
Member
 
Registered: Dec 2003
Posts: 78

Original Poster
Rep: Reputation: 1
Thanks! I've combined this with tar'ing the repos to a single file and scping it to the new linux svn server!

Thanks again!

Blaine
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i just use dumpfile function of libpcap? yujiliang Linux - Newbie 2 07-15-2010 11:13 AM
Python: can you do an "svnadmin dump" with pysvn? BrianK Programming 2 06-03-2010 10:17 PM
Help me understand "svnadmin dump" Aquarius_Girl General 1 05-21-2010 11:50 PM
core dump location davidsrsb Slackware 8 08-24-2006 11:42 PM
Loading sql dumpfile into mySQL patpawlowski Programming 2 01-24-2004 08:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration