backup-automation/forgejo/forgejo-backup.sh
ZoopaMario 9390804720
All checks were successful
Lint Bash Scripts / lint-bash (push) Successful in 22s
Check Commit Messages / check-commit-message (pull_request) Successful in 12s
Lint Bash Scripts / lint-bash (pull_request) Successful in 24s
WIP Refactor code base
Add a library file containing common logic to be sourced by individual backup scripts
2024-12-30 01:57:48 +01:00

31 lines
653 B
Bash
Executable file

#!/bin/bash
SCRIPT_ABS_LOCATION="$(realpath "$(dirname "$0")")"
# shellcheck disable=SC1090
source "$SCRIPT_ABS_LOCATION/forgejo-backup.env"; /
# shellcheck disable=SC1090
source "$SCRIPT_ABS_LOCATION/../logger.sh"; /
# shellcheck disable=SC1090
source "$SCRIPT_ABS_LOCATION/../common-backup.sh"
# shellcheck disable=SC2034
LOG_FILE="$SCRIPT_ABS_LOCATION/forgejo-backup.log"
stop_container "$APP_CONTAINER"
run_duplicati_backup \
"$BACKUP_CONTAINER" \
"$BACKUP_DESTINATION" \
"forgejo" \
7 \
"$SFTP_USERNAME" \
"$SFTP_PASSWORD" \
"$BACKUP_ENCR_PASSPHRASE" \
"$SFTP_FINGERPRINT" \
"$SOURCE_DIR"
start_container "$APP_CONTAINER"