Stuart Sears wrote:
> On 11:58 Mon 01 Feb , Chris Dennis wrote:
>> Hello folks
>>
>> What's the up-to-date way to run a script when a USB hard-drive is
>> plugged in to a server running Debian 5.0 and a 2.6.26 kernel?
>>
>> Autofs/automount? udev? The technology seems to keep changing, and I
>> don't know what's fashionable this year.
>>
>> At the moment I've got autofs mounting the drive when it's plugged in,
>> but I'd also like to trigger the backup script.
>>
>> And this is for a server, so there's no desktop magic happening.
>
> I'd be tempted to use udev for that, with the RUN+= key kicking off a backup script.
>
OK, I'll try that. Thank you.
cheers
Chris
--
Chris Dennis cgdennis@???
Fordingbridge, Hampshire, UK