What's the best way for snapshot schedules and qm vs pct?

Asano

Well-Known Member
Jan 27, 2018
57
10
48
44
I'd like to automate snapshotting in my zfs based small cluster where every VM has replication enabled. The schedule should also have a pruning logic.

Basically https://github.com/EnterpriseVE/eve4pve-autosnap/blob/master/eve4pve-autosnap pretty much looks like what I want. However the author is using the `qm` command where as dietmar stated in a thread ( https://forum.proxmox.com/threads/cli-for-snapshots.36288/ ) we should use the `pct` command. So here are a few questions:

  • What is the difference between `qm snapshot` and `pct snapshot`?
  • What is the best approach if I want stateless (!) snapshots hourly which also play well with the replication on ZFS?
  • Is `qm`, `pct` or whatever the best tool is clever enough to not perform all snapshots at the exact same time when I schedule them at the same time or should I take care of delaying snapshots a little manually?
Thanks in advance.

PS: Implementing something like that officially would be great also it can be done quite easily manually ;-)
 
qm is for vm , pct for containers

Okay, that clarifies most. As I wasn't interested in containers very much I haven't looked further than VMs : p

Now I guess it will work well with ZFS replication but am not 100% sure? And I'm also not sure if I should add some manual delay...
 

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!