Install the app
How to install the app on iOS

Follow along with the video below to see how to install our site as a web app on your home screen.

Note: This feature may not be available in some browsers.

Create a Task to run HyperBackup when a specific USB drive has been detected

As an Amazon Associate, we may earn commissions from qualifying purchases. Learn more...

1
0
NAS
DS923+
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 ....
 
Sorry, not a solution, but your question piqued my interest.

I was dabbling with something similar a while back. However, finding an automated way was in that case too much effort I was willing to put into it, because it was merely a request from a friend who just started out with mostly hosting his favorite apps. So in my situation security was a much lesser issue and my friend does know his PC. Only he had access to his workstation (Windows) and the NAS was on the same network properly shielded from the outside world. So in that case I just created a shortcut on his PC to run a script to logon via SSH and run a HyperBackup task. I did setup a notification via email when the backup was completed. Was even too lazy to setup a DS Finder notification back then or perhaps I was unaware at that time.

Since then I changed his (and my) backups to an automated (timed) one with offsite storage which works extremely well.

But hoping someone knows more and does have a proper or workable solution to this use case.
 
Upvote 0
Last edited:
Crazy simple would, i my opinion, be a backup that needs no interaction at all.
With much better protection than a usb connected disk that can be forgotten, stolen, lost, damaged, infected, ...
So proper cloud based, run in the night, setup and forget....

Main purpose should probably not be crazy simple. but crazy secure.
 
Upvote 0
Make it simple, buy a second NAS for HyperBackup and place that NAS on a remote site.

Then plan de Backups in the nights.

That's the way I do it for two NASses, backup to remote NAS.
 
Upvote 0

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Popular tags from this forum

Similar threads

  • Solved
Thanks @fredbert. Looking at HyperBackup got me where I wanted to get to.
Replies
4
Views
696
Thanks! My primary usage of B2 is not only to have something off-site, all of my operations are presently...
Replies
4
Views
1,504
Yes....and the log indicates out of space. Yes, USB is connected. I am embarrassed to say that I can't...
Replies
2
Views
796

Thread Tags

Tags Tags
usb

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Trending content in this forum

Back
Top