Sasecurity Wiki
Advertisement

github[]

https://github.com/pedroetb/rsync-incremental-backup rsync backups.
https://man7.org/linux/man-pages/man1/rsync.1.html#FILTER_RULES

gist[]

https://gist.github.com/KartikTalwar/4393116 fastest rsync 40meg
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.
https://gist.github.com/niun/be8e572039d9a8c6644e rsync
https://gist.github.com/dongola7/6806 rsync


pastebin[]

https://pastebin.com/8QBnsdE1 and https://pastebin.com/HfuCpLDw typical includes in home dir.
https://pastebin.com/L59d1hij

hardlinking[]

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

tar backup[]

https://www.jveweb.net/en/archives/2011/02/using-rsync-and-cron-to-automate-incremental-backups.html

https://github.com/rsnapshot/rsnapshot

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"


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


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

Advertisement