Does XOA pause scheduled backups during XOA upgrades?
-
I was about to start a XOA upgrade, but realised that a backup job was running, so I didn't.
What would happen if a XOA upgrade is started while a scheduled job or other task involving XO is running?
- Is there some form of internal checks that would block the Upgrade until those tasks are finished?
- If the upgrade is started before a scheduled task, will the scheduled task still be attempted or will it be skipped?
-
Hi,
If
xo-server
is upgraded, that will interrupt all your backups. There's a warning message if you click on Upgrade while a backup is running by the way. -
Thanks. I did not dare to try to test it yet!
Could there not be a race condition, that a task is started just after the upgrade button is checked? Could we have a new feature to temporarily pause all jobs that involve XOA during the upgrade?
-
Pausing jobs might have bigger consequences (missing an important backup job) than just telling the users. So I'm not sure there's a trivial solution in here. Adding @julien-f in case he has a suggestion.
-
Absolutely, there might be consequences. However no job would be able to run (or might fail) while XOA is undergoing upgrades anyway? One risk is that resuming paused jobs might be missed after an upgrade.
-
Only if
xo-server
is restarted (which is the case, IIRC, only whenxo-server
itself is updated). If it's the updater or XO web, you shouldn't have any consequence. -
XO does not pause backups during upgrades/restart, all currently running backups will be interrupted as @olivierlambert said.
An interrupted backup is not a big problem by itself, nothing will be broken, and the next run will run properly.
Backups are only run at the time they are scheduled, if XO is offline at this time, it will not automatically run them when restarted, it will wait for the next scheduled run.