I have VisualSVN Server on my Vista laptop. The repository resides on the second hard drive. I am doing a clean install of Windows 7 in the next few days.
How do I configure or install VisualSVN Server again and keep the users, repositories, and settings intact from the previous installation?
You can migrate a repository using the svnadmin dump function. On the SVN server, type svnadmin dump /absolute/path/to/the/repo > /tmp/repo. svndump . This will export the entire repository to a text file in the system's temporary directory and name it "repo.
Server port This setting allows you to configure VisualSVN Server to use a specific TCP port. By default the server uses port 443 for HTTPS and port 80 for HTTP. If the default ports are occupied by other applications, it is suggested to use the 8443 and 8080 ports instead.
You can simply copy the folder containing the repositories (e.g. c:\repositories
) to the new machine. That folder contains all the users (in the file htpasswd
) and the access rights (authz
).
Note: this is true if you're using subversion authentication. I'm not sure if it's the same when using windows authentication, but I guess it is, since there's also a file named (authz-windows
).
Detailed instructions:
c:\repositories
)VisualSVN Server Manager
VisualSVN Server (local)
entry in the console and click Properties
c:\repositories
)The roles/users are stored in the files groups.conf and htpasswd under the "Repositories" folder and can be copied to the new server. The individual permissions for each repo are stored in the VisualSVN-SvnAuthz file under "Repositories\your-repo\conf" and can also be copied as-is.
The best way to transfer the data history of the repos without getting incompatible file system errors is to create a dump file for each repo, then copy the dump file to the new server and import the dump file on the new server. You need to use the command line tool available in the VisualSVN Management console to create these dump files. Visual SVN has good documentation for the specifics here: http://www.visualsvn.com/support/topic/00010/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With