Skip to content

Commit e81c34b

Browse files
authored
Consider S3 Path when selecting candidates for pruning (#91)
1 parent 9c23767 commit e81c34b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/backup/script.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ func (s *script) pruneBackups() error {
536536
if s.minioClient != nil {
537537
candidates := s.minioClient.ListObjects(context.Background(), s.c.AwsS3BucketName, minio.ListObjectsOptions{
538538
WithMetadata: true,
539-
Prefix: s.c.BackupPruningPrefix,
539+
Prefix: filepath.Join(s.c.AwsS3Path, s.c.BackupPruningPrefix),
540540
})
541541

542542
var matches []minio.ObjectInfo

0 commit comments

Comments
 (0)