Rsync

hardlinking
https://www.admin-magazine.com/Articles/Using-rsync-for-Backups/%28offset%29/2

copy from remote host
remotefolder=/home/ftp/2018-02-25

destinationfolder=/home/j/j/2018-02-25

rsync -avzz --remove-source-files -e ssh root@192.168.1.201:"$remotefolder" "$mydir"

rsync -avzz --remove-source-files -e ssh root@192.168.1.201:"$remotefolder" "$mydir"    > /dev/null 2>&1

rsync -avzz --remove-source-files t@192.168.1.104:"$remotefolder"  "$mydir"   # -e ssh  is implicit

Sync remote folder
rsync -qzrlptgoDXi --size-only t@192.168.1.104:"$remotefolder"  "$mydir"

github
https://github.com/pedroetb/rsync-incremental-backup rsync backups.

starred
https://gist.github.com/jhollinger/3805605 It can save backups to your local filesystem (probably an attached USB device) or to a remote host. Backups are saved in time-stamped directories. Backups are cheap on storage, because hard-links are used for files that haven't changed between backups.

simple
https://gist.github.com/niun/be8e572039d9a8c6644e rsync

rsync -qzrlptgoDXi --size-only /home/j/Downloads/z270drivers/ /media/j/68C7-DEB1

https://gist.github.com/dongola7/6806 rsync

Move files from remote server
rsync -avzz --remove-source-files -e ssh root@192.168.1.201:/home/ftp/sdcard/Camera1/2018-02-12 /home/j/j  > /dev/null 2>&1; then

https://unix.stackexchange.com/questions/109524/reasons-for-rsync-not-transferring-all-files

chmod
https://askubuntu.com/questions/11840/how-do-i-use-chmod-on-an-ntfs-or-fat32-partition

duplicate files
https://github.com/adrianlopezroche/fdupes

Links
https://www.howtogeek.com/175008/the-non-beginners-guide-to-syncing-data-with-rsync/

https://linux.die.net/man/1/rsync

https://www.howtogeek.com/135533/how-to-use-rsync-to-backup-your-data-on-linux/

diff between folders to see if transfer worked.


 * 1) https://serverfault.com/questions/346356/how-to-add-timestamp-and-file-list-to-rsync-log/466107

rsync -rlptgoDXuh --size-only --progress --stats --log-file=$HOME/rsync11.log -q /media/j/usbbackup/ /home/j/sortmeout/

Robocopy windows file copy
 * Ftp