Skip to the content.

bees Command Line Options

Load management options

Specify maximum number of worker threads. Overrides --thread-factor (-C), default/autodetected values, and the hardcoded thread limit.

Specify ratio of worker threads to detected CPU cores. Overridden by --thread-count (-c).

Default is 1.0, i.e. 1 worker thread per detected CPU. Use values below 1.0 to leave some cores idle, or above 1.0 if there are more disks than CPUs in the filesystem.

Specify load average target for dynamic worker threads. Default is to run the maximum number of worker threads all the time.

Worker threads will be started or stopped subject to the upper limit imposed by --thread-factor, --thread-min and --thread-count until the load average is within +/- 0.5 of LOADAVG.

Specify minimum number of dynamic worker threads. This can be used to force a minimum number of threads to continue running while using --loadavg-target to manage load.

Default is 0, i.e. all bees worker threads will stop when the system load exceeds the target.

Has no effect unless --loadavg-target is used to specify a target load.

Filesystem tree traversal options

Specify extent scanning algorithm. EXPERIMENTAL feature that may go away.

For details of the different scanning modes and the default value of this option, see bees configuration.

Workarounds

Pretend that read-only snapshots are empty and silently discard any request to dedupe files referenced through them. This is a workaround for problems with the kernel implementation of btrfs send and btrfs send -p which make these btrfs features unusable with bees.

This option should be used to avoid breaking btrfs send on the same filesystem.

Note: There is a significant space tradeoff when using this option: it is likely no space will be recovered–and possibly significant extra space used–until the read-only snapshots are deleted. On the other hand, if snapshots are rotated frequently then bees will spend less time scanning them.

Logging options

Enable timestamps in log output.

Disable timestamps in log output.

Paths in log output will be absolute.

Paths in log output will have the working directory at bees startup stripped.

Set log verbosity (0 = no output, 8 = all output, default 8).