Online Linux Terminal Logo
OnlineLinuxTerminal
Réseau et transfertCLI Manual

$rsync

Fast and versatile remote and local file-copying and synchronization tool.

Syntaxe de la commandePOSIX Standard
rsync [OPTIONS] SOURCE... DEST
Communauté Linux2.4k En ligne

Échangez avec des utilisateurs Linux, apprenez des commandes et téléchargez des PDF.

Essayer en direct dans le bac à sable interactif

Simulation côté client sans installation avec retour instantané.

Ouvrir dans le terminal plein écran ↗
bash — terminal

Aperçu et fonctionnement

`rsync` (Remote Sync) synchronizes files and directories between two locations with delta-transfer algorithm, minimizing data transfer by sending only the differences between files.

Options et drapeaux courants

Flag / OptionDescription
-a, --archiveArchive mode (preserves permissions, timestamps, symlinks, owners, groups).
-v, --verboseIncrease verbosity showing transferred files.
-z, --compressCompress file data during transfer.
--deleteDelete extraneous files from destination directories that no longer exist in source.

Exemples pratiques du monde réel

#1Synchronize local directory with remote backup
rsync -avz /home/user/projects/ user@backup-server:/backups/projects/

Transfers and synchronizes project folder with compression and archive preservation.