

usr/bin/rsync -lpt -backup -update -8-bit-output -omit-link-times -one-file-system -whole-file -progress -stats -human-readable /home/$effectiveUserID/.signature /mnt/NAS-001/NFS/$effectiveUserID/$systemHostName/home usr/bin/rsync -lpt -backup -update -8-bit-output -omit-link-times -one-file-system -whole-file -progress -stats -human-readable /home/$effectiveUserID/.profile /mnt/NAS-001/NFS/$effectiveUserID/$systemHostName/home usr/bin/rsync -lpt -backup -update -8-bit-output -omit-link-times -one-file-system -whole-file -progress -stats -human-readable /home/$effectiveUserID/.bashrc /mnt/NAS-001/NFS/$effectiveUserID/$systemHostName/home

usr/bin/rsync -rlpt -cvs-exclude -backup -update -exclude=.* -exclude=.*/*** -exclude=public_html -8-bit-output -cvs-exclude -omit-dir-times -omit-link-times -one-file-system -whole-file -progress -stats -human-readable /home/$effectiveUserID/ /mnt/NAS-001/NFS/$effectiveUserID/$systemHostName/home usr/bin/rsync -rlpt -backup -update -8-bit-output -omit-dir-times -omit-link-times -one-file-system -whole-file -progress -stats -human-readable /home/$effectiveUserID/.mozilla/ /mnt/NAS-001/NFS/$effectiveUserID/$systemHostName/dot.mozilla

usr/bin/rsync -rlpt -backup -update -exclude=gegl-0.?/*** -exclude=gvfs-metadata/*** -exclude=flatpak/*** -8-bit-output -omit-dir-times -omit-link-times -one-file-system -whole-file -progress -stats -human-readable /home/$effectiveUserID/.local/share/ /mnt/NAS-001/NFS/$effectiveUserID/$systemHostName/dot.localShare usr/bin/rsync -rlpt -backup -update -8-bit-output -omit-dir-times -omit-link-times -one-file-system -whole-file -progress -stats -human-readable /home/$effectiveUserID/.config/ /mnt/NAS-001/NFS/$effectiveUserID/$systemHostName/dot.config If -d /mnt/NAS-001/NFS/$effectiveUserID/$systemHostName ]]Įcho "Mounted NAS NFS $effectiveUserID $systemHostName" # -g -group "preserve group" is possibly not supported by a QNAP TS-131P. # Cannot use -a -archive: both imply -rlptgoD Yes, it’s not simple – except as a Bash script – the options which need to be set are many …Be that as it may, an example – I automount the NFS Server on the NAS box – The rsync route seems rather daunting to me.
SYNOLOGY DRIVE CLIENT SETUP PASSWORD
But, please be aware that, you’ll have to store the username and password of the NAS user being served by the rsync daemon in your backup scripts.If -d /mnt/NAS-Box/NFS/$effectiveUserID/$systemHostName ]]Īlternatively, you can enable the “rsync” daemon on the Synology NAS –
SYNOLOGY DRIVE CLIENT SETUP CODE
The scripts I use to which invoke “rsync” to drop all the changed and new files onto my NAS box have a code section like this – > systemctl list-unit-files | grep -i 'autofs' Then, simply mount the NAS box via NFS from the Linux machine – I use the Linux auto-mounter function. Usually, you’ll have to login to the admin user of the NAS box via SSH, to setup the UID and GID values – “chown … ” – the NAS boxes usually run Linux …
