How to migrate Collabnet Subversion repositories to a new hardware location?
Use the steps below to migrate the current Collabnet Subversion server to the latest one in the Linux environment.
Note: The same steps can be followed for Windows
- Download Subversion client and Server from the link below
- Subversion 1.12.2 (Linux x86_64) --> Subversion client)
- Apache Server for Subversion 1.12.2 (Linux x86_64) --> Subversion server)
- From the current server, navigate to /etc/opt/CollabNet_Subversion/conf take a backup of 'conf/' directory completely (tar -zcvf conf.tar.gz conf/)
- Navigate to the location where repositories are stored, take a backup of all repos.
- In the new server - Linux environment, do a fresh install of Collabnet Subversion 1.12.2 (or any latest version)
- Install Subversion 1.12.2 command-line binaries (client)
> sudo rpm --import /path/to/RPM-GPG-KEY-csvn.asc
- Download the CollabNet GPG key from the link below
sudo rpm -ivh /path/to/client.rpm
- Open '/etc/profile' and add this path at the end:
- Execute below commands:
- Install Collabnet Subversion server for Subversion 1.12.2 (server)
sudo rpm -ivh /path/to/server.rpm
- Client and server Subversion are now installed on the new server - Linux.
- Move the 'conf' directory and 'repository' directory backups taken from old server to new server in corresponding locations. If location for repo directory is not available, create one and then move the repos.
- Configure the Subversion server with all old data
- Run the command:
Sample configure questions that are displayed while running the above command are below
- Would you like to configure the CollabNet Subversion Server now? [yes] yes
- This setup can configure either Apache or svnserve as Subversion server, for you. Would you like to configure Apache as your Subversion server now? [yes] yes
- Specify the base directory for Subversion repositories: [/var/svn/repositories] --> Specify your repo directory here
By doing so, the current repos will be discovered by new Subversion setup.
- Would you like to give the name and port that the server uses to identify itself? [yes] yes
Here assign new host name and port that users will be using for checkout and commit operations. This can be changed later if you wish. (The default hostname is localhost and port 80)
- Allow anonymous read access? [no] no
Here, existing users from conf will be discovered.
Now the current new server will be restarted and the setup is ready.
Collabnet Subversion and Subversion Edge are planned to Sunset on 31st December 2020. Support and development activity will no longer be available for these products. We offer an equivalent and exclusive application called Teamforge. See https://digital.ai/teamforge.
Internal reference: #93415