![]() ![]() The former two are the most popular ones and the choice between Synology vs QNAP NAS is a matter of opinion.īut some prefer Synology because of its ample storage capacity, ease of use, data backup capabilities, and wide range of apps to meet various needs. Lots of NAS brands like Synology, QNAP, Asustor, TerraMaster, etc. How to Backup, Sync, and Restore Synology NAS with Drive Client?Ĭompared to an external hard drive, NAS is a better backup device that offers centralized storage, data backup options, and a range of features for multiple users to access and share data over a network.How to Download and Install Synology Drive Client on Windows, Ubuntu, and Mac?.With a script, I can backup a user’s Home directory from a Virtual Terminal or, a SSH session. Is a GUI application better than a script?.usr/bin/rsync -lpt -backup -update -8-bit-output -omit-link-times -one-file-system -whole-file -progress -stats -human-readable /home/$effectiveUserID/.vimrc /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/.emacs /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/.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. 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 – 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”? I have a Synology NAS with which I have been able to synchronise my desktop computer files using a client rpm package from Synology. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |