Automate mounting of external USB storage for Synology Hyper Backup

I have the habit of having additional copies of back ups (partial and not full) from the Synology NAS to an external USB storage device like the Seagate Expansion Desktop. However, I want the external USB storage to be visible (i.e. mounted) to the Synology NAS only when the Hyper Backup task is running and not visible (i.e. unmounted) at other times with the hope of mitigating ill effects of ransomware attacks. I managed to achieve it using Task Scheduler and careful planning of backup windows for Hyper Backup tasks. I have put together this guide to show you how it is done.

Read more