Rsync, or Remote Sync, is a free command-line tool that lets you transfer files and directories to local and remote destinations. Rsync is used for mirroring, performing backups, or migrating data to other servers. … Follow this tutorial to learn how to use rsync with 20 command examples to cover most use-cases in Linux.
What is rsync used for?
rsync is a utility for efficiently transferring and synchronizing files between a computer and an external hard drive and across networked computers by comparing the modification times and sizes of files. It is commonly found on Unix-like operating systems. Rsync is written in C as a single threaded application.
How do I run rsync on Linux?
- Copy/Sync Files and Directory Locally. …
- Copy/Sync Files and Directory to or From a Server. …
- Rsync Over SSH. …
- Show Progress While Transferring Data with rsync. …
- Use of –include and –exclude Options. …
- Use of –delete Option. …
- Set the Max Size of Files to be Transferred. …
- Automatically Delete source Files after successful Transfer.