SYSTEM WARNING: 'date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.' in '/usr/share/mantis/www/core.php' line 264

0001560: autobackup script in /etc/cron.hourly not created after backup restore, unless changing form values - MantisBT
MantisBT - Endian Firewall
View Issue Details
0001560Endian FirewallOther Servicespublic2009-02-11 17:212009-10-27 12:21
johnny-endian 
luca-endian 
normalminorsometimes
closedfixed 
2.2-rc3 
2.32.3 
0001560: autobackup script in /etc/cron.hourly not created after backup restore, unless changing form values
The automatic backup is not created, autobackup script in /etc/cron.hourly is missing after restoring a previous backup. The scheduled backup flags are on to "Enabled", "Current configuration" and "Keep # of archives" 10, hourly backup.
The script is created if you change the value 10 to another one and submit the form again.
No tags attached.
Issue History
2009-02-11 17:21johnny-endianNew Issue
2009-02-12 10:11peter-endianNote Added: 0001957
2009-02-12 10:11peter-endianStatusnew => confirmed
2009-02-12 10:11peter-endianTarget Version => future
2009-02-19 17:05peter-endianStatusconfirmed => resolved
2009-02-19 17:05peter-endianFixed in Version => 2.3
2009-02-19 17:05peter-endianResolutionopen => fixed
2009-02-19 17:05peter-endianAssigned To => peter-endian
2009-09-29 15:14luca-endianAssigned Topeter-endian =>
2009-09-29 15:14luca-endianNote Added: 0003041
2009-09-29 15:14luca-endianStatusresolved => feedback
2009-09-29 15:14luca-endianResolutionfixed => reopened
2009-09-29 15:14luca-endianStatusfeedback => resolved
2009-09-29 15:14luca-endianResolutionreopened => fixed
2009-09-29 15:14luca-endianAssigned To => luca-endian
2009-10-27 11:58peter-endianStatusresolved => closed
2009-10-27 12:21peter-endianTarget Versionfuture => 2.3

Notes
(0001957)
peter-endian   
2009-02-12 10:11   
restoring a backup does not trigger any restartscripts which set things such as cron script links.
This may affect also other services as well
(0003041)
luca-endian   
2009-09-29 15:14   
quickfix:

edit the file /etc/sudoers
and change the line
nobody ALL=NOPASSWD: /usr/local/bin/restartbackup
in
nobody ALL=NOPASSWD: /usr/local/bin/restartbackup.py