I am trying to harden my network for a power outage. I have UPS devices that can keep a system running for 20mins. And then I need to shutdown the server.
The problem I see is if a urBackup backup is running on the server, how do I stop it? Or pause it?
What would happen if the machine urBackup is on is shutdown in the middle of running a backup?
Currently the system will just shutdown the server in the middle of a backup, and I’m not sure how upset urBackup will be about this.
Without doing anything config-wise, the backup will either terminate the job, or pause it [as the client stops sending the data, when the server disappears] in the same sort of way a client going offline would do…
Also, think of the bigger picture: while having the backups is important, it is still only the secondary copy/version/state, so it’s better for the server to have a graceful shutdown and even can a backup, than to risk corruption from a mid-write disgraceful off - especially when you consider the backup will either resume or just start a new run when power supply returns..
Hope that makes sense, am in the middle of doing something else and thought I’d add..
Yeah, it is bigger picture I am thinking. Looking at my spread of UPS’s I am thinking of shutting down the backup server as one of the first to go off. I have backups coming from various other random machines - could be another server, or a PC - so my thought was to shut it down early.
If there was a graceful way to say “urBackup Server, please pause” I would have found a way to issue the command. Instead I will likely have the server just shutdown its Docker container and Storage before powering off.
I know I didn’t have to worry too much about the clients as I have seen PCs crash in the middle of a backup, and then sort themselves out when they came back online.
If your URBackup server is running as a VM (under proxmox, vmware, etc..), you could always hibernate the VM as part of your power loss shutdown, instead of trying to pause URBackup. (The inprogress backups will – most likley – fail upon restart, but ce’st la vie…)