Automatically backup to USB drive when plugged in!

‘Simple’ were the requirements for this evening: When I plug in my USB drive into my Openstack(ubuntu) server, i want it to automatically start backing up vm-harddisks.

Well, that sounds easy. But ubuntu doesn’t always assign the same device-node to my usb drive. Sometimes its /dev/sdc1 and sometimes its /dev/sdb1 … so first order of business is to get ubuntu to assign the same device node, and mount point to my usb disk.

Continue reading →