2024-08-04 23:10:36 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
SCRIPT_ABS_LOCATION=$(realpath "$(dirname "${0}")")
|
|
|
|
|
|
|
|
# Define an array of application names
|
2024-12-28 18:47:30 +01:00
|
|
|
declare -a apps=("cryptpad" "immich" "duplicati" "nextcloud" "vaultwarden" "forgejo" "portainer")
|
2024-08-04 23:10:36 +02:00
|
|
|
|
|
|
|
# Function to execute the backup script for each application
|
|
|
|
backup_app() {
|
|
|
|
local app=$1
|
2024-12-29 15:08:09 +01:00
|
|
|
"$SCRIPT_ABS_LOCATION/$app/${app}-backup.sh"
|
2024-08-04 23:10:36 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
# Iterate over each app in the array and call the backup function
|
|
|
|
for app in "${apps[@]}"; do
|
|
|
|
backup_app "$app"
|
|
|
|
done
|
|
|
|
|