I'm doing some work for a customer that has a Synology
Would like to keep things crazy simple for the users when doing backups
Customer User should not have to logon to DSM
There are 2 external drives. Will be using HyperBackup
Rather than run using the HyperBackup schedule for a specific time, I'd like to see where when a specific drive is connected that a specific backup task is run.
I'm by no means that fluent on the cli side of the Synology.
This is what I have found out so far
By running this command I can detect when serial number of a specific device has been connected
sudo cat /sys/kernel/debug/usb/devices | grep -C 3 'SerialNumber=355659343551514B20202020'
And I've found that I can run HyperBackup Task buy doing:
'/var/packages/HyperBackup/target/bin/dsmbackup' '--backup' '2'
Does anyone know how to create a user defined script for task scheduler with the following logic or something similar?
if detect USB Drive 'SerialNumber=355659343551514B20202020'
then run '/var/packages/HyperBackup/target/bin/dsmbackup' '--backup' '2'
LIke I say I'm a newbie doing cli on Synology and your help would be really appreciated.
Thanks ....
Would like to keep things crazy simple for the users when doing backups
Customer User should not have to logon to DSM
There are 2 external drives. Will be using HyperBackup
Rather than run using the HyperBackup schedule for a specific time, I'd like to see where when a specific drive is connected that a specific backup task is run.
I'm by no means that fluent on the cli side of the Synology.
This is what I have found out so far
By running this command I can detect when serial number of a specific device has been connected
sudo cat /sys/kernel/debug/usb/devices | grep -C 3 'SerialNumber=355659343551514B20202020'
And I've found that I can run HyperBackup Task buy doing:
'/var/packages/HyperBackup/target/bin/dsmbackup' '--backup' '2'
Does anyone know how to create a user defined script for task scheduler with the following logic or something similar?
if detect USB Drive 'SerialNumber=355659343551514B20202020'
then run '/var/packages/HyperBackup/target/bin/dsmbackup' '--backup' '2'
LIke I say I'm a newbie doing cli on Synology and your help would be really appreciated.
Thanks ....