Command Line tool to automatically delete old volume snapshots on DigitalOcean.
DigitalOcean doesnΒ΄t provide an automatic way to delete old snapshots.
This recommended way is to download the latest binary for your system from the Releases page.
You can also use our Docker Image.
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
make test
π€ Bruno Paz
- Website: brunopaz.net
- Github: @brpaz
- Twitter: @brunopaz88
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
If this project have been useful for you, I would be grateful to have your support.
Give a βοΈ to the project, or just:
Copyright Β© 2019 Bruno Paz.
This project is MIT licensed.