To schedule a script to run on your Synology at boot-up or shutdown follow these steps:
Note: You can setup a schedule task and leave it disabled, so it only runs when you select the task in the Task Scheduler and click on the Run button.
- Go to Control Panel > Task Scheduler > click Create > and select Scheduled Task.
- Select User-defined script.
- Enter a task name.
- Leave Enable ticked.
- Click Schedule and set a schedule.
- Click Task Settings.
- Optionally you can tick Send run details by email then enter your email address.
- In the box under User-defined script type the path to the script.
- e.g. If you saved the script to a shared folder on volume1 called "scripts" you'd type: /volume1/scripts/synology_config_backup.sh
- Click OK to save the settings.
Here's some screenshots showing what needs to be set: