feat: bm runs all profiles, menu still available as backup-menu
This commit is contained in:
@@ -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")")
|
||||
|
||||
Reference in New Issue
Block a user