anacron jobs starts too soon after udev triggered backup
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Back In Time |
Fix Released
|
Medium
|
Unassigned |
Bug Description
backintime-
When creating an udev triggered, encrypted local backup to a USB attached disk from the gnome gui, the anacrontab line created fires the backintime backup job immediately after udev triggers anacron, which seems to be too early.
Jun 22 10:39:22 uh552 backintime (isti): INFO: Lock
Jun 22 10:39:22 uh552 backintime (isti): ERROR: A titkosított mappa konfigurációja nem található
Jun 22 10:39:22 uh552 backintime (isti): INFO: Unlock
For some reason, encfs can't find it's config. The syslog roughly translated: "Cannot find encrypted folder config".
If I just add a minute delay to the anacron_line, everything works fine. A few seconds would probably suffice, but it seems only minutes can be specified for anacron.
Non-encrypted backup does not seem to need this delay.
Related branches
Changed in backintime: | |
status: | Triaged → Fix Committed |
Changed in backintime: | |
milestone: | none → 1.0.38 |
Changed in backintime: | |
status: | Fix Committed → Fix Released |
Thanks for the patch. I didn't add the 1min delay because I think it's confusing for people who test the udev/anacron schedule. They might think it doesn't work and fiddle around during the minute.
Anyways, it turns out anacron wasn't the best choice. I'll have to rewrite the part of anacron by my self because anacron does always mark a job as done for the day even if BIT failed.