Battle tested file synchronisation

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

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

Examples

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

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

incoming(3) | software | meta | photography