Git Product home page Git Product logo

s3wipe's Issues

Minor bug: Float returned by listThreads

In line 208:
listThreads = args.maxthreads / 3

can return a float value which causes an error

For example:

INFO: Starting 66.66666666666666 delete threads...

Modify listThreads to force an integer value and it will work:
listThreads = int(args.maxthreads / 3)

large ammount of unneeded whitespace

s3wipe has a large number of lines with trailing spaces and a few lines that are only spaces -- this is pretty painful if your text editor is configured to highlight unneeded whitespace. Would a PR to clean this up be accepted?

batchsize and maxqueue recommendations?

Can we get a little more help for when to modify batchsize and maxqueue from the defaults? When deleting millions of objects I just use the defaults and wait. It seems to dynamically adjust somehow. Can you throw something in the README when you get a chance? Thanks. Awesome script by the way!

Brian

Num threads is number of subdirectories

This is a problem if the number of subdirectories is high, exhausting the number of available file descriptors. Suggest setting a maximum, say --max-threads=100.

Can't use buckets with . in them

Read up here: boto/boto#2836

I fixed this by adding this in the headers:

import ssl
if hasattr(ssl, '_create_unverified_context'):
ssl._create_default_https_context = ssl._create_unverified_context

Enable S3 Bucket version before delete files

Hey man,

I used your cli to delete 170TB of data and work fine, but the only problem in line 196 you enable the Bucket versioning then, in the end, I don't delete 170TB of that I only added the delete mark in all files.
I'm not sure why you are doing that, because you can't delete bucket with versions file inside.

Deleting s3://bucket/foo deletes s3://bucket/foo2

I was trying to delete a directory called foo, but if I passed s3://bucket/foo/, it would not proceed, and if I passed s3://bucket/foo it would also delete s3://bucket/foo2

I worked around it by deleting s3://bucket/foo/1, s3://bucket/foo/2 and so-forth for every first character.

Two possible solutions: allow trailing slashes, or assuming a trailing slash after the input (i.e. don't delete partial paths).

Make the script pip-installable

So that I can declare it as a development dependency using Poetry.

There is an s3wipe package on PyPI, but it's not mentioned in the README, so I don't trust it.

Currently I'm working around it by commiting a copy of the script to my own repo like this:

curl "https://raw.githubusercontent.com/eschwim/s3wipe/80cdb19655a4db48830c50969a43dfa36b657015/s3wipe" > bin/s3wipe
chmod +x bin/s3wipe

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.