Proxmox backup process

vince17

New Member
Oct 15, 2015
7
0
1
Hello, I have been lately trying to get a better understanding of the backup process in Proxmox, and I have been doing some tests from my end. I understand Qemu supports two types of backup - Internal and External.
In Internal an internal snapshot is created within the qcow2 file, but while backing up a proxmox Qemu VM I did a Qemu img info on the Qcow2 file and found no internal snapshots.
In external snapshots, the original VM Qcow2 file becomes the backing Qcow2 file and also a snapshot Qcow2 file is created. I used inotifywait to find out any new snapshot Qcow2 files but couldn't find any.
Another possibility I thought was that Proxmox would be using LVM snapshots, but while backing up using Proxmox no LVM snapshots were created. I also made sure that the vps is not suspended.
So I am confused how exactly the backup process works within Proxmox.

I need this information to make sure I am offering my customers a safe backed-up vps product. Thank you in advance for your help.
 
(there is also a link to git inside this wiki page, with very detailed description).

Thank you for your reply Tom, I can't find any git links within that Wiki page, can you please help me out with the link ? I have been working on this for the past 3 days without any result. Thank you again.
 
Thank you for your reply Tom, I can't find any git links within that Wiki page, can you please help me out with the link ? I have been working on this for the past 3 days without any result. Thank you again.

its in the "Introduction" section on the end of the paragraph.
 
I am sorry for jumping the guns in my previous post, I found the link and also read the entire text document, thank you so much, everything was good and informative.
I read a particular line in the doc which says,

During backup we simply intercept writes, then read existing data and store that directly into the archive. After that we can continue the write.

I was wondering how exactly does it intercept the writes? If you have any information related to this, I would just need the basic idea of the working is all, Thanks Tom.
 
click on "Backup" on our GUI - or what do you mean?

I mean what command is used to invoke the backup code written by Dietmar.
As per the document : https://git.proxmox.com/?p=pve-qemu-kvm.git;a=blob;f=backup.txt

The backup method described is :
1) It needs a unique format to store which you made
2) During backup we simply intercept writes, then read existing data and store that directly into the archive.

The second part I believe is a QEMU code which is written by Dietmar.
Now the C Code (dietmar pointed) is the second part of the backup. I guess there must be a QMP call to QEMU to start intercepting writes. However I cant find any such documentation on QEMUs website to intercept writes to make sure the backup method made by Proxmox is cool.

I am not saying Proxmox's backup is not working. But I need to be sure its a efficient method and its really ignited my curiosity at the same time.
 
@Dietmar / @tom would really appreciate if you guys could help me with my curiosity.

What curiosity? You got all available information about our backup and the link to the code, so what question is open?
 
What curiosity? You got all available information about our backup and the link to the code, so what question is open?

I dont have this bit :
"During backup we simply intercept writes, then read existing data and store that directly into the archive."

Is there a QMP command to initiate that in QEMU ?
 

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!