vzdump output to directory instead of archive

benh7

Member
Dec 17, 2019
4
0
6
47
I am currently using borg backup to compress and dedup backups which has been very successful in saving space. However to get the benefit of de-duplication I need to extract the vzdump archive before importing to borg. This adds time to an already long process.

Is there a way to backup a VM directly to directory without the need to extract the vzdump archive first?
 

t.lamprecht

Proxmox Staff Member
Staff member
Jul 28, 2015
5,331
1,641
164
South Tyrol/Italy
shop.proxmox.com
No, not directly. You could do so with VZDump hooks.

https://pve.proxmox.com/pve-docs/chapter-vzdump.html#_hook_scripts
See: /usr/share/doc/pve-manager/examples/vzdump-hook-script.pl

There's already an example code-hunk for copying over a backup to a remote machine once it's finished - you could plug into there the whole extract+borg steps.

FYI: We're working onto a deduplicated backup solution.
 

benh7

Member
Dec 17, 2019
4
0
6
47
Thanks Thomas. I'm looking forward to the dedup backup solution! In the meantime, it looks like the hooks will still create the archive and double the work.

Do you see any problems with freezing the file system using "qm guest cmd <vm id> fsfreeze-freeze", then making a copy of the lvm using dd, then thawing the filesystem?

I think this might stop the doubling up while I'm waiting for the dedup solution.
 

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 your own in 60 seconds.

Buy now!