PBS Incremental Backup Question

theprez1980

New Member
Feb 25, 2024
12
0
1
So in reading the forums, I understand that each backup is a full backup due to how deduplication works. But I'm unclear as to if there's any impact to network traffic.

Said differently, does each backup (nightly in my case) transfer all the same data to the remote server each night and it then deduplicates or is there some intelligence to simply transfer the chunks that have changed and nothing more?

I ask because it seems like subsequent backups occur quicker than the first but maybe I'm dreaming that up.

Thanks
 
So in reading the forums, I understand that each backup is a full backup due to how deduplication works. But I'm unclear as to if there's any impact to network traffic.

Said differently, does each backup (nightly in my case) transfer all the same data to the remote server each night and it then deduplicates or is there some intelligence to simply transfer the chunks that have changed and nothing more?

I ask because it seems like subsequent backups occur quicker than the first but maybe I'm dreaming that up.

Thanks
Hi,
yes there is an optimization in place to only transfer chunks not present in the previous backup snapshot located in the same group on the Proxmox Backup Server. This is true for all: VM, container and host backups. For VM backups, the dirty bitmap is used to track changed blocks which need to be resend, this is however only possible if the dirty bitmap is not invalidated in between (e.g. by stopping the VM). For container and host backups, all data is read and chunked, only uploading the new chunks.

For host and container backups there is now also (at the time of writing still experimental) change detection mode switch, see https://pbs.proxmox.com/docs/backup-client.html#change-detection-mode
 
  • Like
Reactions: theprez1980
Not wanting to thread hijack, but if the VM is off for weeks at a time, would you expect a daily backup of it to take longer than if it was running 24/7?? I have a deployment VM that I only turn on when I want to do re-imaging. Daily it backs up but for some reason has a dirty bitmap meaning it copies the entire vdisk in every backup. SInce it has been off and therefore it doesn't change, I would expect this backup to take zero time as there should be nothing to backup!!!
 
has a dirty bitmap meaning it copies the entire vdisk in every backup.
No.

Yes, the dirty bitmap is lost when the VM had been stopped and is restarted now.

Because of this the Backup process needs to read each and every occupied byte of data from the virtual disks to re-calculate the checksum of the corresponding chunk.

But it will transmit only that checksum of a chunk to the PBS. In a second step and only if the checksums are different the new data of these chunks is send to the PBS.

Clever, isn't it :)
 
No.

Yes, the dirty bitmap is lost when the VM had been stopped and is restarted now.

Because of this the Backup process needs to read each and every occupied byte of data from the virtual disks to re-calculate the checksum of the corresponding chunk.

But it will transmit only that checksum of a chunk to the PBS. In a second step and only if the checksums are different the new data of these chunks is send to the PBS.

Clever, isn't it :)
That's a great explanation. Thanks
 
Yes, the dirty bitmap is lost when the VM had been stopped and is restarted now.
Is the dirty bitmap only a in-memory table? Why couldn't the map still exist after the VM is shut down?
We have some test systems, which are normally shut down but still in the backup schedule.
So it takes over an 1/2 hour to backup a single VM even the system was shut down and no byte on the disk has changed.
 

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!