Rsync is a great file copying and file synchronization tool for Linux systems. Not too sure if there are Windows versions or similar software that works for Windows systems. With Rsync, users can copy files and folders from one location to another on the same host, or via SSH protocol on different hosts. When you use Rsync to copy or synchronize directories, it will copy and synchronize file links, ownership, groups, and permissions. It’s a great tool to use to copy files and directories between two networked systems. This brief tutorial shows you some of the options one can use with Rsync tools to copy files. After reading this tutorial, you’ll be able to install and use Rsync to copy files and folders to another location.

Installing Rsync on Ubuntu

Before you can use Rsync on Ubuntu, you must first install it. To install the software tool on Ubuntu, run the commands below.

Copying files and folders using Rsync

After installing Rsync, use the help command to find all options that are available to Rsync. To see the help file, run the commands below. The format for Rsync is as followed. If you don’t follow the command format shown below, Rsync may not be able to copy and synchronize content as intended. For example, to copy a file from /var/www/html/file  to /var/log/test,  you will run the commands below The command options for Rsync are listed below: That’s the basics of Rsync. Copying the directory /tmp/local/public to /var/www/html, you’ll run the commands below: This copies all the content in /var/local/public to /var/www/html To copy local content to a remote host, you’ll use the format as followed below: Replace admin with the actual account name on the remote system. So, you can see how powerful and easy to use is Rsync. When you want to copy or synchronize stuff between two separate directories on the local or remote host, use Rsync. Please contribute to this post if you have other tools to share with our audience. Enjoy!