Rsync is a powerful and versatile file synchronization tool for efficiently copying and transferring files between local and remote hosts. This cheat sheet provides essential Rsync commands for various use cases.
Introduction:
Rsync is known for its ability to efficiently synchronize files and directories across different systems while minimizing data transfer. It uses the SSH protocol for secure remote transfers and supports a wide range of options for fine-tuned control.
Basic File Synchronization:
Command
Description
rsync [source] [destination]
Synchronize files and directories locally.
rsync -av [source] [destination]
Archive mode: Preserves permissions and other attributes.
Rsync is a versatile and efficient tool for file synchronization, whether you are working locally or remotely. This cheat sheet provides a quick reference for commonly used Rsync commands, covering basic file synchronization, remote transfers, include/exclude options, and advanced features like backup and bandwidth-efficient transfers. Whether you are a system administrator or a developer, mastering these commands will enhance your ability to manage and synchronize files across different systems.