Ceph (incremental)backup

Norman Uittenbogaart

Renowned Member
Feb 28, 2012
155
6
83
Rotterdam, Netherlands, Netherlands
This is more a ceph question then a Proxmox question I guess.
But I want to backup images in my Ceph pool for offsite backup so preferably incremental how would one do this?

Can I take a snap shot like

Code:
rbd snap create vm-105-disk-1@Initial

then maybe for each day

Code:
rbd snap create vm-105-disk-1@<date today>

Transfer the first initial and then everyday sync with

Code:
rbd export-diff --from-snap daybefore vm-105-disk-1@<date today> vm-105-disk-1-<date yesterday>-to-<datetoday>.diff

And transfer only the diff files.

But when can you delete the Initial snapshot and the 'older' diff file? (otherwise snapshot will take a lot of space on cluster)
And afterwards when can you use merge-diff to create a 'good' file on the other side?

Anyone with good bash skills like to program above (if at all possible).