I have been working with subversion for years but this is the second time I have to perform the moving repository task. The help document sucks, and the help command doesn’t help much to find the correct order of options.
The command is kind of short, but not sure if, in the next time, I would forget again. So, I end up writing this post for further needs.
I’m assuming you already have created new repository somewhere. Let’s say SOURCE_REPO is the current repository you want to move and DETINATION_REPO is the repository you want to migrate from SOURCE_REPO.
# Step 1: setup the initial sync
svnsync init DETINATION_REPO SOURCE_REPO --source-username sousername --sync-username syusername
#Step 2: Issue the sync command
svnsync sync DETINATION_REPO
1 2 3 4 5 |
# Step 1: setup the initial sync
svnsync init DETINATION_REPO SOURCE_REPO --source-username sousername --sync-username syusername
#Step 2: Issue the sync command
svnsync sync DETINATION_REPO
|
Actually, you will need to use these args for authentication: (see svnsync help)
--source-username ARG : connect to source repository with username ARG
--source-password ARG : connect to source repository with password ARG
--sync-username ARG : connect to sync repository with username ARG
--sync-password ARG : connect to sync repository with password ARG
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras semper cursus rutrum. Praesent sit amet eros eget urna ultricies accumsan. Praesent condimentum rutrum sem, eget rhoncus sapien ultricies at. Integer nunc augue, lacinia non auctor eu, facilisis sed enim. Pellentesque vulputate, odio id ullamcorper laoreet, lectus ipsum congue sapien, in mattis libero leo vitae ipsum. Integer ac eros id mauris rhoncus eleifend quis quis diam. Aliquam convallis, quam at blandit tempus, turpis metus tincidunt massa, et feugiat lacus nulla et diam. In dignissim rutrum massa ut tincidunt. Mauris a convallis neque. Sed luctus purus at turpis feugiat lobortis quis in mi. Ut mattis, sem et fringilla porttitor, magna dolor convallis arcu, ac tincidunt velit nulla at odio. Nam aliquam enim ut mi interdum mollis. Morbi quis nunc elit, sed suscipit urna. Vestibulum non erat neque, eget tempus augue.
Aliquam feugiat mattis euismod. Cras vestibulum turpis eget dui rutrum malesuada. Fusce vulputate augue non urna varius in pellentesque erat convallis. Suspendisse potenti. Nam quis nibh massa. Aliquam volutpat rutrum tortor. Duis sed lorem at elit aliquet dapibus.