Colonel Panic wrote:Automating network tasks / Cron Jobs for beginners
If I want to automate the duplication of the contents of a folder on a Synology NAS to a folder on an old WD NAS once a day or week, what would be the best way to do this?
Would this be done via the Synology UI, within macOS, using the Automator.app, by running some "script" on a RPi, or perhaps even a Cron Job? I have read up a little bit about Cron Jobs, but am not clear just where I would put it ...
The WD NAS might be limiting factor.
Adding rsync from Synology end is easy if the other device supports it.
No need to mess around with Cron - go to the Synology web UI, control panel, Task scheduler, Create Scheduled Task, User Defined Script....
Then simply add the rsync command line that you want to run:
Code: Select allrsync -r -v -t --modify-window 1 --chmod u+rwx --delete -e "ssh -i /volume1/<path to private key>/id_rsa -p 22 " /volume1/homes/ipcamera/ WebBackup@10.222.242.17::NASBackup/ipcamera/
You'll need to do a bit of learning of the rsync syntax, and create SSH ppk and put the public key on the target device. I suspect the WD NAS might not be up for this.
Easier option, buy another synology, and sync it via the 'shared folder sync' option in the UI