I searched for an answer but didn’t find a good one. AI gave me an answer but it’s rather nuanced and technical in nature. (The answer being that the backup will finish, taking the most recent image on disk, no matter how many times I restart the qube.)
As the title states:
Can you start and use a qube after having started a backup of it? If so, what happens when you stop it, possibly repeating the process multiple times (e. g.: start backup, start and stop qube three times in a row).
The context is that I started a backup of a qube that I would like to do some work in now and I am unsure whether I can start and possibly stop it without interfering with the backup.
I know it is possible to start a backup of an already running qube, where the state before starting the qube will go into the backup. But that’s a slightly different matter.
I assume this is related to the images being kept on disk vs. the live image used when a qube is started, and also possibly related to the number of revisions being kept on disk.
On the off chance that you’re using the Btrfs or XFS installation layout (file-reflink driver), it would definitely be fine in that case.
For the default LVM Thin installation layout, I’m not a 100% sure if it could cause problems or not. (Maybe during some unfortunate time window?) The logic there is more complex and I’m not super familiar with it.
I would treat this as storage-pool dependent rather than a safe general rule. First check the pool driver with qvm-pool -i vm-pool (or whichever pool the qube uses). If it is the default LVM thin setup and the backup is already running, I would avoid start/stop cycles unless the work is urgent; let the backup finish, then start the qube and make another backup if you changed anything important. On reflink-based pools it is much less worrying, as rustybird said.
I thought* the backup process started by grabbing a handle on the current latest version of each volume as it was at last shutdown… and even for an lvm-thin based qube it would not change, even with multiple shutdown/startups.
Now I’m not so sure. Can anyone give an authoritative “yes, you can use your qubes during backup” answer?
* My thinking is nothing better than a swift amateur eyeballing of likely looking code in qubes-core-admin.