Skip to content

Instantly share code, notes, and snippets.

@gerryk
gerryk / 50-autobackup.rules
Created February 5, 2016 13:15
UDEV rule to automatically backup stuff when I attach my backup drive
# 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"

Keybase proof

I hereby claim:

  • I am gerryk on github.
  • I am gerryk (https://keybase.io/gerryk) on keybase.
  • I have a public key whose fingerprint is B1E2 E8A8 96B9 8736 5A68 FBAF F1C9 FAAA 8D18 8B5C

To claim this, I am signing this object: