Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

You may have data stored elsewhere that you wish to copy to Viking.  There are different ways to do this

...

titleHere will will outline steps on how to move you data to and from Viking

...

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

Expand
titleCopying 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.

Section
bordertrue


Column
width50%

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

Image Modified


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


Column
width50%

Image Modified


Running WinSCP

Section
bordertrue


Column
width50%

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


Column
width50%

Image Modified



Section
bordertrue


Column
width50%

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


Column
width50%

Image Modified



Section
bordertrue


Column
width50%

You will then be prompted for your password:


Column
width50%

Image Modified



Section
bordertrue


Column
width50%

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.


Column
width50%

Image Modified




Expand
titleCopying 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.  

Section
bordertrue

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. 

Code Block
languagebash
[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.

Code Block
languagebash
[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

Code Block
languagebash
man scp 

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

RSYNC

Section
bordertrue

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.

Code Block
languagebash
[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

Code Block
languagebash
man rsync 

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

See

VK7) Copying and moving your data to Viking.

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