Local Copy
rsync -av source/ destination/
rsync -av --delete source/ destination/Remote Copy
rsync -av source/ user@host:/path/
rsync -av user@host:/path/ destination/Common Options
-a - Archive mode
-v - Verbose
-z - Compress
--delete - Delete extraneous files
Common mistakes / Errores comunes
- People often copy a command or pattern without adapting placeholders, which can break production workflows unexpectedly.
- It is easy to forget environment-specific differences, so always verify behavior in your shell, runtime, or API gateway before shipping.
- Many errors come from skipping small validation steps, so test with realistic sample input before relying on the result.
Last updated: February 2026