<div dir="ltr">I'm trying to create incremental backups that I could restore when necessary. All backups are being generated fine but I couldn't find a way to recreate an image using all or some of the backup files. <br><br>For example, my domain is called jammy and is running. <br><br>jammy-backup.xml:<br><domainbackup><br>  <incremental></incremental><br></domainbackup><br><br>jammy-checkpoint.xml<br><domaincheckpoint><br>  <disks><br>    <disk name="vda" checkpoint="bitmap"/><br>  </disks><br></domaincheckpoint><br><br>~# virsh backup-begin jammy jammy-backup.xml jammy-checkpoint.xml<br><br>* This command with these files generates backup file in /var/lib/libvirt/images appending the checkpoint timestamp in file name (jammy.qcow2 -> jammy.qcow2.TIMESTAMP). <br><br>~# virsh checkpoint-list jammy<br> Name         Creation Time<br>-----------------------------------------<br> 1666006874   2022-10-17 08:41:14 -0300<br> <br>~# ls -lh /var/lib/libvirt/images<br>-rw-r--r-- 1 libvirt-qemu kvm  2,6G out 18 14:38 jammy.qcow2<br>-rw------- 1 root root         1,5G out 17 08:41 jammy.qcow2.1666006874<br><br>If I create a new domain using jammy.qcow2.1666006874 as disk, everything works good.<br><br>Then, I've created some incremental backups. <br><br>jammy-backup.xml:<br><domainbackup><br>  <incremental>1666006874</incremental><br></domainbackup><br><br>~# virsh backup-begin jammy jammy-backup.xml jammy-checkpoint.xml<br><br>~# ls -lh /var/lib/libvirt/images<br>-rw-r--r-- 1 libvirt-qemu kvm  2,6G out 18 14:38 jammy.qcow2<br>-rw------- 1 root root         1,5G out 17 08:41 jammy.qcow2.1666006874<br>-rw------- 1 root root         247M out 17 14:42 jammy.qcow2.1666010735<br><br>At this point, if I need to restore the backup with checkpoint 1666010735, how can I create a new image using jammy.qcow2.1666010735 and jammy.qcow2.1666006874? <div><br></div><div>I would like to merge the incremental backup jammy.qcow2.1666010735 into the full backup jammy.qcow2.1666006874, to get a new image so I can create a new domain using it as disk. Am I doing it the right way?<br><br>Ubuntu 22.04 LTS<br>KVM <br>libvirt 8.0.0-1ubuntu7.1<br>qemu 1:6.2+dfsg-2ubuntu6.4<br><br>Thank you! <br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><span style="font-family:monospace">Jorge Luiz Corrêa<br>Embrapa Agricultura Digital<br><br></span><span style="font-family:monospace"><span style="color:rgb(0,0,0)">echo "CkpvcmdlIEx1aXogQ29ycmVhCkFu
</span><br>YWxpc3RhIGRlIFJlZGVzIGUgU2VndXJhbm
<br>NhCkVtYnJhcGEgQWdyaWN1bHR1cmEgRGln
<br>aXRhbCAtIE5USQpBdi4gQW5kcmUgVG9zZW
<br>xsbywgMjA5IChCYXJhbyBHZXJhbGRvKQpD
<br>RVAgMTMwODMtODg2IC0gQ2FtcGluYXMsIF
<br>NQClRlbGVmb25lOiAoMTkpIDMyMTEtNTg4
<br>Mgpqb3JnZS5sLmNvcnJlYUBlbWJyYXBhLm
<br>JyCgo="|base64 -d<br></span></div></div></div></div>

<br>
__________________________<br>Aviso de confidencialidade<br><br>Esta mensagem da Empresa  Brasileira de Pesquisa  Agropecuaria (Embrapa), empresa publica federal  regida pelo disposto  na Lei Federal no. 5.851,  de 7 de dezembro de 1972,  e  enviada exclusivamente  a seu destinatario e pode conter informacoes  confidenciais, protegidas  por sigilo profissional.  Sua utilizacao desautorizada  e ilegal e  sujeita o infrator as penas da lei. Se voce  a recebeu indevidamente, queira, por gentileza, reenvia-la ao emitente, esclarecendo o equivoco.<br><br>Confidentiality note<br><br>This message from Empresa  Brasileira de Pesquisa  Agropecuaria (Embrapa), a government company  established under  Brazilian law (5.851/72), is directed exclusively to  its addressee  and may contain confidential data,  protected under  professional secrecy  rules. Its unauthorized  use is illegal and  may subject the transgressor to the law's penalties. If you are not the addressee, please send it back, elucidating the failure.<br>