Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/skrepr/ansible-role-backup
Ansible role for creating backups of your MySQL databases on the server
https://github.com/skrepr/ansible-role-backup
ansible ansible-role backup
Last synced: 9 days ago
JSON representation
Ansible role for creating backups of your MySQL databases on the server
- Host: GitHub
- URL: https://github.com/skrepr/ansible-role-backup
- Owner: skrepr
- License: mit
- Created: 2021-09-09T05:52:42.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-15T15:54:36.000Z (about 1 year ago)
- Last Synced: 2023-11-15T16:47:47.965Z (about 1 year ago)
- Topics: ansible, ansible-role, backup
- Language: Shell
- Homepage: https://galaxy.ansible.com/skrepr/backup
- Size: 52.7 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
Ansible Role Backup
# 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](https://img.shields.io/ansible/role/26348)](https://galaxy.ansible.com/skrepr/backup)
[![Ansible Role](https://img.shields.io/ansible/role/d/26348)](https://galaxy.ansible.com/skrepr/backup)
[![Ansible Quality Score](https://img.shields.io/ansible/quality/26348)](https://galaxy.ansible.com/skrepr/backup)## 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
```yaml
---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
```yaml
#!/usr/bin/env ansible-playbook- hosts: production
name: Database backup to S3 script
become: true
become_user: rootroles:
- skrepr.backup```
## License
MIT / BSD
## Author Information
This role was created in 2023 by [Jeroen van der Meulen](https://github.com/jeroenvandermeulen), commisioned by [Skrepr](https://skrepr.com)