Git Product home page Git Product logo

s3_utilities's Introduction

Restoring buckets and directories from S3

Uses boto to restore accidentally deleted objects from versioned Amazon standard IA S3 bucket.

To restore an entire bucket:

$ content_utilities/scripts python s3_undelete.py -b some_test_bucket -u

To restore a directory within a bucket:

$ content_utilities/scripts python s3_undelete.py -b some_test_bucket -f some\ test\ folder -u

To restore one object within a directory:

$ content_utilities/scripts python s3_undelete.py -b some_test_bucket -k “some/test/file.jpg” -u

note: you must have the entire key name (including directories) in order to perform this operation.

To delete an object:

$ content_utilities/scripts python s3_undelete.py -b some_test_bucket -k “some/test/file.jpg” -d

this will prompt the user to confirm before deleting

To delete a folder:

$ content_utilities/scripts python s3_undelete.py -b some_test_bucket -f some\ test \folder -d

this will prompt the user to confirm before deleting each object within a directory

MIT License 2016, Metabrite Inc. [email protected]

s3_utilities's People

Contributors

hollylemos avatar

Watchers

 avatar

Forkers

muad-dweeb

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.