{"id":16779801,"url":"https://github.com/petermosmans/ansible-role-backup","last_synced_at":"2026-01-03T02:53:27.245Z","repository":{"id":75894820,"uuid":"76514928","full_name":"PeterMosmans/ansible-role-backup","owner":"PeterMosmans","description":"An ansible role to backup databases and (web) content from a server, and to transfer the backup files to a local destination","archived":false,"fork":false,"pushed_at":"2017-07-09T03:41:29.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-23T06:29:06.133Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PeterMosmans.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-15T02:10:05.000Z","updated_at":"2024-08-08T13:13:53.000Z","dependencies_parsed_at":"2023-07-12T00:16:54.996Z","dependency_job_id":null,"html_url":"https://github.com/PeterMosmans/ansible-role-backup","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterMosmans%2Fansible-role-backup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterMosmans%2Fansible-role-backup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterMosmans%2Fansible-role-backup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterMosmans%2Fansible-role-backup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PeterMosmans","download_url":"https://codeload.github.com/PeterMosmans/ansible-role-backup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243924055,"owners_count":20369647,"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":[],"created_at":"2024-10-13T07:32:26.549Z","updated_at":"2026-01-03T02:53:27.218Z","avatar_url":"https://github.com/PeterMosmans.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"Ansible Role: backup\n=========\n\nBuild status for this role: [![Build Status](https://travis-ci.org/PeterMosmans/ansible-role-backup.svg)](https://travis-ci.org/PeterMosmans/ansible-role-backup)\n\nThis role backs up databases and (web) directories from a server, and transfers the backup files to a local destination.\n\nRequirements\n------------\n\nIf you want to backup MySQL databases, then the server needs to have the Python library `mysql-python` installed.\n\nRole Variables\n--------------\n\nAvailable variables are listed below, along with their default values. The defaults can be found in ```defaults/main.yml```.\n\n**backup_directories**: A list of name / src pairs of directories that will be backed up. Each item contains the full source directory (src), and the corresponding backup name (name). Example:\n```\n- backup_directories:\n  - name: mywebsite\n    src: /var/www/html\n```\n\n**backup_location_local**: The directory name of the *local* destination, where the backup files will be transferred to. Note that a subdirectory will be created, with the value of the `inventory_hostname` variable. Defaults to `/backup`.\n\n**backup_location_remote**: The temporary location of the backup files on the *remote* server. Defaults to `/tmp/backup`\n\n**backup_mysql_databases**: A list of MySQL databases that will be backed up. The corresponding backup file will be named `\u003cname\u003e.sql.gz`.\n\n\nDependencies\n------------\n\nNone.\n\nExample Playbook\n----------------\n```\n- hosts: all\n  become: yes\n  become_method: sudo\n  roles:\n    - role: PeterMosmans.backup\n  vars:\n    - backup_mysql_databases:\n      - mydatabase\n    - backup_directories:\n      - name: mywebsite\n        src: /var/www/mywebsite\n```\n\nLicense\n-------\nGPLv3\n\n\nAuthor Information\n------------------\nCreated by Peter Mosmans. Feedback always welcome.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetermosmans%2Fansible-role-backup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpetermosmans%2Fansible-role-backup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetermosmans%2Fansible-role-backup/lists"}