Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 5b1190c6 authored by Arthur BOUDREAULT's avatar Arthur BOUDREAULT
Browse files

WIP to test

parent 6550d7ec
No related branches found
No related tags found
No related merge requests found
Pipeline #6934 failed
This commit is part of merge request !32. Comments created here will be created in the context of that merge request.
......@@ -28,3 +28,15 @@ ynh_backup:
# scheduled_month: "*"
# system: True
# apps: True
ynh_borg_backup:
scheduled: False
# borg_source_directories: "{{ borg_ynh_src_dir }}"
# borg_repository: "{{ borg_ynh_remote_repo }}"
# borgmatic_config_name: "{{ borgmatic_conf_name }}"
# borg_encryption_passphrase: "{{ borg_remote_repo_encryption_passphrase }}"
# borg_retention_policy:
# keep_daily: "{{ borg_days_to_keep }}"
# keep_weekly: "{{ borg_weeks_to_keep }}"
# keep_monthly: "{{ borg_months_to_keep }}"
# borgmatic_cron_name: "{{ borgmatic_ynh_cron_name }}"
......@@ -15,15 +15,15 @@ galaxy_info:
- cloud
- web
dependencies:
- role: m3nu.ansible_role_borgbackup
vars:
borg_source_directories: "{{ borg_ynh_src_dir }}"
borg_repository: "{{ borg_ynh_remote_repo }}"
borgmatic_config_name: "{{ borgmatic_conf_name }}"
borg_encryption_passphrase: "{{ borg_remote_repo_encryption_passphrase }}"
borg_retention_policy:
keep_daily: "{{ borg_days_to_keep }}"
keep_weekly: "{{ borg_weeks_to_keep }}"
keep_monthly: "{{ borg_months_to_keep }}"
borgmatic_cron_name: "{{ borgmatic_ynh_cron_name }}"
dependencies: []
# - role: m3nu.ansible_role_borgbackup
# vars:
# borg_source_directories: "{{ borg_ynh_src_dir }}"
# borg_repository: "{{ borg_ynh_remote_repo }}"
# borgmatic_config_name: "{{ borgmatic_conf_name }}"
# borg_encryption_passphrase: "{{ borg_remote_repo_encryption_passphrase }}"
# borg_retention_policy:
# keep_daily: "{{ borg_days_to_keep }}"
# keep_weekly: "{{ borg_weeks_to_keep }}"
# keep_monthly: "{{ borg_months_to_keep }}"
# borgmatic_cron_name: "{{ borgmatic_ynh_cron_name }}"
---
# from Ansible Galaxy
roles:
- src: m3nu.ansible_role_borgbackup
version: v0.9.0
......@@ -17,6 +17,12 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. #
# #
#-----------------------------------------------------------------------------#
- name: Download BorgBackup role on localhost
local_action: ansible.builtin.command ansible-galaxy install -r requirements.yml
- name: import BorgBackup role
ansible.builtin.import_role:
name: m3nu.ansible_role_borgbackup
- name: Configure host for Borg Remote repository
block:
......
......@@ -26,7 +26,7 @@
- name: Use Borg Backup with YunoHost
ansible.builtin.include_tasks: borg.yml
when: ynh_backup.scheduled
when: ynh_borg_backup.scheduled
tags:
- backup
- borg
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment