Data migration from Puhti/Mahti/LUMI to Roihu from Windows
This tutorial is meant for users who use only Roihu web interface and need to move data from Puhti or Mahti to Roihu. Below Puhti is used as example, the same applies for Mahti and LUMI.
Depending on the amount of data and the speed of your internet connection, there are 3 main options depending on the amount of data:
- If you have <10 GB data and good internet connection, you can use Puhti web interface to download the data to your laptop and then Roihu web interface to upload it again. The web interface zips the data for you. Unzip the file after upload to Roihu.
- If you have ~10-100 GB data and have enough empty space on laptop and good internet connection (and want to avoid command-line tools as long as possible), you can use WinSCP to move the data from Puhti to local and back to Roihu. If you have a lot of small files, consider zipping before moving. FileZilla is usual alternative to WinSCP, but using SSH certificates with FileZilla is a lot more complicated.
- With more data or slow internet connection use direct rsync from Roihu to Puhti. With rsync you can move also bigger datasets and your connection speed to CSC does not matter. See the instructions below.
Direct rsync for Roihu data migration from Windows
Before you start, make sure you have:
- CSC project with enough storage quota for Roihu.
- An SSH key, the public key is uploaded to my.csc.fi and you know the path to the private SSH key on your laptop and the passphrase of your private key.
- Cleaned your Puhti data directory, so that only still relevant files are kept.
- Installed a tool for SSH connections and SSH agent.
Options described in CSC Docs:
- Windows PowerShell with Windows SSH-agent, these are included by default to all Windows installations, but using SSH agent requires admin-rights to your laptop.
- Putty with Pageant
- MobaXterm with Pageant or MobAgent
Connecting with SSH and SSH Agent to Puhti
- Start SSH agent and add your private key for Puhti
- Download SSH certificate for Roihu from my.csc.fi.
- Connect to Roihu:
- PowerShell:
ssh -A <username>@roihu-cpu.csc.fi - Putty:
- Host:
roihu-cpu.csc.fi - Private key and SSH certificate: Connection -> SSH -> Auth -> Credentials
- Connection -> SSH -> Auth: Allow agent forwarding
- Host:
- MobaXterm:
- Host:
roihu-cpu.csc.fi - Private key and SSH certificate: Advanced SSH settings + Expert SSH settings
- Advanced SSH settings > Expert SSH settings: Allow agent forwarding
- Host:
- PowerShell:
- From Roihu-CPU login-node, use
rsyncto pull data from Puhti.- See Roihu data migration guide for more detailed instructions about
rsync. - Note that Roihu data migration guide mainly recommends migrating data from Puhti to Roihu, that would require adding SSH key with SSH certificate to SSH agent, which requires a few more extra steps and was skipped above.
- If you have more data, use tmux for keeping the transfer ongoing, even if you close your laptop.
- See Roihu data migration guide for more detailed instructions about