fix blank variable when creating target

This commit is contained in:
Frederik Ring 2021-08-19 16:35:21 +02:00
parent f82577fcb5
commit 0782af88f4

View File

@ -141,7 +141,7 @@ if [ ! -z "$BACKUP_RETENTION_DAYS" ]; then
sleep "$BACKUP_PRUNING_LEEWAY" sleep "$BACKUP_PRUNING_LEEWAY"
if [ ! -z "$AWS_S3_BUCKET_NAME" ]; then if [ ! -z "$AWS_S3_BUCKET_NAME" ]; then
info "Pruning old backups from remote storage" info "Pruning old backups from remote storage"
prune "backup-target/$bucket" prune "backup-target/$AWS_S3_BUCKET_NAME"
fi fi
if [ -d "$BACKUP_ARCHIVE" ]; then if [ -d "$BACKUP_ARCHIVE" ]; then
info "Pruning old backups from local archive" info "Pruning old backups from local archive"