🧀 Learn Linux

Advanced · Organize files

rsync: Synchronize directories and files

Syntax

rsync -av source/destination/

Options

-a
Archive mode
-v
Show details
--dry-run
Preview changes

Examples

rsync -av --dry-run projects/ backup/

Usage and sandbox support

For review only. A / at the end of the source directory affects the synchronization level.

This command is for reference and review, and the simulation terminal does not provide corresponding exercises yet.

Full documentation ↗

Related commands