The Essential rsync Command Guide for Linux

rsync is one of the most useful tools in a sysadmin’s kit. It copies and synchronizes files and directories locally or over SSH, and only transfers the parts of files that have changed – making it far more efficient than a plain cp or scp for repeated transfers. These are the commands you’ll reach for most often. Common Flags The -avP combination is a solid default for most operations: -a (archive) – preserves permissions, ownership, symlinks, and timestamps -v (verbose) – shows what’s being transferred in real time -P (progress + partial) – displays a progress bar and resumes interrupted transfers 1. Copy a Single File rsync -avP /path/to/local/file.zip user@remote_server:/path/to/remote/directory/ 2. Copy a Directory The trailing slash matters here: ...

September 20, 2025 · 2 min · 279 words · root