build(ynh_backup): update borg role to v.0.9.4
This commit is contained in:
parent
b464c17a70
commit
89f0a6f6d3
4 changed files with 9 additions and 23 deletions
|
@ -48,8 +48,7 @@ ynh_backup:
|
|||
|
||||
```yml
|
||||
ynh_borg_backup_scheduled: True
|
||||
m3nu_ansible_role_borgbackup_version: "v0.9.3"
|
||||
borgmatic_version: "1.6.5"
|
||||
m3nu_ansible_role_borgbackup_version: "v0.9.4"
|
||||
borg_source_directories: "{{ ynh_backup.directory }}"
|
||||
borg_repository: "/data/backup/borg_repository"
|
||||
borg_encryption_passphrase: "PLEASECHANGEME"
|
||||
|
@ -64,8 +63,7 @@ ynh_ssh_borg_command: "ssh_command: ssh -p 7410 -o StrictHostKey
|
|||
```
|
||||
|
||||
- `ynh_borg_backup_scheduled` : Active / désactive la fonctionnalité de sauvegarde avec BorgBackup.
|
||||
- `m3nu_ansible_role_borgbackup_version` : Vous permet de spécifier la version du rôle Ansible Borg Backup que vous souhaitez utiliser. La version par défaut du rôle est v0.9.3 mais vous pouvez vérifier les versions du rôle [ici](https://github.com/borgbase/ansible-role-borgbackup).
|
||||
- `borgmatic_version`: Vous permet de spécifier la version de Borgmatic que vous souhaitez utiliser. La version par défaut est la 1.6.5 car la dernière release du rôle n'est pas compatible avec les mises à jour plus récentes de Borgmatic (pour le moment).
|
||||
- `m3nu_ansible_role_borgbackup_version` : Vous permet de spécifier la version du rôle Ansible Borg Backup que vous souhaitez utiliser. La version par défaut du rôle est v0.9.4 mais vous pouvez vérifier les versions du rôle [ici](https://github.com/borgbase/ansible-role-borgbackup).
|
||||
- `ynh_borg_backup_remote_repo` : Active / désactive la fonctionnalité de sauvegarde sur un dépôt distant BorgBackup (tâches liées à la mise en place des clés SSH). Si vous activez cette fonctionnalité, vous aurez besoin d'utiliser les variables `borg_ssh_keys_src` et `borg_ssh_keys_dest`.
|
||||
- `borg_source_directories` : Liste des dossiers source à sauvegarder. Par défaut, il s'agit du dossier qui contient les sauvegardes faites par YunoHost.
|
||||
- `borg_repository` : Chemin complet vers le dépôt Borg. Possibilité de donner une liste de dépôts pour sauvegarder les données dans plusieurs endroits.
|
||||
|
|
|
@ -48,8 +48,7 @@ ynh_backup:
|
|||
|
||||
```yml
|
||||
ynh_borg_backup_scheduled: True
|
||||
m3nu_ansible_role_borgbackup_version: "v0.9.3"
|
||||
borgmatic_version: "1.6.5"
|
||||
m3nu_ansible_role_borgbackup_version: "v0.9.4"
|
||||
borg_source_directories: "{{ ynh_backup.directory }}"
|
||||
borg_repository: "/data/backup/borg_repository"
|
||||
borg_encryption_passphrase: "PLEASECHANGEME"
|
||||
|
@ -64,8 +63,7 @@ ynh_ssh_borg_command: "ssh_command: ssh -p 7410 -o StrictHostKey
|
|||
```
|
||||
|
||||
- `ynh_borg_backup_scheduled`: Enable / disable the backup feature with BorgBackup.
|
||||
- `m3nu_ansible_role_borgbackup_version`: Allows you to specify which version of the Borg Backup Ansible role you want to use. The default version of the role is v0.9.3 but you can check the releases of the role [here](https://github.com/borgbase/ansible-role-borgbackup).
|
||||
- `borgmatic_version`: Allows you to specify which version of Borgmatic you want to use. The default version is 1.6.5 because previous release of the role are not compatible with more recent updates of Borgmatic (at the moment).
|
||||
- `m3nu_ansible_role_borgbackup_version`: Allows you to specify which version of the Borg Backup Ansible role you want to use. The default version of the role is v0.9.4 but you can check the releases of the role [here](https://github.com/borgbase/ansible-role-borgbackup).
|
||||
- `ynh_borg_backup_remote_repo`: Enable / disable the backup functionality on a BorgBackup remote repository (tasks related to SSH keys setup). If you enable this feature, then you will need to use `borg_ssh_keys_src` and `borg_ssh_keys_dest` variables.
|
||||
- `borg_source_directories`: List of source folders to back up. By default, this is the folder in which YunoHost local backups are located.
|
||||
- `borg_repository`: Full path to the Borg repository. Possibility to give a list of repositories to save data in several places.
|
||||
|
|
|
@ -24,8 +24,7 @@ ynh_backup:
|
|||
|
||||
# Variables for YunoHost BorgBackup
|
||||
ynh_borg_backup_scheduled: False
|
||||
m3nu_ansible_role_borgbackup_version: "v0.9.3"
|
||||
borgmatic_version: "1.6.5"
|
||||
m3nu_ansible_role_borgbackup_version: "v0.9.4"
|
||||
borg_source_directories:
|
||||
- "/home/yunohost.backup"
|
||||
borg_repository: "/data/backup/borg_repository"
|
||||
|
|
|
@ -38,15 +38,6 @@
|
|||
- backup
|
||||
- borg
|
||||
|
||||
- name: Install specific version of Borgmatic
|
||||
ansible.builtin.pip:
|
||||
name: "borgmatic"
|
||||
version: "{{ borgmatic_version }}"
|
||||
virtualenv: /opt/borgmatic
|
||||
tags:
|
||||
- backup
|
||||
- borg
|
||||
|
||||
- name: Create backup folder for BorgBackup repository
|
||||
ansible.builtin.file:
|
||||
path: "{{ borg_repository }}"
|
||||
|
@ -61,7 +52,7 @@
|
|||
- backup
|
||||
- borg
|
||||
block:
|
||||
- name: deploy ssh public key for BorgBackup
|
||||
- name: Deploy SSH public key for BorgBackup
|
||||
ansible.builtin.copy:
|
||||
src: "{{ borg_ssh_keys_src }}.pub"
|
||||
dest: "{{ borg_ssh_keys_dest }}.pub"
|
||||
|
@ -69,7 +60,7 @@
|
|||
group: "root"
|
||||
mode: 0600
|
||||
|
||||
- name: deploy ssh private key for BorgBackup
|
||||
- name: Deploy SSH private key for BorgBackup
|
||||
ansible.builtin.copy:
|
||||
src: "{{ borg_ssh_keys_src }}.vault"
|
||||
dest: "{{ borg_ssh_keys_dest }}"
|
||||
|
@ -78,7 +69,7 @@
|
|||
mode: 0600
|
||||
when: ynh_borg_backup_remote_repo
|
||||
|
||||
- name: change SSH command in "/etc/borgmatic/{{ borgmatic_config_name }}"
|
||||
- name: Change SSH command in "/etc/borgmatic/{{ borgmatic_config_name }}"
|
||||
ansible.builtin.lineinfile:
|
||||
path: "/etc/borgmatic/{{ borgmatic_config_name }}"
|
||||
regexp: "# ssh_command: ssh -i ~/.ssh/id_ed25519"
|
||||
|
@ -90,7 +81,7 @@
|
|||
- borg
|
||||
|
||||
|
||||
- name: change archive name in "/etc/borgmatic/{{ borgmatic_config_name }}"
|
||||
- name: Change archive name in "/etc/borgmatic/{{ borgmatic_config_name }}"
|
||||
ansible.builtin.lineinfile:
|
||||
path: "/etc/borgmatic/{{ borgmatic_config_name }}"
|
||||
regexp: "archive_name_format:"
|
||||
|
|
Loading…
Reference in a new issue