View Single Post
Old 03-15-2017, 09:27 PM   #1493
MontyJ
Addict
MontyJ began at the beginning.
 
Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
Quote:
Originally Posted by iostrym View Post
@Monty, do you run a periodical script on your NAS to apply chmod to the backup database so that http group can have access to your freshly copied database ?

because with my Synology and Syncback tool from windows, after backup I don't have anymore the http group rights on the file inside the shared folder "ebook" (cops no more works after that until I re-set rights on the files)
I use a rsync script in Linux and throw in the --super argument. This works just fine with no attribute changes need for COPS on the NAS or users accessing the files. My backup script looks like this:
Code:
sshpass -p "naspasswd" rsync -h --progress --stats -r -tgo -p -l -D -H --super --update --delete-after --delete-excluded --exclude=**/*tmp*/ --exclude=**/*cache*/ --exclude=**/*Cache*/ --exclude=**~ --exclude=/mnt/*/** --exclude=/media/*/** --exclude=**/lost+found*/ --exclude=/var/run/** --exclude=/run/** --exclude=/proc/** --exclude=/dev/** --exclude=/sys/** --exclude=**/*Trash*/ --exclude=**/*trash*/ --exclude=**/.gvfs/ --protect-args --log-file=/home/myusername/calibre_ssh.log /mnt/Data/Calibre_Libraries/ admin@192.168.x.xxx:/share/Backups/Calibre_eBooks/
Many of those excludes are really not needed as they do not exist in the Calibre libraries, but I use this same format for other backup jobs of my local Linux system, so leave them there for continuity.
MontyJ is offline   Reply With Quote