Home Linux Utils
Sync Folder

time rsync -av --numeric-ids /my/source/folder/ /my/destination/folder


or with excludes

time rsync -av --numeric-ids  --exclude-from=FILE /my/source/folder/ /my/destination/folder


exclude file is similar to tsm exclude:

  * path/relative/to/source


exclude without a file

rsync -av --exclude '*.sh' --exclude '*.raw' /my/source/folder/  /my/destination/folder


Resume scp using rsync, rsync needs to be installed at both ends.

rsync --partial --progress --rsh=ssh -r myFile  user@host:.


with rsync in remote ~/bin

rsync --rsync-path=~/bin/rsync  --partial --progress --rsh=ssh   -r myFile  user@host:.