rsync
Linux · Network · available in the simulator
What it does
Synchronizes files and directories locally or remotely, copying only differences.
Syntax
rsync [opciones] origen destino
Options and parameters
-aArchive mode: recursive, preserving permissions, timestamps, and symlinks.
rsync -av origen/ destino/-vIncrease verbosity (display transferred files).
-zCompress file data during the transfer.
-PShow progress and allow resuming interrupted transfers.
--deleteDelete extraneous files from the destination directory.
-nPerform a dry run without making any changes.
rsync -avn origen/ destino/--excludeExclude files matching the specified pattern.
-eSpecify the remote shell to use, typically ssh.
Usage examples
rsync -av origen/ destino/rsync -avn origen/ destino/
Notes and common mistakes
- A trailing slash on the source copies the contents; omitting it copies the directory itself.