Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-14-2011, 12:28 PM
|
#1
|
Member
Registered: Dec 2003
Posts: 78
Rep:
|
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
|
|
|
04-14-2011, 02:06 PM
|
#2
|
Member
Registered: Feb 2008
Distribution: Slackware
Posts: 595
Rep:
|
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
|
|
|
|
04-14-2011, 02:27 PM
|
#3
|
Member
Registered: Dec 2003
Posts: 78
Original Poster
Rep:
|
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
|
|
|
04-18-2011, 01:58 PM
|
#4
|
Member
Registered: Dec 2003
Posts: 78
Original Poster
Rep:
|
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
|
|
|
04-18-2011, 03:31 PM
|
#5
|
Senior Member
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,455
|
Hi
Instead, try "svnadmin hotcopy /path/to/repos /path/to/copy". It works even if someone is using it.
|
|
|
04-25-2011, 12:13 PM
|
#6
|
Member
Registered: Dec 2003
Posts: 78
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 06:42 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|