I am running NS7.5. I have some huge share that change rarely or, at least, in very low percentage (let’s say 99% of files are exactly the same from ages).
I have excluded it from the duplicity backup and I would like to append a rsync that syncs the ibay folder in the same samba share as the duplicity backup (let’s say if myserver is the normal backup, myserver_ibay should be synced) and possibly add a line to the backup log if something goes wrong in rsync.
Actually this simple bash script does the job, but it would be great to append the sync to normal backup:
mkdir -p /mnt/ibay_backup
mount -t cifs -o username=bkuser,password=mypassword //192.168.0.157/backup /mnt/ibay_backup
rsync -avzr --delete /var/lib/nethserver/ibay /mnt/ibay_backup
Thanks for any hint, I am super noob in scripting