
scripts for Synology DSM
Task Scheduler
- Control Panel
- Task Scheduler
- create scheduled task, user defined script
- General, Task: name task
- General, User: select user with the correct permissions.
- General, enabled: deselect
- Schedule, run on the following date, fill in a date and do not repeat
- Task settings, run command: bash <path to script>
for example:
bash /volume1/scripts/job.sh
to write the outcome to a textfile:
bash /volume1/scripts/job.sh > /volume1/scripts/results.txt
Create scripts
- Package Center
- Install Text Editor
- Open Text Editor
- File New
- Edit file
- Save As
- File Name: <name file>.sh
- File Type: All Files
- Encoding: Unicode (UTF-8)
For example: job.sh
Script to delete empty directories & empty directories with only @eaDir
Click here for this script.
Script to read S.M.A.R.T. attributes and send email notification when error
Click here for this script.
Script to search in Hyper Backup archive
Click here for this script.


