backup-automation/full-backup.sh
ZoopaMario 0005432b69
Some checks failed
Check Commit Messages / check-commit-message (pull_request) Successful in 15s
Lint Bash Scripts / lint-bash (pull_request) Failing after 24s
Refactor code to make linter runs succeed
This commit refactors the codebase in order to make the shellcheck
workflow pass.

It also makes shellcheck ignore common info messages, specifically:
- https://www.shellcheck.net/wiki/SC1091 -- Not following: ./../logger.sh: op...
- https://www.shellcheck.net/wiki/SC2015 -- Note that A && B || C is not if-t...
2024-12-29 15:18:41 +01:00

19 lines
471 B
Bash
Executable file

#!/bin/bash
SCRIPT_ABS_LOCATION=$(realpath "$(dirname "${0}")")
# Define an array of application names
declare -a apps=("cryptpad" "immich" "duplicati" "nextcloud" "vaultwarden" "forgejo" "portainer")
# Function to execute the backup script for each application
backup_app() {
local app=$1
"$SCRIPT_ABS_LOCATION/$app/${app}-backup.sh"
}
# Iterate over each app in the array and call the backup function
for app in "${apps[@]}"; do
backup_app "$app"
done