Changing vzdump backend (adding a new archiver9

fcorbelli

New Member
Feb 6, 2023
24
1
3
Italy
github.com
Is there a 'simple' way to add a different archiver in vzdump, for a GUI-started backup?

Maybe with this "thing" ?
Code:
  --script <string>
           Use specified hook script.

What I want to do is to use an archiver with deduplication (zpaq) to store the various versions of backups in a single file
Thanks for any reply!
 
a hookscript can be used for backup archive postprocessing (e.g., some people use it to move the backup archives somewhere else). manually compressing the tar files there should also work - but note that there is no inverse pre-restore hookscript, so anything not supported by PVE requires extra steps by the admin in that case.
 
  • Like
Reactions: fcorbelli
Did you have look at the proxmox backup server? That already comes with deduplication built-in.
 
Last edited:
  • Like
Reactions: fcorbelli
a hookscript can be used for backup archive postprocessing (e.g., some people use it to move the backup archives somewhere else). manually compressing the tar files there should also work - but note that there is no inverse pre-restore hookscript, so anything not supported by PVE requires extra steps by the admin in that case.
I was assuming something like that, but I wasn't sure.
I will certainly make a crontab for backups, but it would have been very convenient to be able to do it from the GUI
Is there a 'simple' way to enrich the packaging (I suppose with an actual script or something) of vzdump?
How is it 'launched' from the GUI?
 
I want to do "something" like that (just a snippet!)
Code:
zfs destroy  zp0/zd0@franco
zfs snapshot zp0/zd0@franco
zpaqfranz a /backup/200.zpaq /var/lib/vz/.zfs/snapshot/franco/images/200
zfs destroy  zp0/zd0@franco
 
no, there isn't, short of patching with all the downsides that come with such an invasive approach..
 
  • Like
Reactions: fcorbelli
So sad, I will need to make 'my' fvzdump (better a proxbackup inside zpaqfranz)

What, exactly, is needed for a backup?
Ok, the vmdks, raw, whatever virtual drives
What else?
Everything in var lib vz?
Thanks!

Ps is it possible to make a "fake" vzdump? Aka: do nothing but just run the hook?
 
Last edited:
I would not go down that path unless you are prepared to spend some time getting to know how everything works and is connected under the hoods. there's almost nothing worse than an unknowingly incomplete backup..
 
I absolutely agree, and in fact I wrote my own little softwarefor storing zfs datasets at the bit level (zfs send), as well as at file livel.
Fortunately vzdump seems easy to modify, I think I'll "hack" just that (i.e. make an evolved version of it)

What I don't know is whether proxmox 'hides' outside the zfs partition (i.e. in the system partition, formatted ext4 to be clear) any kind of information useful for recovery.
It shouldn't, but I'm more of an ESXi/Virtualbox admin than proxmox

Assuming (no matter what) I can restore the entire contents of the zfs partition, is that enough?

Thanks for the help
 

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!