Work-in-progress: split S3 & SSH storage

This commit is contained in:
3wc
2021-11-09 12:37:56 +02:00
parent f5e87f396a
commit ed76e6164b
6 changed files with 57 additions and 7 deletions

View File

@ -11,6 +11,9 @@ restic_repo="sftp:$restic_sftp_host:/$server_name"
backup_path="${BACKUP_DEST:?BACKUP_DEST not set}"
if [ -n "$SERVICES_OVERRIDE" ]; then
# this is fine because docker service names should never include spaces or
# glob characters
# shellcheck disable=SC2206
services=($SERVICES_OVERRIDE)
else
mapfile -t services < <(docker service ls --format '{{ .Name }}')