{"id":30487084,"url":"https://github.com/ome/ansible-role-mysql-backup","last_synced_at":"2026-02-15T22:32:24.751Z","repository":{"id":55622617,"uuid":"82073190","full_name":"ome/ansible-role-mysql-backup","owner":"ome","description":"Setup a cron job for regular full Mysql/Mariadb database dumps.","archived":false,"fork":false,"pushed_at":"2021-02-04T21:21:47.000Z","size":12,"stargazers_count":5,"open_issues_count":2,"forks_count":12,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-10-02T00:35:01.569Z","etag":null,"topics":["ansible","backup","database","mariadb","mysql"],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/ome/mysql_backup/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ome.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-15T15:07:23.000Z","updated_at":"2022-10-13T00:14:42.000Z","dependencies_parsed_at":"2022-08-15T04:40:48.494Z","dependency_job_id":null,"html_url":"https://github.com/ome/ansible-role-mysql-backup","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/ome/ansible-role-mysql-backup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ome%2Fansible-role-mysql-backup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ome%2Fansible-role-mysql-backup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ome%2Fansible-role-mysql-backup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ome%2Fansible-role-mysql-backup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ome","download_url":"https://codeload.github.com/ome/ansible-role-mysql-backup/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ome%2Fansible-role-mysql-backup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29490888,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T19:29:10.908Z","status":"ssl_error","status_checked_at":"2026-02-15T19:29:10.419Z","response_time":118,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","backup","database","mariadb","mysql"],"created_at":"2025-08-24T17:02:05.901Z","updated_at":"2026-02-15T22:32:24.746Z","avatar_url":"https://github.com/ome.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"MySQL Backup\n============\n\n[![Actions Status](https://github.com/ome/ansible-role-mysql-backup/workflows/Molecule/badge.svg)](https://github.com/ome/ansible-role-mysql-backup/actions)\n[![Ansible Role](https://img.shields.io/ansible/role/41994.svg)](https://galaxy.ansible.com/ome/mysql_backup/)\n\nSetup a cron job for regular full Mysql/Mariadb database dumps.\n\nAssumes `root` has password-less access to all databases.\n\n\nDependencies\n------------\n\nThis requires a cron daemon to already be running.\nThis should be the default on most systems.\n\n\nRole Variables\n--------------\n\nRequired:\n- `mysql_backup_dir`: Save backups in this directory\n\nOptional:\n- `mysql_backup_filename_format`: A filename containing unix `date` format sequences, default `{{ ansible_hostname }}-%Y%m%d-%H%M%S.mysqldump`.\n  This can be used to automatically overwrite backups on a rolling basis.\n- `mysql_backup_frequency`: This must match one of the standard `/etc/cron.*` directories, typically either `daily` (default), `hourly`, `weekly` or `monthly`.\n- `mysql_backup_minimum_expected_size`: The minimum size in bytes of the backup file.\n  The cron job will return an error if the file is smaller than this.\n\n\nExample playbook\n----------------\n\n    # This will name the backup file /nfs/backups/HOSTNAME-Mon.mysqldump\n    # where Mon will be replaced by the abbreviated day of the week, resulting\n    # in daily backups on a rolling weekly cycle\n    - hosts: mysql-servers\n      roles:\n      - role: ome.mysql_backup\n        mysql_backup_dir: /nfs/backups\n        mysql_backup_filename_format: \"{{ ansible_hostname }}-%a.mysqldump\"\n        mysql_backup_minimum_expected_size: 100000\n\n\nAuthor Information\n------------------\n\nome-devel@lists.openmicroscopy.org.uk\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fome%2Fansible-role-mysql-backup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fome%2Fansible-role-mysql-backup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fome%2Fansible-role-mysql-backup/lists"}