Skip to content

Instantly share code, notes, and snippets.

View elmerehbi's full-sized avatar

Ibrahim El Merehbi elmerehbi

View GitHub Profile
@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"
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.