Google Cloud Snapshot Cleaner v0.2.0

Last week, in a previous article, I’ve introduced you to gcsc (Google Cloud Snapshot Cleaner). I’ve just released the version 0.2.0 of it, and it has a lot of clean-ups done, both in the code and the user experience.

There are also some new features, but the one I’m more satisfied with, is the introduction of the http subcommand, to expose an HTTP server. The webserver will listen to any URI and Methods, and the request will trigger the snapshot clean-up.

To reflect the new changes, the help also changed:

Usage:
  gcsc [command]

Available Commands:
  clean       execute a cleaning
  help        Help about any command
  http        listen to HTTP port

Flags:
      --automatic           Include automatic backups (default true)
      --dry-run             Dry run mode
  -h, --help                help for gcsc
      --manual              Include manual backups
  -p, --project-id string   Google Cloud Project ID

Use "gcsc [command] --help" for more information about a command.

This is a very interesting feature in my opinion, since it can now be put in Google Cloud Run or other similar platforms. It’s not yet completely optimized this usage, but hopefully in the next releases it will improve enough to become a seamless deployment.