Copy a directory preserving permissions and times
Recursively copies files while keeping permissions, ownership, timestamps and symlinks as they are.
rsync -a source destinationEdit the highlighted values, then copy. They are inserted as typed, without shell escaping.
Report an issue (opens in a new tab) wrong command, wrong danger level, typo… (on GitHub)
Adapted from tldr-pages (common/rsync.md), licensed under CC BY 4.0.