Marxist Ali
Marxist Ali

Reputation: 65

How to transfer source code from one svn server to another?

Regards Zuhaib

Upvotes: 1

Views: 949

Answers (2)

Chris Thornton
Chris Thornton

Reputation: 15817

If your new server runs Windows, you can use VisualSVNServer (free), which has the ability to simply import your existing repository.

Upvotes: 0

Ilion
Ilion

Reputation: 6872

I'd suggest using svndump:

svnadmin dump repositorypath | gzip > backupname.svn.gz

That will give you a gzipped backup of your repository. You can then copy it to the new svn server and unarchive it.

You can also try hotcopy or svnsync (although that seems like overkill for your puporse). Hotcopy will preserve some control files which svndump will probably miss. It can also run while the svn server is up.

svnadmin hotcopy repositorypath /path/to/backup

You can then gzip the backup and transfer it.

Upvotes: 1

Related Questions