{"id":18586256,"url":"https://github.com/savoirfairelinux/ansible-backup-cron","last_synced_at":"2026-03-14T19:20:42.082Z","repository":{"id":66097758,"uuid":"58096908","full_name":"savoirfairelinux/ansible-backup-cron","owner":"savoirfairelinux","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-14T18:54:38.000Z","size":32,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-05-16T06:36:06.276Z","etag":null,"topics":["ansible","ansible-role","backup"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/savoirfairelinux.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","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,"zenodo":null}},"created_at":"2016-05-05T02:02:43.000Z","updated_at":"2025-04-14T18:54:41.000Z","dependencies_parsed_at":"2025-05-16T06:43:51.080Z","dependency_job_id":null,"html_url":"https://github.com/savoirfairelinux/ansible-backup-cron","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/savoirfairelinux/ansible-backup-cron","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savoirfairelinux%2Fansible-backup-cron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savoirfairelinux%2Fansible-backup-cron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savoirfairelinux%2Fansible-backup-cron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savoirfairelinux%2Fansible-backup-cron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/savoirfairelinux","download_url":"https://codeload.github.com/savoirfairelinux/ansible-backup-cron/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savoirfairelinux%2Fansible-backup-cron/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268370867,"owners_count":24239780,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","ansible-role","backup"],"created_at":"2024-11-07T00:37:33.109Z","updated_at":"2026-03-14T19:20:37.020Z","avatar_url":"https://github.com/savoirfairelinux.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# backup-cron\n\nSets up a project for regular database/folder backups to a specified backup storage script (\nprobably [zbackup][ansible-zbackup]).\n\nThis role also sets up a restore script.\n\nIt also sets up a cron job to do call our backup script regularly. Of course, restoration is\nexpected to be triggered manually, so we don't set up any cron for it.\n\n## Requirements\n\n* Ansible 2.0+\n* Debian Jessie deployment target\n* A backup storage script that takes a tar file as stdin and properly backs it up\n* A backup storage script spits its latest tar file to stdout\n* Optionally, a script that dumps/restore a DB SQL file\n\n## Usage\n\n```\nrole: backup_cron\nbackup_cron_user: project_user\nbackup_cron_backup_script_path: /path/to/script_that_launches_the_backup\nbackup_cron_restore_script_path: /path/to/script_that_restores_backup_contents\nbackup_cron_storage_dump_script_path: /path/to/zbackup_dump_script\nbackup_cron_storage_restore_script_path: /path/to/zbackup_getlatest_script\nbackup_cron_dbdump_script: /path/to/script_that_dumps_sql\nbackup_cron_dbrestore_script: /path/to/script_that_restores_sql\nbackup_cron_folders:\n  - /path/to/foder_to_backup\n  - /and/another\nbackup_cron_enable_cron: yes\nbackup_cron_cron_args:\n  hour: 1\n```\n\n[ansible-zbackup]: https://github.com/savoirfairelinux/ansible-zbackup\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsavoirfairelinux%2Fansible-backup-cron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsavoirfairelinux%2Fansible-backup-cron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsavoirfairelinux%2Fansible-backup-cron/lists"}