I'd like to write a script that backups data on a USB device every time the latter is getting plugged in a random USB slot. Now I know about the
KERNEL=sdX identifier but the problem is that depending on the slot and on whether other devices are already plugged in the
sdX will change. What would be the best way to identify my USB device in udev ? I've been thinking about using
partuuid but I don't know how and I don't know where the partuuid is stored in the first place or how it is worked out.