rsync
¶
rsync
is a command-line tool for file transfer,
with the goal of ensuring integrity of the data,
as well as a minimal amount of data transfer.
rsync
can be used for copying, but also synchronizing files,
such as is ideal for making a backup. At this page, we use the word 'copy',
although rsync
by default does a one-way synchronize: if the data is already
there, it will do nothing.
Installing rsync
¶
To installing rsync
, see the official rsync
download page.
Tip for Windows users
When looking to download an executable of rsycn
,
look for the words 'binary' (all executables are binary)
and Cygwin (the environment in which the rsync
executable
was built on Windows).
Copy a folder from local to Rackham¶
Copy a folder from a local computer to a Rackham home folder.
On your local computer, do:
For example:
The --recursive
flag is used to
copy a folder and all of its subfolders.
Want to preserve timestamps?
To preserve the files' timestamps, use the --archive
flag, e.g.
Copy a folder from Rackham to local¶
Copy a folder from Rackham to your local computer.
On your local computer, do:
rsync --recursive [user_name]@rackham.uppmax.uu.se:/home/[user_name]/[folder_name] [local_folder_destination]
For example:
Where .
means 'the folder where I am now'.