Is there a simple way to copy a directory from one repository into another repository with copying all of the history?
相关问题
- How can I set the SVN password with Emacs 23.1 bui
- If statements in .htaccess files, to enable passwo
- SVN+SSH checkout over VPN using tortoise SVN, Smar
- Mercurial compared to private branches in SVN
- Using Subversion and SourceSafe at the same time?
相关文章
- Is there a version control system abstraction for
- Intermittent “SVNException: svn: E175002: Connecti
- IntelliJ Subversion Authentication Required Dialog
- TortoiseHG and hgsubversion (Windows): “no module
- Incompatible JavaHl library loaded
- TFS vs. JIRA/Bamboo/SVN [closed]
- converting svn repo to git using reposurgeon
- SVN查看日志超时
As suggested in the Subversion book:
With an example:
Use the
svnsync
— Subversion Repository Mirroring command:The Subversion documentation for the
svnsync
command has the following warning (as of version 1.7) implying that once some other SVN commands are used to modify a mirror repository,svnsync
should not be used with that particular mirror again:To migrate the repository from one server to another version following are the steps you need to follow.
Step 1: Dump all the repository versions into a dump file. You might be having thousands of versions in the existing repository. So you can create a dump file using the following script.
dump.sh
In the above script you might get a complete dump of the old repository depending on the space availability, or you can take the dump in a short interval (i.e. from 0-5000, then from 5001-10000 and so on).
Step 2: Execute the above script using the below command. Depending on the kernel version you need to execute either of the below two queries.
This will write all the commands you had to execute using the above command into stdout.sh file. You can track this file for your future reference.
Step 3: Check if the firewall is open for port number 22 between the old and the new server. If that is not open, then ask your administrator to make this available.
Step 4: Now copy all the dump files generated from the old SVN repository to the new server using the below command.
In the above command,
xxxx
is the user who is doing the operation. In the process of doing sftp you are copying the dump files from the old server to the new server.Step 5: Create a new repository to the new Server
Step 6: Now use the below script to load all the dump files.
load.sh
Just following the above six simple steps you will be able to migrate your existing repository to a new repository. Through this process you do not need to worry about the corrupted revisions of your existing repository.