Skip to main content

Transferring Data to/from Hamilton

Data can be transferred between Hamilton and external storage in a number of different ways.  MobaXterm or WinSCP, for example, allow you to drag and drop items to/from a Windows PC.  Some other methods for copying data are described below:

Linux and Apple Mac OS X

CIS Research storage

Microsoft OneDrive

Linux and Apple Mac OS X

In addition to the scp command described on the login page, files can be transferred between Hamilton and other Linux/Mac machines using the rsync command:

rsync -av <directory> <username>@hamilton8.dur.ac.uk:

Enter the command (replacing <username> with your University user name, and <directory> with the directory you wish to transfer to hamilton). Unlike scp, which transfers the file(s) specified, this command only transfers files that are different - so can speed up the process of synchronising a directory if there have been a small number of changes.

    Detailed information on how to use this command can be found by entering the command man rsync

Other graphical interfaces include:

  • Apple Mac - Cyberduck

The Cyberduck application can be used to provide a drag and drop interface between a Mac desktop and Hamilton.

  • Linux - the GNOME Files application

The GNOME desktop environment provides a file browser which is able to access remote storage and provide a drag and drop interface between a Linux desktop and Hamilton.

To use, start the Files application and click on + Other Locations on the bottom left. A small Connect to Server section should appear on the bottom right. In the Enter server address... section, type sftp://<username>@hamilton8.dur.ac.uk (replacing <username> with your University user name). Enter your password when prompted.

    Once connected, you are able to bookmark the connection so you can more easily use it later. Right click on the newly created <username> on @hamilton8.dur.ac.uk section on the left and select Add Bookmark.

Figure 1.  Other locations

Gnome files application showing locations

Figure 2.  Bookmark

Gnome files application showing bookmark

CIS Research Storage

The University provides storage for researchers - please see the CIS pages for more details:

  • Personal Research Storage (PRS)
    Storage for research-active staff
  • Shared Research Storage (SRS)
    Storage for research projects

Access has not been integrated into Hamilton yet, but this storage is accessible via mira.dur.ac.uk:

  1. Login to the Storage Manager website, taking note of the "Linux Desktop Service" path to the storage you wish to access (referred to below as <prs_path>)
  2. Login to Hamilton and take a note of the path (referred to below as <hamilton_path>) to the Hamilton data you wish to transfer to PRS
  3. Login to Mira
  4. On Mira, transfer files from Hamilton to PRS with: scp hamilton8:<hamilton_path> <prs_path>

Microsoft OneDrive

Each member of staff has access to some Microsoft OneDrive storage, normally available through a web interface, or the OneDrive folder on a CIS management PC. Files can be transfered to/from this using the rclone utility on Hamilton. To use:

Execute module load rclone to make the rclone command available. man rclone  for detailed documentation.
Execute rclone config and:

as you are about to store credentials in rclone, secure its configuration by selecting

    1. s) Set configuration password
    2. a) Add Password
    3. Enter a password to secure your credentials with
    4. q) Quit to main menu

authorise rclone to use your Microsoft account with:

    1. n) New remote
    2. name> (something memorable, like "durham")
    3. Storage> onedrive
    4. client_id> (leave blank)
    5. client_secret> (leave blank)
    6. Edit advanced config? y/n> n
    7. Use auto config? y/n> y
    8. A web browser will start, showing the Microsoft login page: login using your University credentials
    9. Your choice> onedrive
    10. Chose drive to use:> 0
    11. Is that okay? y/n> y
    12. y) Yes this is OK
    13. q) Quit config

You can now use rclone to access your University Onedrive:

  • List files: rclone ls durham:
  • Copy files to onedrive: rclone <file> durham:
  • Copy files from onedrive to a local directory: rclone durham:<file> <local_dir>

rclone is a versatile tool that can be used to transfer files between many different services.