Git Product home page Git Product logo

ansible-role-gobackup's Introduction

Build Status

Ansible Role for GoBackup

An ansible role that enables backups using gobackup. It allows you to configure the backup system for MySQL/PostgreSQL/MongoDB/Redis databases and automate it with the Cron utility. Various storages are available.

Requirements

None.

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

gobackup_user: "deploy"
gobackup_version: "0.6.2"
gobackup_url: "https://github.com/huacnlee/gobackup/releases/download/{{ gobackup_version }}/gobackup-linux-amd64.tar.gz"

gobackup_bin_path: "/usr/local/bin"
gobackup_config_path: "/etc/gobackup"
gobackup_data_path: "/var/backups"

gobackup_config: {}
gobackup_cron: {}

You are able to describe any number of backup models. Each of them requires the following information to be specified:

## Models:
gobackup_config:
  models:
    my_app:
      compress_with:
        type: tgz
      store_with:
        type: local
        keep: 20
        path: /data/backups
      databases:
        my_app:
          database: my_app_production
          type: mysql
          host: localhost
          port: 3306
          username: root
      archive:
        includes:
          - /var/www/my_app/uploads
          - /var/www/my_app/shared/ssl

The cron job can include the following parameters:

  • minute - minute when the job should run (0-59, *, */2, etc);
  • hour - hour when the job should run (0-23, *', */2, etc);
  • day - day of the month when the job should run (1-31, *, */2, etc);
  • weekday - day of the week when the job should run (0-6 for Sunday-Saturday, *, etc).
gobackup_cron:
  model_name:
    minute:
    hour:
    day:
    weekday:

Databases

The role provides support for databases:

  • MySQL
  • PostgreSQL
  • MongoDB
  • Redis

License

Licensed under the MIT License.

ansible-role-gobackup's People

Contributors

merifri avatar

Watchers

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