mirror of
https://github.com/offen/docker-volume-backup.git
synced 2026-04-27 18:55:36 +02:00
allow passing prefix to limit pruning ops
This commit is contained in:
@@ -105,6 +105,10 @@ echo "Will wait for next scheduled backup."
|
||||
|
||||
prune () {
|
||||
target=$1
|
||||
if [ ! -z "$BACKUP_PRUNING_PREFIX" ]; then
|
||||
target="$target/${BACKUP_PRUNING_PREFIX}"
|
||||
fi
|
||||
|
||||
rule_applies_to=$(
|
||||
mc rm $MC_GLOBAL_OPTIONS --fake --recursive --force \
|
||||
--older-than "${BACKUP_RETENTION_DAYS}d" \
|
||||
|
||||
Reference in New Issue
Block a user