Fresh install which picks up old settings does not set cronjob correctly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Back In Time |
Triaged
|
Medium
|
Unassigned |
Bug Description
If you have a nicely working instance of backintime successfully performing daily backups, and then you reinstall your operating-system (but preserve your home folder), followed by reinstalling backintime, then backintime nicely remembers its old settings.
You can take a snapshot and it works as it did before. It all looks perfect - in fact it (incorrectly) reports that it is still scheduled to do daily backups. But strangely the daily backups do not happen, because the cronjob file was reset after the reinstall but the backintime settings were not reset - so the two do not match.
I'm not sure what the solution to this problem is, other-than having backintime occasionally inspect the crontab file, e.g. whenever the backintime application is started. But I think this is a bug because back-in-time's settings panel is incorrectly stating that a daily backup schedule is set, and this gives a false sense of security.
crontab doesn't run in userspace. It run as root and the user can only add new schedules with 'crontab' command. The schedules are stored somewhere in /var. That's why the schedules where gone after you reinstalled your system.
BIT always set up crontab schedules as soon as you press OK in Settings dialog. No matter if they had change or not.
We could add a warning on GUI start if crontab doesn't match BIT config and ask to run Settings.