rsync

How to Use rsync with Examples

How to Use rsync with Examples
Rsync is a popular tool for file syncing, both locally and remotely. Unlike other syncing tools, rsync uses an interesting algorithm that minimizes bandwidth consumption. It simply moves the portion of the file(s) that have changed.

It's a powerful utility that can serve in lots of situations. In this article, I'll showcase how to get started with rsync with a demonstration. The demonstration will be performed on Ubuntu 18.04.

Rsync

Rsync stands for the term remote sync. Despite the name, it can handle file synchronization remotely and locally. The term rsync is also used to refer to the rsync protocol that rsync uses for syncing. In this article, rsync will always denote the tool, not the protocol.

Because of its sheer popularity, rsync is available on almost every single Linux and UNIX-like system. There's a good chance that it comes pre-installed. If not, do a little research on how to install rsync in your system.

Here's a shortlist of features rsync offers.

Rsync usage

Before jumping into rsync, we need some dummy files to work with. Let's create a dummy directory first.

$ mkdir -v primary

Once created, it's time to create a handful of dummy files. To create a file, I'll be using the touch command. Learn more about the touch command.

$ touch dummy1… 20

Voila! We're now ready to use rsync to perform actions using these dummy files.

Rsync Command structure

Rsync uses the following command structure.

$ rsync
How to reverse Mouse and Touchpads scrolling direction in Windows 10
Mouse and Touchpads not only make computing easy but more efficient and less time-consuming. We cannot imagine a life without these devices, but still...
How to change Mouse pointer and cursor size, color & scheme on Windows 10
The mouse pointer and cursor in Windows 10 are very important aspects of the operating system. This can be said for other operating systems as well, s...
Motoare de jocuri gratuite și open source pentru dezvoltarea jocurilor Linux
Acest articol va acoperi o listă de motoare de jocuri gratuite și open source care pot fi utilizate pentru dezvoltarea jocurilor 2D și 3D pe Linux. Ex...