Skip to content

Commit 1b1fc48

Browse files
authored
List objects recursively when selecting candidates from S3 (#92)
1 parent e81c34b commit 1b1fc48

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/backup/script.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,7 @@ func (s *script) pruneBackups() error {
537537
candidates := s.minioClient.ListObjects(context.Background(), s.c.AwsS3BucketName, minio.ListObjectsOptions{
538538
WithMetadata: true,
539539
Prefix: filepath.Join(s.c.AwsS3Path, s.c.BackupPruningPrefix),
540+
Recursive: true,
540541
})
541542

542543
var matches []minio.ObjectInfo

0 commit comments

Comments
 (0)