How to schedule "Live Snapshots" similarly to backups

jsalas424

Member
Jul 5, 2020
141
2
23
34
PVE 6.2-15

I've been scheduling backups through the GUI in "Snapshot" mode but have noticed that the file sizes are appreciably larger than "Snapshots" through the individual VM's options. I realized that backups are formatted as VZDump files whereas the snapshots are raw disk images.

For example, my Nextcloud VM:
VZDump backup file = ~85GB, scheduled through nightly backups
raw Disk Image = ~ 6GB, taken with snapshot in the individual VM GUI

All my disks are qcow2 and I'm backing up either to a local NFS or directory.

Am I doing something wrong, or is there no way to schedule the smaller snapshots I'm looking for through the GUI?

Thanks!

Screen Shot 2020-11-09 at 10.38.15 AM.png
 
Last edited:
Here "snapshot" is the MODE, not the storage. This means that it does not shutdown the VM before doing the backup, but it "freezes" it for the duration of the backup. It has nothing to do with the snapshots of the storage you can take, also remember that the backup does not have any of those snapshots (so if you delete and then restore the VM, you lose all your shapshots).
So to answer your general question, there is not "scheduled shapshots" (with n snapshots retention) mechanism in the GUI so far.
If you have ZFS storage, there are some scripts for "rolling snapshots", like pyznap and Sanoid (never tried them), but outside GUI
 
Last edited:
Here "snapshot" is the MODE, not the storage. This means that it does not shutdown the VM before doing the backup, but it "freezes" it for the duration of the backup. It has nothing to do with the snapshots of the storage you can take, also remember that the backup does not have any of those snapshots (so if you delete and then restore the VM, you lose all your shapshots).
So to answer your general question, there is not "scheduled shapshots" (with n snapshots retention) mechanism in the GUI so far.
If you have ZFS storage, there are some scripts for "rolling snapshots", like pyznap and Sanoid (never tried them), but outside GUI
I do have ZFS storage! Thanks for explaining snapshots mode, that's what I suspected from my experiments but wanted to confirm.

Its a shame that there isn't a scheduled snapshot mechanism in the GUI, any idea if there's one in the pipeline?
 

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!