Giter Site home page Giter Site logo

codacy-badger / do-snapshot-pruner Goto Github PK

View Code? Open in Web Editor NEW

This project forked from brpaz/do-snapshot-pruner

0.0 0.0 0.0 0 B

Command Line tool to automatically delete old Digital Ocean snapshots

License: MIT License

Dockerfile 13.72% Makefile 13.29% Go 73.00%

do-snapshot-pruner's Introduction

DigitalOcean snapshot pruner

Command Line tool to automatically delete old volume snapshots on DigitalOcean.

CI Status GitHub release Go Report Card License

Conventional Commits

Motivation

DigitalOcean doesnΒ΄t provide an automatic way to delete old snapshots.

Install

This recommended way is to download the latest binary for your system from the Releases page.

You can also use our Docker Image.

Usage

do-snapshot-pruner -n <days> -t <do_token>

Where:

  • "n" -> The number of days before current date to delete. For Exemple if you see this value with "3", the tool will delete all the snaphots older than 3 days.
  • "t" -> The DigitalOcean API token. You can get yours here. Optionally you can also set the "DO_TOKEN" envrionment variable.

Or with docker:

docker run -it brpaz/do-snapshot-pruner:latest -t <do_token> -n 5

Run tests

make test

Author

πŸ‘€ Bruno Paz

🀝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check issues page.

Show your support

If this project have been useful for you, I would be grateful to have your support.

Give a ⭐️ to the project, or just:

Buy Me A Coffee

πŸ“ License

Copyright Β© 2019 Bruno Paz.

This project is MIT licensed.

do-snapshot-pruner's People

Contributors

brpaz avatar

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.