recovering a pve-zsync installation after a crash

giovvv

Well-Known Member
Aug 4, 2018
47
1
46
57
I have "server1" (10.0.0.1) backing up VM 502 on "server2" (10.0.0.2) with pve-zsync.

I set up the process with:

Code:
server1# pve-zsync create --source 10.0.0.2:502 --dest rpool/pve-zsync/daily --verbose --maxsnap 7 --name server2-backup-daily

eventually, server1 blows up and I have to completely reinstall it, proxmox and all. I also want to reinstall the pve-zsync job.

I have learnt that if I simply recreate the job with the command above, eventually it causes an error because on the sending side (server2) there are still snapshot in rpool/data. To avoid the error I have to manually delete all the snapshots with command such as

Code:
server2# zfs destroy -r rpool/data/vm-502-disk-1@rep_server2-backup-daily_ ...

however, by doing so I lose all the previous backups of this VM. So I have this question: instead of deleting them, is it possible to transfer manually these snapshot back to the backup server (server1), so to completely rebuild the situation as it were before the crash, preserving all the backup history and also making pve-zsync happy?

(btw: if the answer if yes, then it would also be very nice if the pve-zsync tool provided an automated way to do so :-))
 
Hi,

yes, you have manually sent and receive the data to the new (server 1).

The restore is not implemented yet.