Btrfs: Difference between revisions
m →Install NixOS: Added pointer to example for mount options. |
bees usage |
||
| Line 118: | Line 118: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
You can check the status of the ongoing scrubbing process with the same <code>status</code> command from above | You can check the status of the ongoing scrubbing process with the same <code>status</code> command from above | ||
=== Deduplication === | |||
Files with (partially) equal contents can be deduplicated using [https://github.com/Zygo/bees bees] or [https://github.com/markfasheh/duperemove duperemove]. | |||
To use bees, you need to: | |||
# configure the UUID | |||
# mount the filesystem | |||
# create a hash table ([size guidelines](https://github.com/Zygo/bees/blob/master/docs/config.md)) | |||
# run <code>beesd</code> | |||
<syntaxhighlight lang="console"> | |||
# mkdir -p /var/run/bees/configs/bees/ | |||
# echo "UUID=$UUID" > /var/run/bees/configs/bees/root.conf | |||
# mkdir -p /run/bees/mnt/ | |||
# mount /dev/disk/by-uuid/$UUID /run/bees/mnt/$UUID -osubvol=/ | |||
# truncate -s 1g /var/lib/bees/$UUID/.beeshome/beeshash.dat | |||
# chmod 700 /var/lib/bees/$UUID/.beeshome/beeshash.dat | |||
# beesd / | |||
</syntaxhighlight> | |||
== Usage == | == Usage == | ||