Sign inSign up

brpaz/do-snapshot-pruner

By brpaz

•Updated over 6 years ago

Image
0

400

brpaz/do-snapshot-pruner repository overview

⁠DigitalOcean snapshot pruner

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

CI Status Codacy grade Code coverage 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.

Tag summary

Content type

Image

Digest

Size

8.2 MB

Last updated

over 6 years ago

docker pull brpaz/do-snapshot-pruner