Marius van Witzenburg "Learned my lesson in life, now setting my action to stay in life."

14Aug/090

Backup/Refresh repository when upgrading Subversion to a newer version (dump/load)

Shut down svnserve, Apache, and anything else that might access the repository.

svnadmin dump /repository/path/here > dumpfile.txt
mv /repository/path/here /repository/path/here_old

Upgrade Subversion.

svnadmin create /repository/path/here
svnadmin load /repository/path/here > dumpfile.txt

Copy over hook scripts, etc, from the old repository to the new one.

And last but not least. Restart Apache, svnserver or any other app you run :)

blog comments powered by Disqus