# 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 a blue machine
This is an example of data transfer from your home machine to a iaas or blue machine inside the same lab.
From your home machine:
# -- 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/
# Transfer from your blue machine back to your home machine
This is an example of data transfer from a iaas or blue machine back to your home machine inside the same lab.
From your home machine:
# -- Principal example
rsync -avuz ubuntu@<machinename>:/home/ubuntu/ /mnt/work/my/folder
# -- Practical example
rsync -avuz ubuntu@demolab-blue-thea:/home/ubuntu/ path/to/your/local/directory
# More information
See the official RSync (opens new window) documentation for further details.