How to transfer data from Max-IV to the DTU hpc from command line using sftp

The guide can be found on the MAX-IV webpage here:

https://www.maxiv.lu.se/beamlines-accelerators/controls-it/it-services/sftp-data-transfer/

The steps are as follows:

  1. Make sure you have a MAX-IV account, and that it’s set up with OTP, see this for guideline: One Time Password
  2. Go to your terminal and connect to the DTU hpc (or simply stay on your local machine if you want to transfer data to that).
  3. Navigate into the folder that you want to transfer data to.
  4. Run the command “sftp 'maxiv_user_name'@sftp.maxiv.lu.se “, and log on using your MAX-IV password and OTP.
  5. Navigate to the folder that your experiment data, that you want to transfer, is saved in. Most likely under /data/visitors/’Beamline’/’Experiment_date’/…
  6. Run get -R <dir>

Voila, your data should be on the DTU at roughly 300-500MB/s