I am running 12.04 LTS. There are a number of shared resources that I use that are housed remotely on a local server. When disconnected from the network (on say a network, or router failure), I would like to dynamically archive, rename, and un-archive directory backups to continue the use of these shared assess until the network is restored.
Is there a preferred method of gaining this data and triggering scripts or other system actions when the connected state changes?
EDIT: After some additional research I see that there is the possibility of doing this with
udev from Triggering an action when a specific volume is connected. However is this the best way? Also is there an alternative tool for udevinfo? It does not appear to be part of the package.