Migration procedures for EPFL
Migration procedures for EPFL
This is the manual migration procedure, there's also a script to automate the migration, see Migration script for EPFL
Migration from GIT
- Add a public ssh key to your account (or a VCS password)
- Create repo in c4science
- Clone repo from other GIT (if you don't already have a local copy) and enter repo
git clone https://rezzonic@git.epfl.ch/repo/scitas-benchmarks.git cd scitas-benchmarks
- Switch the remote origin
git remote rename origin old-origin git remote add origin ssh://git@c4science.ch:2222/diffusion/77/scitas-benchmarks.git
- Push everything to c4science and set upstream to origin
git push --all --set-upstream origin git push --tag
- Wait until all the commits are parsed by phabricator to be available on the web interface
Migration from SVN
- You can either migrate from SVN to GIT (preferred), or SVN to SVN
SVN to GIT
You can use the svn2git utility.
SVN to SVN
The following only works if the SVN repository is world-readable:
- Create a subversion repository
- On the management page before activating the repository go in URIs (on the left panel). In the image below, we migrate the hpc-grid svn repository.
- Add an URI that is the repository to import and select Observe as an I/O Type
- Create the repository URI
- If your repository needs authentication, you can Set a Credential from the URI page
- Activate the repository, this will start the import of data.
- Once it is done, edit the URI you added previously to change the I/O Type to No I/O. You can also change the Display Type to Hidden
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.
Tags
Subscribers
None
- Last Author
- aubort
- Last Edited
- Mar 14 2017, 15:15