Multiple Backup Locations

jHorrocks

New Member
Dec 1, 2022
25
1
1
I have a question regarding my backups from pve1 to pbs1 and to pbs2.

I backup 6 VMs to pbs1 daily, it does this very quickly all ok. If I keep backing up to this server only, my backups are quick but when I back up to pbs2 its slow the first time due to me doing it only once a week which I understand has many changes but the issue then is after backing up to pbs2, backing up back to pbs1 is now slow the 1st time i do it.

pbs1 daily backup
pbs2 weekly backup

(Times below are approx)

1st Backup to pbs1: 4 hours
Backup 2 to pbs1: 25 mins
Backup 3 to pbs1: 25 mins
Backup 4 to pbs1: 25 mins
Backup 5 to pbs1: 25 mins

Switch to pbs2
1st Backup to pbs2: 4 hours
Backup 2 to pbs2: 25 mins
Backup 3 to pbs2: 25 mins
Backup 4 to pbs2: 25 mins
Backup 5 to pbs2: 25 mins

Then switch back to pbs1
Backup 6 to pbs1: 4 hours
Backup 7 to pbs1: 25 mins
Backup 8 to pbs1: 25 mins
Backup 9 to pbs1: 25 mins
Backup 10 to pbs1: 25 mins

Is it because each VM keeps a backup log to compare changes and when i switch from pbs1 to pbs2 it destroys the log changes so has to start all over again creating a log file?

If this i the case, is it possible to create a log file for each backup set and not the VM?

Another option if all the above is wrong, should i just sync the backups between the 2 pbs servers?
 
Once you reboot a PVE server, restart a VM (which also includes doing a stop-mode backup which will reboot the VM) or change the backup target the dirty-bitmap will be dropped and PVE will have to read and hash the whole virtual disks again.

Solution for that would be to make sure never to reboot the server, restart the VMs, to only use snapshot-mode backups and to do all the backups to a single PBS and then use the sync job of the second PBS to pull the backups from the first PBS.

So do both your weekly and daily backups to pbs1. Then tell pbs2 to pull the backups from pbs1.
 
  • Like
Reactions: vraa and jHorrocks
Very clear and detailed answer, this is great info... thank you so much... Really appreciate it.
 
  • Like
Reactions: vraa
Hi there, I hope it's OK for me to attach a question here!

I have a single PBS installed here, with 2 data stores (NFS mounts).

The issue is that the bitmap is always cleared as those are 2 separate jobs. Is there any way to avoid this?
 
The issue is that the bitmap is always cleared as those are 2 separate jobs. Is there any way to avoid this?
Always backup to a single datastore and then use a local sync job to copy the backup snapshots from that datastore to the other one.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!