mirror of
https://github.com/offen/docker-volume-backup.git
synced 2024-11-25 06:30:29 +01:00
fix blank variable when creating target
This commit is contained in:
parent
f82577fcb5
commit
0782af88f4
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user