How to restore a container to a specific snapshot/backup

hisaltesse

Well-Known Member
Mar 4, 2009
227
2
58
I have been looking everywhere but could not find how to use vzdump to restore a container to a different snapshot than the last one taken. Would anyone know?

After all the point of snapshot is incremental backup and we should be able to restore to any previous date and not just the last one.

Anyone has a clue?

Thanks.
 
I have been looking everywhere but could not find how to use vzdump to restore a container to a different snapshot than the last one taken. Would anyone know?

vzdump makes full backups - incremental backup is not possible.

After all the point of snapshot is incremental backup and we should be able to restore to any previous date and not just the last one.

Normally you store vzdump backups on tapes (like any other backup data).

- Dietmar
 
Thank you for your reply Dietmar,

1. However what happens to all the previous full backups?
Does vzdump in proxmox simply save one full backup by overwriting the previous one or does it keep previous full backups as well?

2. Also in the vzdump documentation in openvz, and from the backup log of proxmox, it is pretty clear that the command used by proxmox to backup with vzdump is the one that is supposed to do a snapshot.

Here is an extract of my log:
creating lvm snapshot of /dev/mapper/pve-data ('/dev/pve/vzsnap')

Any reason why at this point it is still not the case?

Please help me understand.
Thanks.
 
1. However what happens to all the previous full backups?
Does vzdump in proxmox simply save one full backup by overwriting the previous one

yes


2. Also in the vzdump documentation in openvz, and from the backup log of proxmox, it is pretty clear that the command used by proxmox to backup with vzdump is the one that is supposed to do a snapshot.

Here is an extract of my log:
creating lvm snapshot of /dev/mapper/pve-data ('/dev/pve/vzsnap')

Any reason why at this point it is still not the case?

Sorry, I do not understand that question?

- Dietmar
 
About my second question, maybe I got confused.

I thought the word snapshot in vzdump meant incremental snapshots a little like on VMware ESX where you can keep taking snapshots and restore back to any snapshot in the past (not necessarily the last one).

And you confirm that vzdump does not allow to restore to a snapshot of a given date in the past right?
 
I thought the word snapshot in vzdump meant incremental snapshots a little like on VMware ESX where you can keep taking snapshots and restore back to any snapshot in the past (not necessarily the last one).

I thought the same, especially since the vzdump is timestamped. Was surprised to see that the previous backup was deleted/overwritten.

Cheers
 
maybe it would be a good feature to select how much backups back should be stored and the oldest will be deleted when a new one is created?
 
have a look at "man vzdump"
you can configure in /etc/vzdump.conf how many backupfiles you want to keep.
 
ah cool - would be nice to have this in the pve-gui per vm or backup job because you probably do not want this for every test-vm or different amount of kept backups
 
you have to create the file '/etc/vzdump.conf'.
Do something like
'touch /etc/vzdump.conf' and then edit it
or
'vim /etc/vzdump.conf' set your parameter and write the file.
 

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!