digint / btrbk

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

Backups not transfer to the portable drive #478

Closed vanarok closed 2 years ago

vanarok commented 2 years ago

Why do my backups stay on the local drive and not transfer to the backup portable drive? I have tried: run, resume, clean and no errors. The backups that did't transfer are the days when my portable drive was not connected. 2022-06-04T13:14:23,621525069+04:00

2022-06-04T13:15:04,857145574+04:00

2022-06-04T13:12:12,296627628+04:00

2022-06-04T13:12:58,752735433+04:00

digint commented 2 years ago

Sorry for the late reply, I kind of missed that one. Looks like you changed your configuration in between, as the snapshots should be in /mnt/btr_pool/btrbk_snapshots, but you listing shows them in /mnt/btr_pool.

Is this still a problem? if not, please close the issue.

vanarok commented 2 years ago

Sorry for the late reply, I kind of missed that one. Looks like you changed your configuration in between, as the snapshots should be in /mnt/btr_pool/btrbk_snapshots, but you listing shows them in /mnt/btr_pool.

Is this still a problem? if not, please close the issue.

It looks like you are right, what should I do now with the snapshots in different dir. Delete the old ones? I tried moving them to the same folder, but that didn't work.

digint commented 2 years ago

Recent kernels/binutils do not allow moving subvolumes into folders using mv. Instead, you can create new snapshots and then delete the old one:

btrfs subvolume snapshot -r /mnt/btr_pool/@.20220101 /mnt/btr_pool/btrbk_snapshots/@.20220101
btrfs subvolume delete /mnt/btr_pool/@.20220101

this will change the parent_uuid, but btrbk is perfectly fine with that