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. 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 – < Rsync | DSM - Synology Knowledge Center 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 … The not so simple part of this solution is that, the UID and GID of that directory and, all the sub-directories and, all the files in those directories, have to be changed to have the same UID and GID as that of the user on the Linux machine.The simple answer is, setup the NFS Server on the NAS to export the directory where the Linux files are located. The Synology NAS boxes usually have an NFS Server function. Were you using the “ Active Backup for Business” Synology App or, something else? – Possibly the Synology “Drive Client”? Pkgdesc="Drive for PC, the desktop utility of the DSM add-on package, Drive, allows you to sync and share files owned by you or shared by others between a centralized Synology NAS and multiple client computers.I have a Synology NAS with which I have been able to synchronise my desktop computer files using a client rpm package from Synology. Here is a patch if it can help: diff -git a/PKGBUILD b/PKGBUILD
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |