| Crates.io | btrfs-usage-monitor |
| lib.rs | btrfs-usage-monitor |
| version | 0.1.2 |
| created_at | 2020-07-19 12:20:10.476805+00 |
| updated_at | 2022-05-07 10:12:20.126225+00 |
| description | A simple Btrfs disk space usage monitor |
| homepage | https://github.com/willemw12/btrfs-usage-monitor |
| repository | https://github.com/willemw12/btrfs-usage-monitor |
| max_upload_size | |
| id | 266831 |
| size | 56,897 |
A simple Btrfs disk space usage monitor.
There is also a version written in Go.
Print a warning if the Btrfs filesystem data usage drops below a free limit percentage.
The following steps require that Rust is installed. The install path used here ($HOME/bin) is an example.
To install from crates.io, run:
$ cargo install btrfs-usage-monitor
To install to a specific folder, do one of the following.
Install from crates.io to $HOME/bin:
$ cargo install --root $HOME btrfs-usage-monitor
Install from GitHub to $HOME/bin, for example, the latest commit:
$ cargo install --root $HOME --git https://github.com/willemw12/btrfs-usage-monitor
or
$ git clone https://github.com/willemw12/btrfs-usage-monitor
$ cd btrfs-usage-monitor
$ cargo build --release --out-dir=$HOME/bin
Print a warning if Btrfs filesystem data usage drops below the free limit percentage
USAGE:
btrfs-usage-monitor <path> <free-limit-percentage>
ARGS:
<path> Path to a subvolume or folder on the Btrfs filesystem
<free-limit-percentage> Maximum free filesystem data usage in percentage
# btrfs-usage-monitor /mnt/btrfs 10
WARNING /mnt/btrfs free: 752.58GiB (min: 681.47GiB), 9% (limit: 10%)
GPL-3.0 or later