mirror of
https://github.com/offen/docker-volume-backup.git
synced 2024-11-22 13:20:29 +01:00
Call ListObjects without WithMetadata option (#165)
This commit is contained in:
parent
92b888e72c
commit
907deecdd0
@ -113,9 +113,8 @@ func (b *s3Storage) Copy(file string) error {
|
|||||||
// Prune rotates away backups according to the configuration and provided deadline for the S3/Minio storage backend.
|
// Prune rotates away backups according to the configuration and provided deadline for the S3/Minio storage backend.
|
||||||
func (b *s3Storage) Prune(deadline time.Time, pruningPrefix string) (*storage.PruneStats, error) {
|
func (b *s3Storage) Prune(deadline time.Time, pruningPrefix string) (*storage.PruneStats, error) {
|
||||||
candidates := b.client.ListObjects(context.Background(), b.bucket, minio.ListObjectsOptions{
|
candidates := b.client.ListObjects(context.Background(), b.bucket, minio.ListObjectsOptions{
|
||||||
WithMetadata: true,
|
Prefix: filepath.Join(b.DestinationPath, pruningPrefix),
|
||||||
Prefix: filepath.Join(b.DestinationPath, pruningPrefix),
|
Recursive: true,
|
||||||
Recursive: true,
|
|
||||||
})
|
})
|
||||||
|
|
||||||
var matches []minio.ObjectInfo
|
var matches []minio.ObjectInfo
|
||||||
|
Loading…
Reference in New Issue
Block a user