{"id":24884246,"url":"https://github.com/dreknix/ansible-collection-restic","last_synced_at":"2025-03-27T09:42:38.266Z","repository":{"id":161739446,"uuid":"613956800","full_name":"dreknix/ansible-collection-restic","owner":"dreknix","description":"Ansible Collection for restic backup","archived":false,"fork":false,"pushed_at":"2025-01-30T20:09:15.000Z","size":40,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T14:32:43.452Z","etag":null,"topics":["ansible","ansible-collection","restic"],"latest_commit_sha":null,"homepage":"","language":"Jinja","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/dreknix.png","metadata":{"files":{"readme":"README.md","changelog":"changelogs/changelog.yaml","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":"2023-03-14T15:50:53.000Z","updated_at":"2025-01-30T20:09:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"447af896-2e30-4818-9b0b-f3c79754cc5c","html_url":"https://github.com/dreknix/ansible-collection-restic","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreknix%2Fansible-collection-restic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreknix%2Fansible-collection-restic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreknix%2Fansible-collection-restic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreknix%2Fansible-collection-restic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dreknix","download_url":"https://codeload.github.com/dreknix/ansible-collection-restic/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245821123,"owners_count":20677979,"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-collection","restic"],"created_at":"2025-02-01T14:26:37.416Z","updated_at":"2025-03-27T09:42:38.225Z","avatar_url":"https://github.com/dreknix.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ansible Collection for Setup Restic Backup System\n\nA collection of roles for configuring `restic` based backup. For the backup task\nthe [restic script](https://github.com/dreknix/tools-restic-backup) is used. The\nroles are currently only supporting Debian or Ubuntu based distros.\n\n## Usage\n\nConfigure `collections_path` in `ansible.cfg`.\n\nInsert collection into `requirements.yml`:\n\n``` yaml\ncollections:\n  - name: dreknix.restic\n    source: https://github.com/dreknix/ansible-collection-restic.git\n    type: git\n    version: main\n```\n\nUse Galaxy to install the collection:\n\n``` console\nansible-galaxy install --force-with-deps -r requirements.yml\n```\n\nImport the playbook of the collection and overwrite the default values of the\ncollection variables:\n\n``` yaml\n# Configure restic backup (add hosts into `restic_servers` or `restic_clients`)\n- name: Setup restic backup\n  ansible.builtin.import_playbook: dreknix.restic.playbook\n  vars:\n    restic_backup_proto: \"sftp\"\n    restic_backup_user: \"dreknix\"\n    restic_backup_host: \"dreknix.example.org\"\n    restic_backup_repository_path: restic/{{ inventory_hostname }}\n\n    restic_backup_ssh_key_file: \"~/.ssh/id_restic\"\n    restic_backup_ssh_create_config: true\n\n    restic_backup_report_email: \"dreknix@example.com\"\n    restic_backup_report_on_success: false\n    restic_backup_report_on_failure: true\n\n    restic_backup_prom_directory: /var/lib/prometheus/node-exporter\n\n    restic_backup_paths:\n      - /\n\n    restic_backup_exclude: |\n      ...list of files...\n```\n\nFor more variables see\n[`roles/clients/templates/.env.j2`](roles/clients/templates/.env.j2). The\nvariables `restic_backup_repository` and `restic_back_cmd` are automatically\ncreated (see [`roles/clients/default/all.yml`](roles/clients/default/all.yml)).\n\nThe variable `restic_install_type` specifies who restic will be installed on the\nsystem.\n\n* `ansible` - The collection installs a binary directly from GitHub. The version\n  of the executable can be controlled by setting `restic_version`.\n* `system` - The package manager if used to install restic.\n* `other` - The executable will be installed by other options outside this\n  collection. A test if the executable is available is performed.\n\n## Available Tags and Groups\n\nThe tag `restic` activates the playbook of the collection. The binary `restic`\nwill be installed on all hosts in the groups `restic_servers` and\n`restic_clients`. The [restic backup script](\nhttps://github.com/dreknix/tools-restic-backup) will only be installed and\nconfigured on hosts of the group `restic_clients`.\n\n## License\n\n[MIT](https://github.com/dreknix/ansible-collection-restic/blob/main/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdreknix%2Fansible-collection-restic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdreknix%2Fansible-collection-restic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdreknix%2Fansible-collection-restic/lists"}