Giter VIP home page Giter VIP logo

ansible-role-backup's Introduction

skrepr

Ansible Role Backup

Releases LICENSE CI Issues PR Commits Stars Forks

About

This Ansible role is used for deploying a backup script on a Debian server and then putting the backups in an S3 bucket on AWS.

Ansible Role Ansible Role Ansible Quality Score

Requirements

  • SSH access to the server
  • aws-cli on your computer
  • pip3 install -r requirements.txt
  • ansible-galaxy collection install -r requirements.yml

Role Variables

---


customer: yourcustomer # used for naming resources
app: myapplication # Used for naming resources
jira_key: APP # Used for tagging resource in AWS

# S3 settings
aws_profile: default
s3_human_readable_sizes: true

# MySQL database backup options.
backup_mysql_user: backup
backup_mysql_password: y0urverys3curep4ss

# Script settings
retentiontime: 30 days
directory: daily
minimal_backups: 5

# Backup cron job options.
backup_cron_job_state: present
backup_hour: "3"
backup_minute: "00"

# User under which backup jobs will run.
backup_user: root

# Path to where backups configuration will be stored.
backup_path: /{{ backup_user }}/backup

Example Playbook

#!/usr/bin/env ansible-playbook


- hosts: production
  name: Database backup to S3 script
  become: true
  become_user: root

  roles:
    - skrepr.backup

License

MIT / BSD

Author Information

This role was created in 2023 by Jeroen van der Meulen, commisioned by Skrepr

ansible-role-backup's People

Contributors

jeroenvandermeulen avatar amreshh avatar

Stargazers

Evert Jan Hakvoort avatar Michael Erkens avatar  avatar

Watchers

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