Run task when Hot Swap HDD is connected

Status
Not open for further replies.

Baalified

Cadet
Joined
Nov 17, 2015
Messages
1
Hi,

I am a total newbie when it comes to FreeNAS but we are currently looking for an alternative to our old Backup Solution and my idea was to have a storage server which will host the backups. As we need to have weekly backups off-location my idea was to have several hot swap HDDs for this.
Now I was wondering if there is any possible way to start a task when one of those HDDs gets connected so that we can copy or sync certain files to the connected HDD. I know this could probably be done with normal cronjobs and a timed schedule but I would prefer to have it triggered with the HDD connecting :)

Thanks for your response.
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
There isn't any out-of-the-box way to do it, no. It could probably be hacked into devd.conf, but that's going to be a mess. It might be simpler to have a cron job run once a minute to inspect the output of "camcontrol devlist" for a status change.
 
Status
Not open for further replies.
Top