Improved documentation

This commit is contained in:
Philipp Woelfel
2025-11-15 23:50:05 -07:00
parent 5106197dc6
commit bcae740611
2 changed files with 12 additions and 12 deletions
+10 -11
View File
@@ -18,17 +18,16 @@ Script to check zfs snapshot counts and age of oldest most recent snapshot. Spec
## Options
```bash
-d, --dataset <dataset> Dataset to check (required, repeat for multiple)
-e, --exclude <dataset> Exclude dataset (repeat for multiple)
-p, --prefix <prefix> Snapshot prefix (default: zrepl_)
-f, --format <format> Timestamp format (see [below](#timestamp-formats--f))
-s, --max-snapshots <num> Max snapshots per dataset
-m, --max-age <duration> Max age (e.g., 31s, 17m, 24h)
-r, --recursive Include sub-datasets
-v, --verbose Show detailed table
-n, --err-for-no-snapshots Error if no snapshots found
```
- `-d, --dataset <dataset>`: Dataset to check (required; can be repeated for multiple)
- `-p, --prefix <prefix>`: Snapshot prefix (default: zrepl_)
- `-f, --format <format>`: Timestamp format (see [below](#timestamp-formats--f))
- `-s, --max-snapshots <num>`: Max snapshots per dataset
- `-m, --max-age <duration>`: Max age (e.g., 31s, 17m, 24h)
- `-r, --recursive`: Include sub-datasets
- `-e, --exclude <dataset>`: Exclude dataset (can be repeated for multiple)
- `-v, --verbose`: Show detailed table
- `-n, --err-for-no-snapshots`: Error if no snapshots found
- `-h, --help`: Show help message
## Timestamp Formats (`-f`)