Hi.
I used the repository backup and restore scripts from the book
Pragmatic Version Control using Subversion Those codes are among others on a file available at
http://www.pragprog.com/titles/svn/source_code
I haven't looked at that file lately, and you may need to adapt the scripts for your use.
Best wishes ... cheers, makyo