Skip to content

Commit

Permalink
Consider S3 Path when selecting candidates for pruning (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
m90 authored Apr 13, 2022
1 parent 9c23767 commit e81c34b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/backup/script.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e81c34b

Please sign in to comment.