Backup vs Snapshot

vikozo

Member
May 4, 2014
265
2
18
suisse
www.wombat.ch
hello
on a running KVM Server, i have the option to do a Backup or the Snapshot!
What is the difference? in which situation it is better to use which?

have a nice day
vinc
 

wolfgang

Proxmox Staff Member
Staff member
Oct 1, 2014
4,763
316
83
Hi,
Backups are independent from your vm and can be stored everywhere like every file.
Snapshots are in or on your vm-disk so you cant take it away.

Backups are full copy's of the vm and need more space
snapshots need less storage.

Backups take time snapshots are instant.
 
Apr 27, 2014
258
3
18
I think the reason why questions like these arise is that http://pve.proxmox.com/wiki/Backup_and_Restore also talks about snapshot backups :)
I admit it took me a while to figure out the differences...
[h=2]Backup[/h]There are 3 backup modes available:

  • stop (KVM): Shutdown the VM to get a consistent state, Then start KVM live backup and restart the VM (short downtime).
  • stop (OpenVZ and LXC): Stop the VM/CT during backup (very long downtime)
  • suspend (KVM): same behaviour as 'snapshot' mode.
  • suspend (OpenVZ and LXC): Use suspend/resume and multiple rsync passes. You can backup with minimal downtime without using LVM.
  • snapshot (KVM): Use KVM live backup (no downtime, online)
  • snapshot (OpenVZ): Use LVM2 snapshots (no downtime, online)
  • snapshot (LXC): Use storage snapshots, as long as the storage support this, for example ZFS or Ceph (no downtime, online)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE 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 your own in 60 seconds.

Buy now!