AmesCornish / buttersink

Buttersink is like rsync for btrfs snapshots
GNU General Public License v3.0
193 stars 18 forks source link

.bs files automatic removal #72

Open feuerball11 opened 4 years ago

feuerball11 commented 4 years ago

Hi,

i recently installed buttersink in an automated process to sync up snapper snapshots over ssh to another server as backup.

I now found that in every snapshot folder (.snappshots/xxx/) is now a .bs file. In itself that's not a problem, but it causes snapper to not delete the snapshot folder when it cleans up not needed timeline snapshots. So that an folder with the .bs file remains, and my .snapshots folder is filled up with these "useless" folders. At a timeline with hourly snapshots these will become a huge folder very quickly. would it be possible to clean up these .bs files automatically, so I don't end up with a folder containing million subfolders with .bs files in them?

Kind regards, Ignatz

AmesCornish commented 4 years ago

Ignatz,

The .bs files cache size and difference information. Everything will run fine if you delete them, just possibly slower. I'd recommend that the process that deletes the snapshots also delete the corresponding .bs files.

On Fri, Jun 12, 2020 at 1:10 AM Ignatz notifications@github.com wrote:

Hi,

i recently installed buttersink in an automated process to sync up snapper snapshots over ssh to another server as backup.

I now found that in every snapshot folder (.snappshots/xxx/) is now a .bs file. In itself that's not a problem, but it causes snapper to not delete the snapshot folder when it cleans up not needed timeline snapshots. So that an folder with the .bs file remains, and my .snapshots folder is filled up with these "useless" folders. At a timeline with hourly snapshots these will become a huge folder very quickly. would it be possible to clean up these .bs files automatically, so I don't end up with a folder containing million subfolders with .bs files in them?

Kind regards, Ignatz

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/AmesCornish/buttersink/issues/72, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA4A4YKBAZUXL5DQXG3QFRTRWHPGTANCNFSM4N4DKVCQ .

feuerball11 commented 4 years ago

The process that deletes the snapshots is snapper. its its own program and I don't think I can convince it to delete the .bs files. At the end of the day I probably need to write my own script, running after buttersink.

it would be helpful if butersink had an option to automatically delete the .bs files, or don't even make them in the beginning. i don't have a problem with the process being slow, its automated between two server, running at night time.

so just being able to shut off the creating of the bs files would save ma a lot of time, figuring out how to find and delete all the .bs files after running buttersink.