AI Generated Cheatsheets

Rsync Cheatsheet

The rsync command is used to synchronize files and directories between two locations, either on the same system or on different systems over a network.

Basic Syntax

rsync [options] source destination

Examples

Options

Option Description
-r Copy directories recursively.
-a Archive mode; preserves permissions, timestamps, and ownerships.
-v Verbose mode; displays progress of the transfer.
-z Compresses the data being transferred.
-e Specifies the remote shell to use for SSH transfers.
--delete Deletes files in the destination that do not exist in the source.

Resources