Concurrent backups

yatesco

Renowned Member
Sep 25, 2009
230
10
83
I'm assuming yes, but just checking - PBS does "the right thing" if a CT/VM is included in multiple *overlapping* backup schedules? Including if they have different backup strategies?

For example, assume I have CM/VM1 configured in an hourly *snapshot* schedule and a midnight *shutdown* schedule. At midnight, I'd expect one of those to take effect and then the next to take effect.

Can anyone confirm this please.
 
I guess the answer here is that PBS doesn't do anything.

The backups are being run by your PVE server.
PBS is a very smart backup target that manages dedupe and storage, not really backup jobs.

So, your backup jobs are configured on your PVE cluster.
And they will all run at whatever schedule you have set.

As for the conflict you propose where a job shuts a VM/CT down and then a subsequent job executes a backup on it ...
... well what its going to do in that case depends entirely on how you've configured the backup job.
 
I'm assuming yes, but just checking - PBS does "the right thing" if a CT/VM is included in multiple *overlapping* backup schedules? Including if they have different backup strategies?

For example, assume I have CM/VM1 configured in an hourly *snapshot* schedule and a midnight *shutdown* schedule. At midnight, I'd expect one of those to take effect and then the next to take effect.

Can anyone confirm this please.
Proxmox VE locks VMs/CTs during backup, they will not be executed at the same time. The same is true for PBS. During backup, the backup group is locked for exclusive write access to the backup group, PBS will not let you perform multiple backups to the same backup group in parallel.

So one of your scheduled jobs will fail, you will have to avoid setting them up in an overlapping time window.
 
  • Like
Reactions: yatesco
Hi,
Proxmox VE locks VMs/CTs during backup, they will not be executed at the same time. The same is true for PBS. During backup, the backup group is locked for exclusive write access to the backup group, PBS will not let you perform multiple backups to the same backup group in parallel.

So one of your scheduled jobs will fail, you will have to avoid setting them up in an overlapping time window.
the Proxmox VE jobs will be queued and wait for up to 180 minutes (by default, this can be controlled by the lockwait parameter for vzdump.conf). They will only fail if they cannot get the backup lock in that time.
 
  • Like
Reactions: yatesco and Chris