udev rule not working

Bug #1468553 reported by Sparhawk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Back In Time
New
Undecided
Unassigned

Bug Description

I've set up backintime to work when a drive gets connected. However, it doesn't appear to be working properly. I originally tried with root, since I wish to back up my entire file system. I also tried a minimal situation for my normal user, but this also fails. I'm using KDE Plasma 5.3.1 in Arch Linux.

When I plug in my hard drive, a udev rule appears to activate, because a notification pops up. This says that it cannot find the hard drive, and will wait 30 seconds. Presumably this is because the hard drive is not mounted until I click mount in the Plasma's tray popup. I mount the hard drive within a few seconds, but the backup never starts.

~/.config/backintime/config is here: http://pastebin.com/evrkYs80

/etc/udev/rules.d/99-backintime-sparhawk.rules comprises the following line.

ACTION=="add", ENV{ID_FS_UUID}=="1bf6eef9-f221-4401-a00a-e37b455c8fab", RUN+="/bin/su - 'sparhawk' -c '/usr/bin/nice -n 19 /usr/bin/ionice -c2 -n7 /usr/bin/backintime --backup-job >/dev/null 2>&1'"

There is also /etc/udev/rules.d/99-backintime-root.rules which is almost identical except for the the username changing.

I cannot find any kind of related log file in /var/log

Revision history for this message
Germar (germar) wrote :

Please activate 'Automount on Attach' for that drive in System Settings > Removeable Devices

Revision history for this message
Sparhawk (sparhawkthesecond) wrote :

I enabled automount; I had to follow these instructions http://askubuntu.com/a/613539/53508

Now it's still not backing up, but I'm not even getting backintime's notifications. I troubleshooted by creating a dummy script echoing the date to a temporary file, using the same triggers as backintime's udev rule. This worked fine, so it seems that the udev rule should be working.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.