From 0103c85b55f7946bd7e57bdb51df6402946ca19b Mon Sep 17 00:00:00 2001 From: Frederik Ring Date: Wed, 13 Apr 2022 16:46:13 +0200 Subject: [PATCH] Consider S3 Path when selecting candidates for pruning --- cmd/backup/script.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/backup/script.go b/cmd/backup/script.go index da82a8c1..896241cd 100644 --- a/cmd/backup/script.go +++ b/cmd/backup/script.go @@ -536,7 +536,7 @@ func (s *script) pruneBackups() error { if s.minioClient != nil { candidates := s.minioClient.ListObjects(context.Background(), s.c.AwsS3BucketName, minio.ListObjectsOptions{ WithMetadata: true, - Prefix: s.c.BackupPruningPrefix, + Prefix: filepath.Join(s.c.AwsS3Path, s.c.BackupPruningPrefix), }) var matches []minio.ObjectInfo