Consider S3 Path when selecting candidates for pruning (#91)

This commit is contained in:
Frederik Ring 2022-04-13 17:09:37 +02:00 committed by GitHub
parent 9c23767fce
commit e81c34b8fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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