Battle tested file synchronisation.

rsync stands for remote sync and is a remote and local file synchronisation program.

I used it for syncing nchrs with the webserver and in a lot of my bash scripts.

Usage

rsync $source $destination

Options

a - archive/preserve permissions/recurse
v - verbose output (doesn't work with --info=progress2)
t - preserve modification time
u - update (skip files newer on the receiver)
P - show file progress
n - dry run
h - human readable file sizes
z - compression during transfer
r - recurse into directories

Examples

rsync -a --exclude={'file.txt','dir1','dir2/*'}

Excludes file.txt, dir1 and the content of dir2.

incoming(4) | memoir | meta | software | photography