old crontab entries not removed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Back In Time |
Fix Released
|
Critical
|
Unassigned |
Bug Description
On saving the preferences, backintime creates a new crontab entry, but fails to remove the old one.
From bug 451811 I figured it might be useful to paste this output as well(this was after manual removal of the duplicate entry, I copied this regex from config.py):
richard@bagheera:~$ crontab -l | grep -Pv '(?s)#Back In Time system entry, this will be edited by the gui:.*?backintime'
#Fetch mail from Ziggo POP server to local storage
*/5 * * * * /usr/bin/getmail >/dev/null 2>&1
#Back In Time system entry, this will be edited by the gui:
0 * * * * nice -n 19 ionice -c2 -n7 /usr/bin/backintime --profile "Main profile" --backup-job >/dev/null 2>&1
Looks like even with the -P option and (?s) grep doesn't find the Backintime lines. I also tried it without the ? in front of backintime, as it looked wrong to me(I might be mistaken there), but got the same result.
Removing the last part did result in grep removing the comment line:
richard@bagheera:~$ crontab -l | grep -Pv '(?s)#Back In Time system entry, this will be edited by the gui:.*?'
#Fetch mail from Ziggo POP server to local storage
*/5 * * * * /usr/bin/getmail >/dev/null 2>&1
0 * * * * nice -n 19 ionice -c2 -n7 /usr/bin/backintime --profile "Main profile" --backup-job >/dev/null 2>&1
Using:
Back in Time 1.0
GNU grep 2.6.3
Python 2.6.6
Linux bagheera 2.6.35-22-generic #35-Ubuntu SMP Sat Oct 16 20:36:48 UTC 2010 i686 GNU/Linux
Changed in backintime: | |
status: | Confirmed → Fix Committed |
Changed in backintime: | |
status: | Fix Committed → Fix Released |
This seems tp be related to Ubuntu 10.10.