Skip to content

Commit

Permalink
List objects recursively when selecting candidates from S3 (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
m90 authored Apr 15, 2022
1 parent e81c34b commit 1b1fc48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/backup/script.go
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@ func (s *script) pruneBackups() error {
candidates := s.minioClient.ListObjects(context.Background(), s.c.AwsS3BucketName, minio.ListObjectsOptions{
WithMetadata: true,
Prefix: filepath.Join(s.c.AwsS3Path, s.c.BackupPruningPrefix),
Recursive: true,
})

var matches []minio.ObjectInfo
Expand Down

0 comments on commit 1b1fc48

Please sign in to comment.