znapzend backup generator script

PretoX

Member
Apr 5, 2016
44
10
8
33
Hi guys,
so everyone who uses proxmox on zfs probably knows that pve-zsync is not a best tool to make backups (no sudo, mbuffer and gzip etc) and you have to modify script after each update. And I also saw topics about znapzend tool, but you have to make separate task for each zfs dataset and manually copy the config file which is not a bit task but still I wanted to do it faster.
So I made a small script to auto-create all znapzend jobs and to backup config files during initial vm/container backup configuration. Hope this helps to anyone. And maybe some improvements appreciated.

Topics to be reviewed to get familiar to this backup tool:
https://forum.proxmox.com/search/378196/?page=2&q=znapzend&o=date&c[node]=16
http://www.znapzend.org/
 

Attachments

tuonoazzurro

Member
Oct 28, 2017
63
1
8
29
How are you monitoring your backups? I''ve looked around but found nothing about.
It could be very usefull an email alert if the job fail
 

killmasta93

Member
Aug 13, 2017
524
19
23
26
I have znapzend running on pve 5.2 but see no reason why it shouldn’t run on pve 6 as it’s using standard ZFS features and commands.
I have tried znapzend but i could not get it to work, what im trying to do is backup vm to another usb external disk but cannot get it to work.
this is my setup but not sure if im doing it correctly
Code:
znapzendzetup create --recursive --mbuffer=/usr/bin/mbuffer --mbuffersize=1G SRC '2d=>1d' rpool/data/vm-125-disk-0 DST:a '14d=>1d' usbbak
 

killmasta93

Member
Aug 13, 2017
524
19
23
26
and as for the script i zee the variable ZFSPOOL=
what if i only want to backup a certain vm?
 

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!