automatic backup
-
@daniele Without debug log it is tough to root cause this issue. Could you please do the followings on your MyController server to get debug logs?
Enable debug log message for the followings on
mycontroller/conf/logback.xml
,<logger level="DEBUG" name="org.mycontroller.standalone.backup" /> <logger level="DEBUG" name="org.mycontroller.standalone.scheduler" /> <logger level="DEBUG" name="org.mycontroller.standalone.timer" />
NOTE: MyController server restart is required to apply this change.
To stop:mycontroller/bin/stop.sh
To start:mycontroller/bin/start.sh
After this change, modify your backup settings to take backup in one minute. Now check logs on
mycontroller/logs/mycontroller.log
-
The odd thing is that yesterday I tried with 5 minutes, and it worked.
Then I moved to 12 hours, and the backup has never been created.I activated the debug logs you suggested, tried again with 1 minute and 1 hour, and everything worked perfectly.
Now I moved again to one day, I'll let you know the result. -
@daniele Great! Seems we might have an issue with 12 hours or more. let me check it.
-
After 1 day with debug enabled I can't see any other error, but still no backup.
Now I tried to set it up every 10 hours, I'll let you know the result. -
Same result with 10 hours, while I got a successful backup with 8 hours.
-
@daniele Thanks to narrow down this issue. I will have a look on the code.
-
-
Yesterday evening at 10 PM I changed the schedule from "every 8 hours" to "every 1 day", to check the change you did.
This evening I'll check the result, but what I notice in the meantime is that there's something wrong in the label showing the next execution: -
@daniele Thank you! Can you check the Uptime on your MyController server?
-
This is the uptime of my server:
To simplify your analysis: 4 AM is the time I daily restart my Raspberry.
-
To simplify your analysis: 4 AM is the time I daily restart my Raspberry.
That's the root cause. MyController backup job not following cron or regular time. It is following repeat time from the scheduled time. When you restart the server this timer also gets restarted. For your setup, you can configure a maximum of 23 hours and 59 minutes if you configure it exactly at startup.
So if you configure backup every
> 12 hours and < 24 hours
, you should get daily backup from next day. -
Now that's clear, I'll try using 23 hours.
Thanks! -
I can confirm that with 23 hours the scheduler works perfectly now!
Thanks a lot!