Copying your data to and from Viking

There are different ways to copy your data/programs and files to Viking dependent on which operating system you use on your local machine.

 Copying Files To/From a Windows Desktop

Copying Files To/From a Windows Desktop

WinSCP is an open source free SFTP client, SCP client, FTPS client and FTP client for Windows. Its main function is file transfer between a local and a remote computer. WinSCP is available on IT Services supported desktops or can be downloaded from http://winscp.net/eng/index.php.

Run WinSCP  from the Start menu or double clicking on the icon on the desktop;


A login window will appear. Fill in the hostname and your username:

Running WinSCP

You can click the "Save" button to save the session details for future use:

Return to the login window and click the "Login" button. Some hosts may present you with an information window:

You will then be prompted for your password:

The file manager window will be displayed:

The drag-and-drop interface is a similar to Windows file manager and its use should be intuitive.

 Copying Files To/From a Linux/MacOS Desktop

Copying Files To/From a Linux/MacOS desktop

There are a number of ways to copying files and directories using Linux command line.

you can copy your data from any Linux device to Viking using the following commands 

  • scp
  • rsync

Here are a couple of examples.  

scp 

This is recommended for a small number of files.

You wish to copy your data from local machine to your scratch area on Viking.  Run the following commands on your local machine in the terminal. 

[bash-4.1]$ #For an individual file
[bash-4.1]$ scp afile abc123@viking.york.ac.uk:~/scratch 

[bash-4.1]$ #For a folder with lots of files
[bash-4.1]$ scp -r adir abc123@viking.york.ac.uk:~/scratch

What if you want to copy files from your scratch area on Viking to your local machine?  Run the following commands on your local machine.

[bash-4.1]$ #For an individual file
[bash-4.1]$ scp abc123@viking.york.ac.uk:~/scratch/afile . 

[bash-4.1]$ #For a folder with lots of files
[bash-4.1]$ scp -r abc123@viking.york.ac.uk:~/scratch/adir .

There are many options you can use with scp.  To view these options either run

man scp 

on the device you are using scp on or have a look at this scp wiki page.

RSYNC

Rsync is another command that will let you copy files and folders to the Viking.  If you have a large number of files it is always best to use Rsync. 

To copy a folder adir from your local machine to your scratch area on Viking, run the following command on your local machine.

[bash-4.1]$ rsync -avz adir abc123@viking.york.ac.uk:~/scratch

There are many options you can use with rsync.  To view these options either run

man rsync 

on the device you are using rsync on or consult the rsync webpage.

See /wiki/spaces/RCS/pages/39159310 for more information.