Rsync

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

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

Links
Robocopy windows file copy