Page MenuHomec4science

Migration procedures for EPFL
Updated 809 Days AgoPublic

This is the manual migration procedure, there's also a script to automate the migration, see Migration script for EPFL

Migration from GIT

  1. Add a public ssh key to your account (or a VCS password)
  2. Create repo in c4science
  3. Clone a fresh copy of the repository and enter the directory (even if you already have a local copy, this ensure all the remote branches are fetched)
cd /tmp # or any directory of your choice
git clone --mirror https://rezzonic@git.epfl.ch/repo/scitas-benchmarks.git
cd scitas-benchmarks.git
  1. Push everything to c4science, replace <URI> with the new c4science URI, for example ssh://git@c4science.ch/diffusion/PHTEST/test.git
git push --all <URI>
git push --tags <URI>
  1. Wait until all the commits are parsed by Phabricator to be available on the web interface
  1. You can clone your repository with the new URI
git clone <URI>

Migration from SVN

  • You can either migrate from SVN to GIT (preferred), or SVN to SVN

SVN to GIT

WARNING: This procedure has been tested in specific case, please know what you're doing
  • Have GIT installed
  • It depends on how your svn repository is organized,
  • If there are trunk/branches/tags directories:
git svn clone  https://svn.epfl.ch/svn/<repo name>/ --username <gaspar>
  1. If your repository starts at the root, you can also replace / with a directory in your repo, the final git repository will contain only this directory (you allow to split your SVN repository into multiple GIT repo for instance)
git svn clone  https://svn.epfl.ch/svn/<repo name>/ --username <gaspar> --trunk /
  • Create a GIT repo on c4science
  • Add the remote to your new git repository
cd <repo name>
git remote add origin https://c4science.ch/code/<new repo>
git push origin master

SVN to SVN

  • Create a subversion repository
  • Be sure to have a SSH key configured (public ssh key)
  • On the management page
    • Activate the repository
    • Activate "Allow Dangerous Changes"
  • In your local computer, checkout the repository from svn.epfl.ch, go in the newly created directory
  • Initialize and syncronize the repository with c4science using your new repository URL (change <ID> and <NAME> to match your repositories in c4science and svn.epfl.ch)
svnsync init svn+ssh://git@c4science.ch/diffusion/<ID>/  https://svn.epfl.ch/svn/<NAME>
svnsync sync svn+ssh://git@c4science.ch/diffusion/<ID>/
  • Deactivate Dangerous Changes
  • You can now checkout the new URL on your machine
svn checkout svn+ssh://git@c4science.ch/diffusion/<ID>/ myrepo

Service accounts

If you are using service accounts for your git and svn repositories, you can either use ssh keys on c4science or you can ask for a bot user.

Last Author
aubort
Last Edited
Aug 31 2017, 13:05

Event Timeline

rezzonico created this document.Apr 6 2016, 16:44
rezzonico edited the content of this document. (Show Details)
rezzonico edited the content of this document. (Show Details)
rezzonico edited the content of this document. (Show Details)Apr 6 2016, 16:47
rezzonico edited the content of this document. (Show Details)
rezzonico edited the content of this document. (Show Details)
rezzonico edited the content of this document. (Show Details)
rezzonico edited the content of this document. (Show Details)Apr 10 2016, 22:31
aubort edited the content of this document. (Show Details)Apr 14 2016, 12:45
aubort edited the content of this document. (Show Details)Apr 25 2016, 10:51
aubort changed the visibility from "Public (No Login Required)" to "All Users".Jun 5 2016, 20:54
aubort changed the visibility from "All Users" to "Public (No Login Required)".Jun 7 2016, 12:46
aubort edited the content of this document. (Show Details)Jun 13 2016, 13:52
aubort edited the content of this document. (Show Details)Jul 4 2016, 14:45
richart edited the content of this document. (Show Details)Sep 6 2016, 10:59
richart edited the content of this document. (Show Details)
richart edited the content of this document. (Show Details)Sep 6 2016, 11:08
rezzonico edited the content of this document. (Show Details)Oct 26 2016, 11:23
rezzonico edited the content of this document. (Show Details)Oct 26 2016, 11:32
aubort changed the edit policy from "c4science (Project)" to "Restricted Project (Project)".Dec 16 2016, 16:50
aubort edited the content of this document. (Show Details)Feb 5 2017, 13:18
aubort added a project: c4science.
aubort changed the title from Migration procedures to Migration procedures for EPFL.Mar 13 2017, 15:19
aubort edited the content of this document. (Show Details)
rezzonico edited the content of this document. (Show Details)Mar 13 2017, 16:29
rezzonico edited the content of this document. (Show Details)
richart edited the content of this document. (Show Details)Mar 14 2017, 10:53
richart edited the content of this document. (Show Details)
rezzonico edited the content of this document. (Show Details)Mar 14 2017, 13:05
rezzonico edited the content of this document. (Show Details)Mar 14 2017, 13:47
aubort edited the content of this document. (Show Details)Mar 14 2017, 15:15
rezzonico edited the content of this document. (Show Details)Mar 15 2017, 08:09
aubort edited the content of this document. (Show Details)Mar 16 2017, 17:10
aubort edited the content of this document. (Show Details)Mar 16 2017, 17:20
aubort edited the content of this document. (Show Details)Mar 16 2017, 17:40
aubort edited the content of this document. (Show Details)Mar 16 2017, 17:50
aubort edited the content of this document. (Show Details)Mar 30 2017, 16:50
aubort edited the content of this document. (Show Details)Mar 31 2017, 17:55
aubort edited the content of this document. (Show Details)
aubort edited the content of this document. (Show Details)Apr 27 2017, 10:32
richart edited the content of this document. (Show Details)Apr 27 2017, 10:50
aubort edited the content of this document. (Show Details)May 1 2017, 10:52
rezzonico edited the content of this document. (Show Details)May 2 2017, 10:54
rezzonico edited the content of this document. (Show Details)
aubort edited the content of this document. (Show Details)May 18 2017, 15:14
aubort edited the content of this document. (Show Details)Aug 31 2017, 13:05