bees
bees copied to clipboard
beesd not using config
Hello, I am on gentoo and installed bees 0.6, copying the sample config to /etc/bees/beesd.conf which contains the following:
## Config for Bees: /etc/bees/beesd.conf.sample
## https://github.com/Zygo/bees
## It's a default values, change it, if needed
# How to use?
# Copy this file to a new file name and adjust the UUID below
# Which FS will be used
#UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
UUID="0156a51d-8688-4494-90d3-c9c13de0aa6d"
## System Vars
# Change carefully
WORK_DIR=/run/bees/
MNT_DIR="$WORK_DIR/mnt/$UUID"
BEESHOME="$MNT_DIR/.beeshome"
BEESSTATUS="$WORK_DIR/$UUID.status"
## Options to apply, see `beesd --help` for details
# OPTIONS="--strip-paths --no-timestamps"
OPTIONS="--scan-mode 2"
## Bees DB size
# Hash Table Sizing
# sHash table entries are 16 bytes each
# (64-bit hash, 52-bit block number, and some metadata bits)
# Each entry represents a minimum of 4K on disk.
# unique data size hash table size average dedup block size
# 1TB 4GB 4K
# 1TB 1GB 16K
# 1TB 256MB 64K
# 1TB 16MB 1024K
# 64TB 1GB 1024K
#
# Size MUST be power of 16M
DB_SIZE=$((32*$AL16M)) # 1G in bytes
however running sudo beesd just prints the help information. Any help would be appreciated, thanks!
Could you try without the quotes around the UUID var content?
same thing with UUID=0156a51d-8688-4494-90d3-c9c13de0aa6d
ah, running sudo beesd 0156a51d-8688-4494-90d3-c9c13de0aa6d works fine, maybe I just misunderstood it's usage? just assumed it would take that from the config if it was present.
The beesd script works by looking up the UUID from all the config files and selecting the right one. Can this be closed then?
OTOH, maybe keep this open and we should provide better examples and docs for this.
I was wondering the same. So there should be one config for each UUID, and then bees will look in /etc/bees/*.conf for a file matching the UUID specified on the command line, beesd 0156a51d-8688-4494-90d3-c9c13de0aa6d? This could be made much clearer :D
Actually beesd should abolish uuid argument and accept only a config file as input.
Then you start each instance as: beesd home.conf beesd root.conf etc. UUID argument is error prone.