digint / btrbk

Tool for creating snapshots and remote backups of btrfs subvolumes
https://digint.ch/btrbk/
GNU General Public License v3.0
1.68k stars 122 forks source link

2 configs files with the same volume/subvolume backup #450

Open citronbleuv opened 2 years ago

citronbleuv commented 2 years ago

Hi

I need to have confirmation that my configuration is correct. I have 2 configs files with the same backup folder.

backup1.conf

...
snapshot_dir .snapshots1
volume /media/storage  
    subvolume images

backup2.conf

...
snapshot_dir .snapshots2
volume /media/storage  
    subvolume images

If one day I lost /media/storage/images + .snapshots1 + .snapshots2

Will that work fine ? Every ids/relations will be conserved ?

I don't use archive command for my case.

digint commented 2 years ago

As long as you keep the corresponding snapshots, you can send/receive incrementally. Look at the uuid and received_uuid of you snapshots/backups if you are unsure (lsbtr -u). If uuid matches received_uuid, or received_uuid matches received_uuid, you can use them for incremental send/receive.

Not sure why you send separate subvolumes to the same target folder, this seems pretty confusing. I would suggest to at least name them differently by setting distinct snapshot_name.

Sorry for the late reply, was very busy lately...