Backup Host PVE with pve-zsync

lxiosjao

Active Member
Mar 21, 2021
64
1
28
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