howto abort all incomplete multipart uploads for a bucket

前端 未结 5 1573
一个人的身影
一个人的身影 2021-02-07 08:36

Sometimes multipart uploads hang or don\'t complete for some reason. In that case you are stuck with orphaned parts that are tricky to remove. You can list them with:

         


        
5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-07 09:18

    You can alternatively use Minio Client aka mc It is Open Source and compatible with AWS S3.

    To list all the incomplete upload on a associated bucket.

    $ mc ls -I s3/mybucketname
    

    To remove all incomplete uploads to a associated S3 bucket.

    $ mc rm -I -r --force s3/mybucketname
    

    I = incomplete r = recursive f = with force option

    Hope it helps.

    Disclaimer : I work for Minio.

提交回复
热议问题