rsync

https://rsync.samba.org
https://en.wikipedia.org/wiki/Rsync

Notes

Spaces in filenames? No problem!

https://rsync.samba.org/FAQ.html#9

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:

References:


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?)