Compare commits

..

1 commit

Author SHA1 Message Date
ZoopaMario 0e985dc381 Refactor code to make linter runs succeed
Some checks failed
Lint Bash Scripts / lint-bash (push) Failing after 27s
Check Commit Messages / check-commit-message (pull_request) Successful in 14s
Lint Bash Scripts / lint-bash (pull_request) Failing after 24s
This commit refactors the codebase in order to make the shellcheck
workflow pass.
2024-12-29 19:20:21 +01:00
7 changed files with 6 additions and 8 deletions

View file

@ -11,7 +11,7 @@ source "$SCRIPT_ABS_LOCATION/../logger.sh"
CONTAINER="cryptpad"
BACKUP_CONTAINER="duplicati"
# shellcheck disable=SC2034
# Log file
LOG_FILE="$SCRIPT_ABS_LOCATION/cryptpad-backup.log"
SOURCE_DIR="/mnt/data/cryptpad"

View file

@ -12,8 +12,6 @@ SOURCE_DIR="/mnt/data/duplicati"
MAX_BACKUPS=7
BACKUP_FOLDER=""
SSH_KEY="${SSH_KEY:-$HOME/.ssh/id_rsa}"
# shellcheck disable=SC2034
LOG_FILE="$SCRIPT_ABS_LOCATION/duplicati-backup.log"
# Override with command-line arguments

View file

@ -11,7 +11,7 @@ source "$SCRIPT_ABS_LOCATION/../logger.sh"
APP_CONTAINER="forgejo"
BACKUP_CONTAINER="duplicati"
# shellcheck disable=SC2034
# Log file
LOG_FILE="$SCRIPT_ABS_LOCATION/forgejo-backup.log"
SOURCE_DIR="/mnt/data/forgejo"

View file

@ -11,7 +11,7 @@ source "$SCRIPT_ABS_LOCATION/../logger.sh"
DB_CONTAINER="immich_postgres"
BACKUP_CONTAINER="duplicati"
# shellcheck disable=SC2034
# Log file
LOG_FILE="$SCRIPT_ABS_LOCATION/immich-backup.log"
# Database Settings

View file

@ -12,7 +12,7 @@ APP_CONTAINER="nextcloud-app"
DB_CONTAINER="nextcloud-db"
BACKUP_CONTAINER="duplicati"
# shellcheck disable=SC2034
# Log file
LOG_FILE="$SCRIPT_ABS_LOCATION/nextcloud-backup.log"
# Database Settings

View file

@ -11,7 +11,7 @@ source "$SCRIPT_ABS_LOCATION/../logger.sh"
APP_CONTAINER="portainer"
BACKUP_CONTAINER="duplicati"
# shellcheck disable=SC2034
# Log file
LOG_FILE="$SCRIPT_ABS_LOCATION/portainer-backup.log"
SOURCE_DIR="/volumes/portainer"

View file

@ -10,7 +10,7 @@ source "$SCRIPT_ABS_LOCATION/../logger.sh"
# Container Names
BACKUP_CONTAINER="duplicati"
# shellcheck disable=SC2034
# Log file
LOG_FILE="$SCRIPT_ABS_LOCATION/vaultwarden-backup.log"
SOURCE_DIR="/mnt/data/vaultwarden"