Giter VIP home page Giter VIP logo

gcp-snapshotter's Introduction

GCP snapshotter

A tool written in bash automating snapshot creation and deletion for gcp

Can define multiple backup 'tiers' based on disk name regexp (+default tier) with different backup settings Creates the backup if the oldest backup is older than set interval

Settings available for each tier

  • disk name regexp (--regexp)
  • backup interval (--interval)
  • pruning periods (--pruning)

Retention (pruning) inspired by https://burp.grke.org/docs/retention.html

Examples

./gcp-snapshotter.sh --interval '1 day' --pruning 7

Uses only the default tier (no regexp parameter). Sets the backup once a day and keeps 7 days history

./gcp-snapshotter.sh --interval '1 day' --pruning 7 --regexp '(db|database|nfs|gluster).*data' --interval '24 hours' --pruning 7,4,4

Same as above but also defines a second backup tier with daily interval which keeps 7 daily backups 4 weekly backups and 4 monthly backups. See the burp retention description for the algorithm details

gcp-snapshotter's People

Contributors

gregy avatar

Watchers

 avatar  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.