{"id":19468299,"url":"https://github.com/skrepr/ansible-role-backup","last_synced_at":"2025-04-25T11:32:22.967Z","repository":{"id":144186019,"uuid":"404602197","full_name":"skrepr/ansible-role-backup","owner":"skrepr","description":"Ansible role for creating backups of your MySQL databases on the server","archived":false,"fork":false,"pushed_at":"2023-11-15T15:54:36.000Z","size":56,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-03T20:37:16.867Z","etag":null,"topics":["ansible","ansible-role","backup"],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/skrepr/backup","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skrepr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-09T05:52:42.000Z","updated_at":"2023-03-23T14:02:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"a9f73f56-1cd0-4d96-9788-69ea5b3836f5","html_url":"https://github.com/skrepr/ansible-role-backup","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skrepr%2Fansible-role-backup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skrepr%2Fansible-role-backup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skrepr%2Fansible-role-backup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skrepr%2Fansible-role-backup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skrepr","download_url":"https://codeload.github.com/skrepr/ansible-role-backup/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250808335,"owners_count":21490650,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","ansible-role","backup"],"created_at":"2024-11-10T18:40:31.156Z","updated_at":"2025-04-25T11:32:22.603Z","avatar_url":"https://github.com/skrepr.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca href=\"https://skrepr.com/\"\u003e\n  \u003cp align=\"center\"\u003e\n    \u003cimg width=\"200\" height=\"100\" src=\"https://skrepr.com/wp-content/uploads/2021/10/skrepr_logo_liggend.svg\" alt=\"skrepr\" /\u003e\n  \u003c/p\u003e\n\u003c/a\u003e\n\u003ch1 align=\"center\"\u003eAnsible Role Backup\u003c/h1\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://github.com/skrepr/ansible-role-backup/releases\"\u003e\u003cimg src=\"https://img.shields.io/github/release/skrepr/ansible-role-backup.svg\" alt=\"Releases\"/\u003e\u003c/a\u003e\u003ca\u003e \u003c/a\u003e\n  \u003ca href=\"https://github.com/skrepr/ansible-role-backup/blob/main/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/skrepr/ansible-role-backup\" alt=\"LICENSE\"/\u003e\u003c/a\u003e\u003ca\u003e \u003c/a\u003e\n  \u003ca href=\"https://github.com/skrepr/ansible-role-backup/actions/workflows/ci.yml\"\u003e\u003cimg src=\"https://github.com/skrepr/ansible-role-backup/actions/workflows/release.yml/badge.svg\" alt=\"CI\"/\u003e\u003c/a\u003e\u003ca\u003e \u003c/a\u003e\n  \u003ca href=\"https://github.com/skrepr/ansible-role-backup/issues\"\u003e\u003cimg src=\"https://img.shields.io/github/issues/skrepr/ansible-role-backup.svg\" alt=\"Issues\"/\u003e\u003c/a\u003e\u003ca\u003e \u003c/a\u003e\n  \u003ca href=\"https://github.com/skrepr/ansible-role-backup/pulls\"\u003e\u003cimg src=\"https://img.shields.io/github/issues-pr/skrepr/ansible-role-backup.svg\" alt=\"PR\"/\u003e\u003c/a\u003e\u003ca\u003e \u003c/a\u003e\n  \u003ca href=\"https://github.com/skrepr/ansible-role-backup/commits\"\u003e\u003cimg src=\"https://img.shields.io/github/commit-activity/m/skrepr/ansible-role-backup\" alt=\"Commits\"/\u003e\u003c/a\u003e\u003ca\u003e \u003c/a\u003e\n  \u003ca href=\"https://github.com/skrepr/ansible-role-backup/stars\"\u003e\u003cimg src=\"https://img.shields.io/github/stars/skrepr/ansible-role-backup.svg\" alt=\"Stars\"/\u003e\u003c/a\u003e\u003ca\u003e \u003c/a\u003e\n  \u003ca href=\"https://github.com/skrepr/ansible-role-backup/releases\"\u003e\u003cimg src=\"https://img.shields.io/github/forks/skrepr/ansible-role-backup.svg\" alt=\"Forks\"/\u003e\u003c/a\u003e\u003ca\u003e \u003c/a\u003e\n\u003c/div\u003e\n\n# About\n\nThis Ansible role is used for deploying a backup script on a Debian server and then putting the backups in an S3 bucket on AWS.\n\n[![Ansible Role](https://img.shields.io/ansible/role/26348)](https://galaxy.ansible.com/skrepr/backup)\n[![Ansible Role](https://img.shields.io/ansible/role/d/26348)](https://galaxy.ansible.com/skrepr/backup)\n[![Ansible Quality Score](https://img.shields.io/ansible/quality/26348)](https://galaxy.ansible.com/skrepr/backup)\n\n## Requirements\n\n- SSH access to the server\n- aws-cli on your computer\n- `pip3 install -r requirements.txt `\n- `ansible-galaxy collection install -r requirements.yml`\n\n## Role Variables\n\n```yaml\n---\n\n\ncustomer: yourcustomer # used for naming resources\napp: myapplication # Used for naming resources\njira_key: APP # Used for tagging resource in AWS\n\n# S3 settings\naws_profile: default\ns3_human_readable_sizes: true\n\n# MySQL database backup options.\nbackup_mysql_user: backup\nbackup_mysql_password: y0urverys3curep4ss\n\n# Script settings\nretentiontime: 30 days\ndirectory: daily\nminimal_backups: 5\n\n# Backup cron job options.\nbackup_cron_job_state: present\nbackup_hour: \"3\"\nbackup_minute: \"00\"\n\n# User under which backup jobs will run.\nbackup_user: root\n\n# Path to where backups configuration will be stored.\nbackup_path: /{{ backup_user }}/backup\n```\n\n## Example Playbook\n\n```yaml\n#!/usr/bin/env ansible-playbook\n\n\n- hosts: production\n  name: Database backup to S3 script\n  become: true\n  become_user: root\n\n  roles:\n    - skrepr.backup\n\n```\n\n## License\n\nMIT / BSD\n\n## Author Information\n\nThis role was created in 2023 by [Jeroen van der Meulen](https://github.com/jeroenvandermeulen), commisioned by [Skrepr](https://skrepr.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskrepr%2Fansible-role-backup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskrepr%2Fansible-role-backup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskrepr%2Fansible-role-backup/lists"}