feat: bm runs all profiles, menu still available as backup-menu

This commit is contained in:
Dmitry
2026-05-13 20:11:38 +03:00
parent c5d13169d1
commit f24af95184
2 changed files with 12 additions and 7 deletions
+11 -1
View File
@@ -44,13 +44,23 @@ _show_snapshots() {
resticprofile -n "$profile" snapshots 2>&1 | less
}
_run_all() {
for p in "${PROFILES[@]}"; do
_run_backup "$p"
done
}
main() {
if [[ "${1:-}" == "--all" ]]; then
_run_all
return
fi
if ! command -v fzf &>/dev/null; then
echo "fzf not found"
exit 1
fi
# Build profile list with last run info
local lines=()
for p in "${PROFILES[@]}"; do
lines+=("$(_profile_label "$p")")