-
-
Save rrevanth/005c8d67d4786bd88f6d671f7e412381 to your computer and use it in GitHub Desktop.
UDEV rule to automatically backup stuff when I attach my backup drive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# UDEV rules to setup automatic backup upon disk insertion | |
# You can get the discriminant informations with the following command : | |
# udevinfo -a -p $(udevinfo -q path -n /dev/sda) | |
KERNEL=="sd?1", ACTION=="add", SUBSYSTEMS=="scsi", ATTRS{vendor}=="Maxtor", ATTRS{model}=="Basics Portable", RUN+="/root/autobackup.sh %k" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment