Moving a Subversion Repository
Need to move your Apache Subversion repository? In Subversion, the recommended cause of action is to collect all of the data contained within your repository into a single, portable dump file, and then load the data from the dump file into a new repository. To create the dump file, either run:
svnadmin dump
Or, specify a particular revision to dump, or a range of revisions:
svnadmin dump myrepos –revision
Once you have dumped the data from the original repository, you will need to load the data from the dump file into your new repository. To load the dump file, run the following command in the new location:
svnadmin load {REPOS_PATH}
All your data will now be available in the new repository!
It’s useful to keep in mind that dump files are typically larger than the original repository. This can cause the shell to timeout when loading a dump file into a new repository. If this occurs, you can change the bash shell timeout to load indefinitely, with the following command:
export TMOUT =0
0 Responses to “Subversion Tip of the Week”