# Rsync

RSync (opens new window) is a fast and extraordinarily versatile file copying tool. It can copy locally, to/from another host over any remote shell, or to/from a remote rsync daemon.

# Installation

# Install on Linux (Ubuntu)

sudo apt install rsync

# Install on Mac OS X

brew install rsync

# Use

Here are a few simple examples to get you started.

# Transfer from your local machine

This is an example of data transfers from your local machine to your lab.

# -- Principal example
rsync -avuz path/to/your/local/directory <username>@<labname>:/mount/cargo/

# -- Practical example
rsync -avuz path/to/your/local/directory demouser@demolab:/mount/cargo/

# Transfer from your home machine to blue machine

This is an example of data transfer from your home machine to a iaas or blue machine inside the same lab.

# -- Principal example
rsync -avuz /mnt/work/my/folder ubuntu@<machinename>:/home/ubuntu/

# -- Practical example
rsync -avuz path/to/your/local/directory ubuntu@demolab-blue-thea:/home/ubuntu/

# More information

See the official RSync (opens new window) documentation for further details.