Thursday, July 7, 2011

Dumping, Compressing,Transferring, and Loading directories from one SVN server to another through your computer.

1. sign in to SVN server.
ssh exampleserver@whereurfilesatblahblah.0

2. svnadmin dump /var/svn/>svnbackup.bak

3. (optional) compress the file using tgz
*check file size using: ls -l
tar cvzf stuff.tgz*.bak              to unzip/untar: tar xvzf stuff.tgz

4. exit back to the computer your at
then: scp exampleserver@whereurfilesatblahblah.0:/vars/svn ./ stuff.tgz

Now your file is on your computer in your home folder (hopefully)

5. scp stuff.tgz ec2-user@thebrandnewbetterserver.12: stuff.tgz

6. Login to the new server: ssh ec2-user@thebrandnewbetterserver.12 (then untar/zip if its a .tgz)

7. sudo svnadmin load /var/somepath/newdirectory svnbackup.bak

8. done (hooray!)

No comments:

Post a Comment