rsync
Installation
SKILL.md
rsync Reference
Core Syntax
rsync [options] source destination
# Local to local
rsync -av /src/dir/ /dest/dir/
# Local to remote (push)
rsync -avz /local/dir/ user@host:/remote/dir/
# Remote to local (pull)
rsync -avz user@host:/remote/dir/ /local/dir/
Trailing slash matters: /src/dir/ copies the contents of dir. /src/dir copies the directory itself into the destination.