svn backup repository

大兔子大兔子 提交于 2019-12-24 11:44:56

问题


I managed to bring down my subversion remote server (temporarily). However, I have a file backup with subversion root.

is it possible to temporarily update working copy from this backup root, while maintaining/(or reverting) original repository location?


回答1:


First off, it's best (if you're copying from a live server) to use svnadmin hotcopy instead of a plain fil copy; this ensures that things get read in an order that avoids race conditions if someone commits during the copy. But if you copied from a server that nobody was using at the time a file copy is fine.

To change what server a working copy pulls from, use svn switch --relocate [URL] to change how it accesses the repository. Then, when your server is back, just use it again to change back.



来源:https://stackoverflow.com/questions/3294893/svn-backup-repository

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!