Backup Host PVE with pve-zsync

lxiosjao

Member
Mar 21, 2021
63
1
13
Hi,
I use pve-zsync to backup my host PVE to a qnap with PBS.

All is working except :
- folder in the destination /etc/pve is empty (folder in the pbs dataset backup/SERVER1/pve-1/ then folder etc/pve )
- no email notification after backup (with --verbose in cron) (postfix is working)

File : /etc/cron.d/pve-zsync
Bash:
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

*/15 * * * * root pve-zsync sync --source rpool/ROOT/pve-1 --dest 10.1.1.250:backup/SERVER1 --name Backup_ZFS_host_SERVER1 --maxsnap 14 --limit 3125 --method ssh --verbose --source-user root --dest-user root

Is it because the folder /etc/pve in the host is owned by www-data group ?
any idea ?

Thanks
 
Last edited:
/etc/pve is a mountpoint where a fuse file system (pmxcfs) is mounted. the actual data is in /var/lib/pve-cluster (in an sqlite3 database).
 
  • Like
Reactions: lxiosjao
Thanks for your answer.
So if I have an issue, I can restore that folder (backup/SERVER1/pve-1/var/lib/pve-cluster) from backup to succeed ?
 
yes (modulo some of the last changes unless you explicitly flush the DB/quiesce the FS, like always when backing up database files)
 
  • Like
Reactions: lxiosjao
Nice, thank u for your help.
Do you have idea why I dont have notification (email) after backup ?


edit :
Cron tab try to use IPv6 to resolv my mail server. How am i supposed to force using ipv4 ?
error is : connect to servermail:network is unreachable
 

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!