Spaces in filenames? No problem!

Overwrite remote folder with current local folder

rsync -e 'ssh -p PORT' --recursive --delete --compress --progress --exclude-from './path/rsync_exclude' . user@server:/path/to/folder

Additional options:

Exclude files

Create a text file containing glob patterns as follows:


CC0 / Public domain dedication To the extent possible under law, d3vid seaward has waived all copyright and related or neighboring rights to "rsync in Grasmere notebook, including code snippets" (why? how?)