I have a BTRFS backup system where I take daily snapshots (btrfs subvolume snapshot
) and serialize them into incremental change files based off the previous days backup (btrfs send -f backup.date volume -p backup.date-1
).
Unfortunately this means I have to keep every serialized volume forever, because I need every serialized snapshot in the chain.
I've tried deserializing (btrfs receive
) these incremental snapshots and deleting intermediate volumes, but the subsequent volumes are assigned new IDs. Incremental volumes refer to their parent volumes by ID, so this breaks the chain.
Thus I have backup.Jun01.daily
and backup.Jun01.monthly
where the latter is pruned and has a different ID. These two files effectively contain all the same data.
Is there any way to change the ID on backup.Jun01.monthly
so that backup.Jun02.daily
can refer to it, whereas it did refer to backup.Jun01.daily
?