Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow dedup of RO snapshots #93

Open
HaleTom opened this issue Dec 31, 2017 · 1 comment
Open

Allow dedup of RO snapshots #93

HaleTom opened this issue Dec 31, 2017 · 1 comment

Comments

@HaleTom
Copy link

HaleTom commented Dec 31, 2017

Currently, bedup doesn't support deduping in RO snapshots:

This approach doesn't require special kernel support, but it has two downsides: locking has to be done in userspace, and there is no way to free space within read-only (frozen) snapshots.

duperemove allows dedup of RO snapshots with its -A option

Could beup support this, too?

@MarcelWaldvogel
Copy link

A (not really elegant) workaround would be to

btrfs property set "$dir" ro false
bedup dedup "$dir"
btrfs property set "$dir" ro true

It worked for me with a simple loop over all my snapshots. If your readonly snapshots are not all in the same directory, you might want to wrapped it in a loop over btrfs subvolume list … and testing for btrfs propert get … ro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants