What app is this about, and its version: Restic 0.18.0~ynh3
What YunoHost version are you running: 12.1.23
What type of hardware are you using: VPS bought online
Describe your issue
Salut @Gildas
Les backups plantent tous, apparemment un soucis avec le hook 05-restic_app
Le fichier a les droits suivants :
# ls -al /etc/yunohost/hooks.d/backup_method/
total 12
drwxr-xr-x 2 root root 4096 Sep 12 13:59 .
drwx------ 16 root root 4096 May 2 22:22 ..
-r-------- 1 root root 2728 Sep 12 13:59 05-restic_app
Share relevant logs or error messages
args:
apps: null
description: null
dry_run: false
methods:
- restic_app
name: auto_conf
output_directory: null
system:
- conf_ldap
- conf_ynh_settings
- conf_ynh_certs
- conf_manually_modified_files
ended_at: 2025-09-16 22:06:40.248762
error: Custom backup method could not get past the 'backup' step
interface: cli
operation: backup_create
parent: null
related_to: []
started_at: 2025-09-16 22:00:03.796127
started_by: ******
success: false
yunohost_version: 12.1.23
============
2025-09-17 00:00:04,979: DEBUG - Running backup hooksā¦
2025-09-17 00:00:04,997: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "/usr/share/yunohost/hooks/backup/05-conf_ldap" /home/yunohost.backup/tmp/auto_conf 7>&1']'
2025-09-17 00:00:05,001: DEBUG - + set -eu
2025-09-17 00:00:05,001: DEBUG - + source /usr/share/yunohost/helpers
2025-09-17 00:00:05,002: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2025-09-17 00:00:05,003: DEBUG - +++ cd -- /usr/share/yunohost
2025-09-17 00:00:05,003: DEBUG - +++ pwd
2025-09-17 00:00:05,003: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2025-09-17 00:00:05,003: DEBUG - ++ YNH_HELPERS_VERSION=1
2025-09-17 00:00:05,005: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2025-09-17 00:00:05,005: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2025-09-17 00:00:05,042: DEBUG - + backup_dir=/home/yunohost.backup/tmp/auto_conf/conf/ldap
2025-09-17 00:00:05,042: DEBUG - + ynh_backup /etc/ldap/ldap.conf /home/yunohost.backup/tmp/auto_conf/conf/ldap/ldap.conf
2025-09-17 00:00:05,087: DEBUG - + dest_path=/home/yunohost.backup/tmp/auto_conf/conf/ldap/ldap.conf
2025-09-17 00:00:05,088: DEBUG - + is_big=0
2025-09-17 00:00:05,088: DEBUG - + not_mandatory=0
2025-09-17 00:00:05,088: DEBUG - + BACKUP_CORE_ONLY=0
2025-09-17 00:00:05,088: DEBUG - + test -n ''
2025-09-17 00:00:05,088: DEBUG - + '[' '!' -e /etc/ldap/ldap.conf ']'
2025-09-17 00:00:05,088: DEBUG - ++ realpath /etc/ldap/ldap.conf
2025-09-17 00:00:05,089: DEBUG - + src_path=/etc/ldap/ldap.conf
2025-09-17 00:00:05,089: DEBUG - + [[ -z /home/yunohost.backup/tmp/auto_conf/conf/ldap/ldap.conf ]]
2025-09-17 00:00:05,089: DEBUG - + [[ / == \/ ]]
2025-09-17 00:00:05,089: DEBUG - + dest_path=conf/ldap/ldap.conf
2025-09-17 00:00:05,089: DEBUG - + [[ c == \/ ]]
2025-09-17 00:00:05,089: DEBUG - + [[ f == \/ ]]
2025-09-17 00:00:05,089: DEBUG - + [[ -e conf/ldap/ldap.conf ]]
2025-09-17 00:00:05,089: DEBUG - + local rel_dir=
2025-09-17 00:00:05,089: DEBUG - + rel_dir=/
2025-09-17 00:00:05,090: DEBUG - + dest_path=/conf/ldap/ldap.conf
2025-09-17 00:00:05,090: DEBUG - + dest_path=conf/ldap/ldap.conf
2025-09-17 00:00:05,090: DEBUG - ++ echo /etc/ldap/ldap.conf
2025-09-17 00:00:05,090: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-17 00:00:05,091: DEBUG - + local src=/etc/ldap/ldap.conf
2025-09-17 00:00:05,092: DEBUG - ++ echo conf/ldap/ldap.conf
2025-09-17 00:00:05,092: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-17 00:00:05,093: DEBUG - + local dest=conf/ldap/ldap.conf
2025-09-17 00:00:05,094: DEBUG - ++ dirname /home/yunohost.backup/tmp/auto_conf/conf/ldap/ldap.conf
2025-09-17 00:00:05,095: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/auto_conf/conf/ldap
2025-09-17 00:00:05,097: DEBUG - + slapcat -b cn=config -l /home/yunohost.backup/tmp/auto_conf/conf/ldap/cn=config.master.ldif
2025-09-17 00:00:05,117: DEBUG - + slapcat -b dc=yunohost,dc=org -l /home/yunohost.backup/tmp/auto_conf/conf/ldap/dc=yunohost-dc=org.ldif
2025-09-17 00:00:05,218: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "/usr/share/yunohost/hooks/backup/20-conf_ynh_settings" /home/yunohost.backup/tmp/auto_conf 7>&1']'
2025-09-17 00:00:05,222: DEBUG - + set -eu
2025-09-17 00:00:05,222: DEBUG - + source /usr/share/yunohost/helpers
2025-09-17 00:00:05,223: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2025-09-17 00:00:05,224: DEBUG - +++ cd -- /usr/share/yunohost
2025-09-17 00:00:05,224: DEBUG - +++ pwd
2025-09-17 00:00:05,224: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2025-09-17 00:00:05,224: DEBUG - ++ YNH_HELPERS_VERSION=1
2025-09-17 00:00:05,226: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2025-09-17 00:00:05,226: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2025-09-17 00:00:05,252: DEBUG - + backup_dir=/home/yunohost.backup/tmp/auto_conf/conf/ynh
2025-09-17 00:00:05,253: DEBUG - + ynh_backup /etc/yunohost/firewall.yml /home/yunohost.backup/tmp/auto_conf/conf/ynh/firewall.yml
2025-09-17 00:00:05,298: DEBUG - + dest_path=/home/yunohost.backup/tmp/auto_conf/conf/ynh/firewall.yml
2025-09-17 00:00:05,298: DEBUG - + is_big=0
2025-09-17 00:00:05,298: DEBUG - + not_mandatory=0
2025-09-17 00:00:05,298: DEBUG - + BACKUP_CORE_ONLY=0
2025-09-17 00:00:05,298: DEBUG - + test -n ''
2025-09-17 00:00:05,298: DEBUG - + '[' '!' -e /etc/yunohost/firewall.yml ']'
2025-09-17 00:00:05,298: DEBUG - ++ realpath /etc/yunohost/firewall.yml
2025-09-17 00:00:05,299: DEBUG - + src_path=/etc/yunohost/firewall.yml
2025-09-17 00:00:05,299: DEBUG - + [[ -z /home/yunohost.backup/tmp/auto_conf/conf/ynh/firewall.yml ]]
2025-09-17 00:00:05,299: DEBUG - + [[ / == \/ ]]
2025-09-17 00:00:05,299: DEBUG - + dest_path=conf/ynh/firewall.yml
2025-09-17 00:00:05,299: DEBUG - + [[ c == \/ ]]
2025-09-17 00:00:05,300: DEBUG - + [[ l == \/ ]]
2025-09-17 00:00:05,300: DEBUG - + [[ -e conf/ynh/firewall.yml ]]
2025-09-17 00:00:05,300: DEBUG - + local rel_dir=
2025-09-17 00:00:05,300: DEBUG - + rel_dir=/
2025-09-17 00:00:05,300: DEBUG - + dest_path=/conf/ynh/firewall.yml
2025-09-17 00:00:05,300: DEBUG - + dest_path=conf/ynh/firewall.yml
2025-09-17 00:00:05,300: DEBUG - ++ echo /etc/yunohost/firewall.yml
2025-09-17 00:00:05,300: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-17 00:00:05,302: DEBUG - + local src=/etc/yunohost/firewall.yml
2025-09-17 00:00:05,302: DEBUG - ++ echo conf/ynh/firewall.yml
2025-09-17 00:00:05,303: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-17 00:00:05,304: DEBUG - + local dest=conf/ynh/firewall.yml
2025-09-17 00:00:05,305: DEBUG - ++ dirname /home/yunohost.backup/tmp/auto_conf/conf/ynh/firewall.yml
2025-09-17 00:00:05,306: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/auto_conf/conf/ynh
2025-09-17 00:00:05,307: DEBUG - + ynh_backup /etc/yunohost/permissions.yml /home/yunohost.backup/tmp/auto_conf/conf/ynh/permissions.yml
2025-09-17 00:00:05,355: DEBUG - + dest_path=/home/yunohost.backup/tmp/auto_conf/conf/ynh/permissions.yml
2025-09-17 00:00:05,355: DEBUG - + is_big=0
2025-09-17 00:00:05,355: DEBUG - + not_mandatory=0
2025-09-17 00:00:05,355: DEBUG - + BACKUP_CORE_ONLY=0
2025-09-17 00:00:05,355: DEBUG - + test -n ''
2025-09-17 00:00:05,355: DEBUG - + '[' '!' -e /etc/yunohost/permissions.yml ']'
2025-09-17 00:00:05,355: DEBUG - ++ realpath /etc/yunohost/permissions.yml
2025-09-17 00:00:05,356: DEBUG - + src_path=/etc/yunohost/permissions.yml
2025-09-17 00:00:05,356: DEBUG - + [[ -z /home/yunohost.backup/tmp/auto_conf/conf/ynh/permissions.yml ]]
2025-09-17 00:00:05,356: DEBUG - + [[ / == \/ ]]
2025-09-17 00:00:05,357: DEBUG - + dest_path=conf/ynh/permissions.yml
2025-09-17 00:00:05,357: DEBUG - + [[ c == \/ ]]
2025-09-17 00:00:05,357: DEBUG - + [[ l == \/ ]]
2025-09-17 00:00:05,357: DEBUG - + [[ -e conf/ynh/permissions.yml ]]
2025-09-17 00:00:05,357: DEBUG - + local rel_dir=
2025-09-17 00:00:05,357: DEBUG - + rel_dir=/
2025-09-17 00:00:05,357: DEBUG - + dest_path=/conf/ynh/permissions.yml
2025-09-17 00:00:05,357: DEBUG - + dest_path=conf/ynh/permissions.yml
2025-09-17 00:00:05,357: DEBUG - ++ echo /etc/yunohost/permissions.yml
2025-09-17 00:00:05,358: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-17 00:00:05,359: DEBUG - + local src=/etc/yunohost/permissions.yml
2025-09-17 00:00:05,360: DEBUG - ++ echo conf/ynh/permissions.yml
2025-09-17 00:00:05,360: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-17 00:00:05,361: DEBUG - + local dest=conf/ynh/permissions.yml
2025-09-17 00:00:05,362: DEBUG - ++ dirname /home/yunohost.backup/tmp/auto_conf/conf/ynh/permissions.yml
2025-09-17 00:00:05,363: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/auto_conf/conf/ynh
2025-09-17 00:00:05,364: DEBUG - + ynh_backup /etc/yunohost/current_host /home/yunohost.backup/tmp/auto_conf/conf/ynh/current_host
2025-09-17 00:00:05,412: DEBUG - + dest_path=/home/yunohost.backup/tmp/auto_conf/conf/ynh/current_host
2025-09-17 00:00:05,412: DEBUG - + is_big=0
2025-09-17 00:00:05,412: DEBUG - + not_mandatory=0
2025-09-17 00:00:05,412: DEBUG - + BACKUP_CORE_ONLY=0
2025-09-17 00:00:05,412: DEBUG - + test -n ''
2025-09-17 00:00:05,413: DEBUG - + '[' '!' -e /etc/yunohost/current_host ']'
2025-09-17 00:00:05,413: DEBUG - ++ realpath /etc/yunohost/current_host
2025-09-17 00:00:05,413: DEBUG - + src_path=/etc/yunohost/current_host
2025-09-17 00:00:05,413: DEBUG - + [[ -z /home/yunohost.backup/tmp/auto_conf/conf/ynh/current_host ]]
2025-09-17 00:00:05,413: DEBUG - + [[ / == \/ ]]
2025-09-17 00:00:05,414: DEBUG - + dest_path=conf/ynh/current_host
2025-09-17 00:00:05,414: DEBUG - + [[ c == \/ ]]
2025-09-17 00:00:05,414: DEBUG - + [[ t == \/ ]]
2025-09-17 00:00:05,414: DEBUG - + [[ -e conf/ynh/current_host ]]
2025-09-17 00:00:05,414: DEBUG - + local rel_dir=
2025-09-17 00:00:05,414: DEBUG - + rel_dir=/
2025-09-17 00:00:05,414: DEBUG - + dest_path=/conf/ynh/current_host
2025-09-17 00:00:05,414: DEBUG - + dest_path=conf/ynh/current_host
2025-09-17 00:00:05,414: DEBUG - ++ echo /etc/yunohost/current_host
2025-09-17 00:00:05,415: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-17 00:00:05,416: DEBUG - + local src=/etc/yunohost/current_host
2025-09-17 00:00:05,416: DEBUG - ++ echo conf/ynh/current_host
2025-09-17 00:00:05,417: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-17 00:00:05,418: DEBUG - + local dest=conf/ynh/current_host
2025-09-17 00:00:05,419: DEBUG - ++ dirname /home/yunohost.backup/tmp/auto_conf/conf/ynh/current_host
2025-09-17 00:00:05,420: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/auto_conf/conf/ynh
2025-09-17 00:00:05,421: DEBUG - + '[' '!' -d /etc/yunohost/portal ']'
2025-09-17 00:00:05,421: DEBUG - + ynh_backup /etc/yunohost/portal /home/yunohost.backup/tmp/auto_conf/conf/ynh/portal
2025-09-17 00:00:05,467: DEBUG - + dest_path=/home/yunohost.backup/tmp/auto_conf/conf/ynh/portal
2025-09-17 00:00:05,468: DEBUG - + is_big=0
2025-09-17 00:00:05,468: DEBUG - + not_mandatory=0
2025-09-17 00:00:05,468: DEBUG - + BACKUP_CORE_ONLY=0
2025-09-17 00:00:05,468: DEBUG - + test -n ''
2025-09-17 00:00:05,468: DEBUG - + '[' '!' -e /etc/yunohost/portal ']'
2025-09-17 00:00:05,468: DEBUG - ++ realpath /etc/yunohost/portal
2025-09-17 00:00:05,469: DEBUG - + src_path=/etc/yunohost/portal
2025-09-17 00:00:05,469: DEBUG - + [[ -z /home/yunohost.backup/tmp/auto_conf/conf/ynh/portal ]]
2025-09-17 00:00:05,469: DEBUG - + [[ / == \/ ]]
2025-09-17 00:00:05,469: DEBUG - + dest_path=conf/ynh/portal
2025-09-17 00:00:05,469: DEBUG - + [[ c == \/ ]]
2025-09-17 00:00:05,469: DEBUG - + [[ l == \/ ]]
2025-09-17 00:00:05,469: DEBUG - + [[ -e conf/ynh/portal ]]
2025-09-17 00:00:05,470: DEBUG - + local rel_dir=
2025-09-17 00:00:05,470: DEBUG - + rel_dir=/
2025-09-17 00:00:05,470: DEBUG - + dest_path=/conf/ynh/portal
2025-09-17 00:00:05,470: DEBUG - + dest_path=conf/ynh/portal
2025-09-17 00:00:05,470: DEBUG - ++ echo /etc/yunohost/portal
2025-09-17 00:00:05,470: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-17 00:00:05,471: DEBUG - + local src=/etc/yunohost/portal
2025-09-17 00:00:05,472: DEBUG - ++ echo conf/ynh/portal
2025-09-17 00:00:05,472: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-17 00:00:05,474: DEBUG - + local dest=conf/ynh/portal
2025-09-17 00:00:05,474: DEBUG - ++ dirname /home/yunohost.backup/tmp/auto_conf/conf/ynh/portal
2025-09-17 00:00:05,475: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/auto_conf/conf/ynh
2025-09-17 00:00:05,477: DEBUG - + '[' '!' -d /etc/yunohost/domains ']'
2025-09-17 00:00:05,477: DEBUG - + ynh_backup /etc/yunohost/domains /home/yunohost.backup/tmp/auto_conf/conf/ynh/domains
2025-09-17 00:00:05,523: DEBUG - + dest_path=/home/yunohost.backup/tmp/auto_conf/conf/ynh/domains
2025-09-17 00:00:05,524: DEBUG - + is_big=0
2025-09-17 00:00:05,524: DEBUG - + not_mandatory=0
2025-09-17 00:00:05,524: DEBUG - + BACKUP_CORE_ONLY=0
2025-09-17 00:00:05,524: DEBUG - + test -n ''
2025-09-17 00:00:05,524: DEBUG - + '[' '!' -e /etc/yunohost/domains ']'
2025-09-17 00:00:05,524: DEBUG - ++ realpath /etc/yunohost/domains
2025-09-17 00:00:05,525: DEBUG - + src_path=/etc/yunohost/domains
2025-09-17 00:00:05,525: DEBUG - + [[ -z /home/yunohost.backup/tmp/auto_conf/conf/ynh/domains ]]
2025-09-17 00:00:05,525: DEBUG - + [[ / == \/ ]]
2025-09-17 00:00:05,525: DEBUG - + dest_path=conf/ynh/domains
2025-09-17 00:00:05,525: DEBUG - + [[ c == \/ ]]
2025-09-17 00:00:05,525: DEBUG - + [[ s == \/ ]]
2025-09-17 00:00:05,525: DEBUG - + [[ -e conf/ynh/domains ]]
2025-09-17 00:00:05,525: DEBUG - + local rel_dir=
2025-09-17 00:00:05,526: DEBUG - + rel_dir=/
2025-09-17 00:00:05,526: DEBUG - + dest_path=/conf/ynh/domains
2025-09-17 00:00:05,526: DEBUG - + dest_path=conf/ynh/domains
2025-09-17 00:00:05,526: DEBUG - ++ echo /etc/yunohost/domains
2025-09-17 00:00:05,526: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-17 00:00:05,527: DEBUG - + local src=/etc/yunohost/domains
2025-09-17 00:00:05,528: DEBUG - ++ echo conf/ynh/domains
2025-09-17 00:00:05,528: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-17 00:00:05,530: DEBUG - + local dest=conf/ynh/domains
2025-09-17 00:00:05,530: DEBUG - ++ dirname /home/yunohost.backup/tmp/auto_conf/conf/ynh/domains
2025-09-17 00:00:05,531: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/auto_conf/conf/ynh
2025-09-17 00:00:05,533: DEBUG - + '[' '!' -e /etc/yunohost/settings.yml ']'
2025-09-17 00:00:05,533: DEBUG - + ynh_backup /etc/yunohost/settings.yml /home/yunohost.backup/tmp/auto_conf/conf/ynh/settings.yml
2025-09-17 00:00:05,580: DEBUG - + dest_path=/home/yunohost.backup/tmp/auto_conf/conf/ynh/settings.yml
2025-09-17 00:00:05,580: DEBUG - + is_big=0
2025-09-17 00:00:05,581: DEBUG - + not_mandatory=0
2025-09-17 00:00:05,581: DEBUG - + BACKUP_CORE_ONLY=0
2025-09-17 00:00:05,581: DEBUG - + test -n ''
2025-09-17 00:00:05,581: DEBUG - + '[' '!' -e /etc/yunohost/settings.yml ']'
2025-09-17 00:00:05,581: DEBUG - ++ realpath /etc/yunohost/settings.yml
2025-09-17 00:00:05,582: DEBUG - + src_path=/etc/yunohost/settings.yml
2025-09-17 00:00:05,582: DEBUG - + [[ -z /home/yunohost.backup/tmp/auto_conf/conf/ynh/settings.yml ]]
2025-09-17 00:00:05,582: DEBUG - + [[ / == \/ ]]
2025-09-17 00:00:05,582: DEBUG - + dest_path=conf/ynh/settings.yml
2025-09-17 00:00:05,582: DEBUG - + [[ c == \/ ]]
2025-09-17 00:00:05,582: DEBUG - + [[ l == \/ ]]
2025-09-17 00:00:05,582: DEBUG - + [[ -e conf/ynh/settings.yml ]]
2025-09-17 00:00:05,582: DEBUG - + local rel_dir=
2025-09-17 00:00:05,582: DEBUG - + rel_dir=/
2025-09-17 00:00:05,583: DEBUG - + dest_path=/conf/ynh/settings.yml
2025-09-17 00:00:05,583: DEBUG - + dest_path=conf/ynh/settings.yml
2025-09-17 00:00:05,583: DEBUG - ++ echo /etc/yunohost/settings.yml
2025-09-17 00:00:05,583: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-17 00:00:05,584: DEBUG - + local src=/etc/yunohost/settings.yml
2025-09-17 00:00:05,585: DEBUG - ++ echo conf/ynh/settings.yml
2025-09-17 00:00:05,585: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-17 00:00:05,587: DEBUG - + local dest=conf/ynh/settings.yml
2025-09-17 00:00:05,587: DEBUG - ++ dirname /home/yunohost.backup/tmp/auto_conf/conf/ynh/settings.yml
2025-09-17 00:00:05,588: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/auto_conf/conf/ynh
2025-09-17 00:00:05,590: DEBUG - + '[' '!' -d /etc/yunohost/dyndns ']'
2025-09-17 00:00:05,590: DEBUG - + ynh_backup /etc/yunohost/dyndns /home/yunohost.backup/tmp/auto_conf/conf/ynh/dyndns
2025-09-17 00:00:05,637: DEBUG - + dest_path=/home/yunohost.backup/tmp/auto_conf/conf/ynh/dyndns
2025-09-17 00:00:05,637: DEBUG - + is_big=0
2025-09-17 00:00:05,637: DEBUG - + not_mandatory=0
2025-09-17 00:00:05,637: DEBUG - + BACKUP_CORE_ONLY=0
2025-09-17 00:00:05,637: DEBUG - + test -n ''
2025-09-17 00:00:05,637: DEBUG - + '[' '!' -e /etc/yunohost/dyndns ']'
2025-09-17 00:00:05,637: DEBUG - ++ realpath /etc/yunohost/dyndns
2025-09-17 00:00:05,638: DEBUG - + src_path=/etc/yunohost/dyndns
2025-09-17 00:00:05,638: DEBUG - + [[ -z /home/yunohost.backup/tmp/auto_conf/conf/ynh/dyndns ]]
2025-09-17 00:00:05,638: DEBUG - + [[ / == \/ ]]
2025-09-17 00:00:05,638: DEBUG - + dest_path=conf/ynh/dyndns
2025-09-17 00:00:05,638: DEBUG - + [[ c == \/ ]]
2025-09-17 00:00:05,638: DEBUG - + [[ s == \/ ]]
2025-09-17 00:00:05,639: DEBUG - + [[ -e conf/ynh/dyndns ]]
2025-09-17 00:00:05,639: DEBUG - + local rel_dir=
2025-09-17 00:00:05,639: DEBUG - + rel_dir=/
2025-09-17 00:00:05,639: DEBUG - + dest_path=/conf/ynh/dyndns
2025-09-17 00:00:05,639: DEBUG - + dest_path=conf/ynh/dyndns
2025-09-17 00:00:05,639: DEBUG - ++ echo /etc/yunohost/dyndns
2025-09-17 00:00:05,639: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-17 00:00:05,640: DEBUG - + local src=/etc/yunohost/dyndns
2025-09-17 00:00:05,641: DEBUG - ++ echo conf/ynh/dyndns
2025-09-17 00:00:05,641: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-17 00:00:05,643: DEBUG - + local dest=conf/ynh/dyndns
2025-09-17 00:00:05,644: DEBUG - ++ dirname /home/yunohost.backup/tmp/auto_conf/conf/ynh/dyndns
2025-09-17 00:00:05,645: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/auto_conf/conf/ynh
2025-09-17 00:00:05,646: DEBUG - + '[' '!' -d /etc/dkim ']'
2025-09-17 00:00:05,646: DEBUG - + ynh_backup /etc/dkim /home/yunohost.backup/tmp/auto_conf/conf/ynh/dkim
2025-09-17 00:00:05,693: DEBUG - + dest_path=/home/yunohost.backup/tmp/auto_conf/conf/ynh/dkim
2025-09-17 00:00:05,693: DEBUG - + is_big=0
2025-09-17 00:00:05,694: DEBUG - + not_mandatory=0
2025-09-17 00:00:05,694: DEBUG - + BACKUP_CORE_ONLY=0
2025-09-17 00:00:05,694: DEBUG - + test -n ''
2025-09-17 00:00:05,694: DEBUG - + '[' '!' -e /etc/dkim ']'
2025-09-17 00:00:05,694: DEBUG - ++ realpath /etc/dkim
2025-09-17 00:00:05,695: DEBUG - + src_path=/etc/dkim
2025-09-17 00:00:05,695: DEBUG - + [[ -z /home/yunohost.backup/tmp/auto_conf/conf/ynh/dkim ]]
2025-09-17 00:00:05,695: DEBUG - + [[ / == \/ ]]
2025-09-17 00:00:05,695: DEBUG - + dest_path=conf/ynh/dkim
2025-09-17 00:00:05,695: DEBUG - + [[ c == \/ ]]
2025-09-17 00:00:05,695: DEBUG - + [[ m == \/ ]]
2025-09-17 00:00:05,695: DEBUG - + [[ -e conf/ynh/dkim ]]
2025-09-17 00:00:05,695: DEBUG - + local rel_dir=
2025-09-17 00:00:05,696: DEBUG - + rel_dir=/
2025-09-17 00:00:05,696: DEBUG - + dest_path=/conf/ynh/dkim
2025-09-17 00:00:05,696: DEBUG - + dest_path=conf/ynh/dkim
2025-09-17 00:00:05,696: DEBUG - ++ echo /etc/dkim
2025-09-17 00:00:05,696: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-17 00:00:05,697: DEBUG - + local src=/etc/dkim
2025-09-17 00:00:05,698: DEBUG - ++ echo conf/ynh/dkim
2025-09-17 00:00:05,698: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-17 00:00:05,700: DEBUG - + local dest=conf/ynh/dkim
2025-09-17 00:00:05,700: DEBUG - ++ dirname /home/yunohost.backup/tmp/auto_conf/conf/ynh/dkim
2025-09-17 00:00:05,701: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/auto_conf/conf/ynh
2025-09-17 00:00:05,803: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "/usr/share/yunohost/hooks/backup/21-conf_ynh_certs" /home/yunohost.backup/tmp/auto_conf 7>&1']'
2025-09-17 00:00:05,812: DEBUG - + set -eu
2025-09-17 00:00:05,812: DEBUG - + source /usr/share/yunohost/helpers
2025-09-17 00:00:05,813: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2025-09-17 00:00:05,814: DEBUG - +++ cd -- /usr/share/yunohost
2025-09-17 00:00:05,814: DEBUG - +++ pwd
2025-09-17 00:00:05,814: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2025-09-17 00:00:05,814: DEBUG - ++ YNH_HELPERS_VERSION=1
2025-09-17 00:00:05,816: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2025-09-17 00:00:05,816: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2025-09-17 00:00:05,842: DEBUG - + backup_dir=/home/yunohost.backup/tmp/auto_conf/conf/ynh/certs
2025-09-17 00:00:05,842: DEBUG - + ynh_backup /etc/yunohost/certs /home/yunohost.backup/tmp/auto_conf/conf/ynh/certs
2025-09-17 00:00:05,887: DEBUG - + dest_path=/home/yunohost.backup/tmp/auto_conf/conf/ynh/certs
2025-09-17 00:00:05,887: DEBUG - + is_big=0
2025-09-17 00:00:05,888: DEBUG - + not_mandatory=0
2025-09-17 00:00:05,888: DEBUG - + BACKUP_CORE_ONLY=0
2025-09-17 00:00:05,888: DEBUG - + test -n ''
2025-09-17 00:00:05,888: DEBUG - + '[' '!' -e /etc/yunohost/certs ']'
2025-09-17 00:00:05,888: DEBUG - ++ realpath /etc/yunohost/certs
2025-09-17 00:00:05,888: DEBUG - + src_path=/etc/yunohost/certs
2025-09-17 00:00:05,889: DEBUG - + [[ -z /home/yunohost.backup/tmp/auto_conf/conf/ynh/certs ]]
2025-09-17 00:00:05,889: DEBUG - + [[ / == \/ ]]
2025-09-17 00:00:05,889: DEBUG - + dest_path=conf/ynh/certs
2025-09-17 00:00:05,889: DEBUG - + [[ c == \/ ]]
2025-09-17 00:00:05,889: DEBUG - + [[ s == \/ ]]
2025-09-17 00:00:05,889: DEBUG - + [[ -e conf/ynh/certs ]]
2025-09-17 00:00:05,889: DEBUG - + local rel_dir=
2025-09-17 00:00:05,889: DEBUG - + rel_dir=/
2025-09-17 00:00:05,889: DEBUG - + dest_path=/conf/ynh/certs
2025-09-17 00:00:05,890: DEBUG - + dest_path=conf/ynh/certs
2025-09-17 00:00:05,890: DEBUG - ++ echo /etc/yunohost/certs
2025-09-17 00:00:05,890: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-17 00:00:05,891: DEBUG - + local src=/etc/yunohost/certs
2025-09-17 00:00:05,892: DEBUG - ++ echo conf/ynh/certs
2025-09-17 00:00:05,892: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-17 00:00:05,894: DEBUG - + local dest=conf/ynh/certs
2025-09-17 00:00:05,894: DEBUG - ++ dirname /home/yunohost.backup/tmp/auto_conf/conf/ynh/certs
2025-09-17 00:00:05,895: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/auto_conf/conf/ynh
2025-09-17 00:00:05,997: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "/usr/share/yunohost/hooks/backup/50-conf_manually_modified_files" /home/yunohost.backup/tmp/auto_conf 7>&1']'
2025-09-17 00:00:06,000: DEBUG - + set -eu
2025-09-17 00:00:06,000: DEBUG - + source /usr/share/yunohost/helpers
2025-09-17 00:00:06,000: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2025-09-17 00:00:06,001: DEBUG - +++ cd -- /usr/share/yunohost
2025-09-17 00:00:06,001: DEBUG - +++ pwd
2025-09-17 00:00:06,001: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2025-09-17 00:00:06,002: DEBUG - ++ YNH_HELPERS_VERSION=1
2025-09-17 00:00:06,003: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2025-09-17 00:00:06,004: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2025-09-17 00:00:06,029: DEBUG - + ynh_abort_if_errors
2025-09-17 00:00:06,030: DEBUG - + trap ynh_exit_properly EXIT
2025-09-17 00:00:06,030: DEBUG - + YNH_CWD=/home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files
2025-09-17 00:00:06,030: DEBUG - + mkdir -p /home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files
2025-09-17 00:00:06,031: DEBUG - + cd /home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files
2025-09-17 00:00:06,031: DEBUG - + yunohost tools shell -c 'from yunohost.regenconf import manually_modified_files; print('\''\n'\''.join(manually_modified_files()))'
2025-09-17 00:00:06,315: DEBUG - + ynh_backup --src_path=./manually_modified_files_list
2025-09-17 00:00:06,343: DEBUG - + dest_path=
2025-09-17 00:00:06,343: DEBUG - + is_big=0
2025-09-17 00:00:06,344: DEBUG - + not_mandatory=0
2025-09-17 00:00:06,344: DEBUG - + BACKUP_CORE_ONLY=0
2025-09-17 00:00:06,344: DEBUG - + test -n ''
2025-09-17 00:00:06,344: DEBUG - + '[' '!' -e ./manually_modified_files_list ']'
2025-09-17 00:00:06,344: DEBUG - ++ realpath ./manually_modified_files_list
2025-09-17 00:00:06,344: DEBUG - + src_path=/home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files/manually_modified_files_list
2025-09-17 00:00:06,345: DEBUG - + [[ -z '' ]]
2025-09-17 00:00:06,345: DEBUG - + dest_path=home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files/manually_modified_files_list
2025-09-17 00:00:06,345: DEBUG - + [[ -e home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files/manually_modified_files_list ]]
2025-09-17 00:00:06,345: DEBUG - + local rel_dir=/conf/manually_modified_files
2025-09-17 00:00:06,345: DEBUG - + rel_dir=/conf/manually_modified_files/
2025-09-17 00:00:06,345: DEBUG - + dest_path=/conf/manually_modified_files/home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files/manually_modified_files_list
2025-09-17 00:00:06,345: DEBUG - + dest_path=conf/manually_modified_files/home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files/manually_modified_files_list
2025-09-17 00:00:06,345: DEBUG - ++ echo /home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files/manually_modified_files_list
2025-09-17 00:00:06,346: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-17 00:00:06,347: DEBUG - + local src=/home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files/manually_modified_files_list
2025-09-17 00:00:06,348: DEBUG - ++ echo conf/manually_modified_files/home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files/manually_modified_files_list
2025-09-17 00:00:06,348: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-17 00:00:06,350: DEBUG - + local dest=conf/manually_modified_files/home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files/manually_modified_files_list
2025-09-17 00:00:06,350: DEBUG - ++ dirname /home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files/home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files/manually_modified_files_list
2025-09-17 00:00:06,351: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files/home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files
2025-09-17 00:00:06,353: DEBUG - ++ cat ./manually_modified_files_list
2025-09-17 00:00:06,354: DEBUG - + for file in $(cat ./manually_modified_files_list)
2025-09-17 00:00:06,355: DEBUG - + [[ -e /etc/nginx/conf.d/security.conf.inc ]]
2025-09-17 00:00:06,355: DEBUG - + ynh_backup --src_path=/etc/nginx/conf.d/security.conf.inc
2025-09-17 00:00:06,383: DEBUG - + dest_path=
2025-09-17 00:00:06,384: DEBUG - + is_big=0
2025-09-17 00:00:06,384: DEBUG - + not_mandatory=0
2025-09-17 00:00:06,384: DEBUG - + BACKUP_CORE_ONLY=0
2025-09-17 00:00:06,384: DEBUG - + test -n ''
2025-09-17 00:00:06,384: DEBUG - + '[' '!' -e /etc/nginx/conf.d/security.conf.inc ']'
2025-09-17 00:00:06,384: DEBUG - ++ realpath /etc/nginx/conf.d/security.conf.inc
2025-09-17 00:00:06,385: DEBUG - + src_path=/etc/nginx/conf.d/security.conf.inc
2025-09-17 00:00:06,385: DEBUG - + [[ -z '' ]]
2025-09-17 00:00:06,385: DEBUG - + dest_path=etc/nginx/conf.d/security.conf.inc
2025-09-17 00:00:06,385: DEBUG - + [[ -e etc/nginx/conf.d/security.conf.inc ]]
2025-09-17 00:00:06,385: DEBUG - + local rel_dir=/conf/manually_modified_files
2025-09-17 00:00:06,385: DEBUG - + rel_dir=/conf/manually_modified_files/
2025-09-17 00:00:06,385: DEBUG - + dest_path=/conf/manually_modified_files/etc/nginx/conf.d/security.conf.inc
2025-09-17 00:00:06,385: DEBUG - + dest_path=conf/manually_modified_files/etc/nginx/conf.d/security.conf.inc
2025-09-17 00:00:06,386: DEBUG - ++ echo /etc/nginx/conf.d/security.conf.inc
2025-09-17 00:00:06,386: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-17 00:00:06,387: DEBUG - + local src=/etc/nginx/conf.d/security.conf.inc
2025-09-17 00:00:06,388: DEBUG - ++ echo conf/manually_modified_files/etc/nginx/conf.d/security.conf.inc
2025-09-17 00:00:06,388: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-17 00:00:06,390: DEBUG - + local dest=conf/manually_modified_files/etc/nginx/conf.d/security.conf.inc
2025-09-17 00:00:06,390: DEBUG - ++ dirname /home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files/etc/nginx/conf.d/security.conf.inc
2025-09-17 00:00:06,391: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files/etc/nginx/conf.d
2025-09-17 00:00:06,393: DEBUG - + for file in $(cat ./manually_modified_files_list)
2025-09-17 00:00:06,393: DEBUG - + [[ -e /etc/cron.d/yunohost-dyndns ]]
2025-09-17 00:00:06,393: DEBUG - + ynh_backup --src_path=/etc/cron.d/yunohost-dyndns
2025-09-17 00:00:06,423: DEBUG - + dest_path=
2025-09-17 00:00:06,423: DEBUG - + is_big=0
2025-09-17 00:00:06,423: DEBUG - + not_mandatory=0
2025-09-17 00:00:06,423: DEBUG - + BACKUP_CORE_ONLY=0
2025-09-17 00:00:06,423: DEBUG - + test -n ''
2025-09-17 00:00:06,424: DEBUG - + '[' '!' -e /etc/cron.d/yunohost-dyndns ']'
2025-09-17 00:00:06,424: DEBUG - ++ realpath /etc/cron.d/yunohost-dyndns
2025-09-17 00:00:06,424: DEBUG - + src_path=/etc/cron.d/yunohost-dyndns
2025-09-17 00:00:06,425: DEBUG - + [[ -z '' ]]
2025-09-17 00:00:06,425: DEBUG - + dest_path=etc/cron.d/yunohost-dyndns
2025-09-17 00:00:06,425: DEBUG - + [[ -e etc/cron.d/yunohost-dyndns ]]
2025-09-17 00:00:06,425: DEBUG - + local rel_dir=/conf/manually_modified_files
2025-09-17 00:00:06,425: DEBUG - + rel_dir=/conf/manually_modified_files/
2025-09-17 00:00:06,425: DEBUG - + dest_path=/conf/manually_modified_files/etc/cron.d/yunohost-dyndns
2025-09-17 00:00:06,425: DEBUG - + dest_path=conf/manually_modified_files/etc/cron.d/yunohost-dyndns
2025-09-17 00:00:06,425: DEBUG - ++ echo /etc/cron.d/yunohost-dyndns
2025-09-17 00:00:06,425: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-17 00:00:06,427: DEBUG - + local src=/etc/cron.d/yunohost-dyndns
2025-09-17 00:00:06,428: DEBUG - ++ echo conf/manually_modified_files/etc/cron.d/yunohost-dyndns
2025-09-17 00:00:06,428: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-17 00:00:06,429: DEBUG - + local dest=conf/manually_modified_files/etc/cron.d/yunohost-dyndns
2025-09-17 00:00:06,430: DEBUG - ++ dirname /home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files/etc/cron.d/yunohost-dyndns
2025-09-17 00:00:06,431: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files/etc/cron.d
2025-09-17 00:00:06,432: DEBUG - + ynh_backup --src_path=/etc/ssowat/conf.json.persistent
2025-09-17 00:00:06,461: DEBUG - + dest_path=
2025-09-17 00:00:06,461: DEBUG - + is_big=0
2025-09-17 00:00:06,461: DEBUG - + not_mandatory=0
2025-09-17 00:00:06,461: DEBUG - + BACKUP_CORE_ONLY=0
2025-09-17 00:00:06,462: DEBUG - + test -n ''
2025-09-17 00:00:06,462: DEBUG - + '[' '!' -e /etc/ssowat/conf.json.persistent ']'
2025-09-17 00:00:06,462: DEBUG - ++ realpath /etc/ssowat/conf.json.persistent
2025-09-17 00:00:06,462: DEBUG - + src_path=/etc/ssowat/conf.json.persistent
2025-09-17 00:00:06,463: DEBUG - + [[ -z '' ]]
2025-09-17 00:00:06,463: DEBUG - + dest_path=etc/ssowat/conf.json.persistent
2025-09-17 00:00:06,463: DEBUG - + [[ -e etc/ssowat/conf.json.persistent ]]
2025-09-17 00:00:06,463: DEBUG - + local rel_dir=/conf/manually_modified_files
2025-09-17 00:00:06,463: DEBUG - + rel_dir=/conf/manually_modified_files/
2025-09-17 00:00:06,463: DEBUG - + dest_path=/conf/manually_modified_files/etc/ssowat/conf.json.persistent
2025-09-17 00:00:06,463: DEBUG - + dest_path=conf/manually_modified_files/etc/ssowat/conf.json.persistent
2025-09-17 00:00:06,463: DEBUG - ++ echo /etc/ssowat/conf.json.persistent
2025-09-17 00:00:06,463: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-17 00:00:06,465: DEBUG - + local src=/etc/ssowat/conf.json.persistent
2025-09-17 00:00:06,466: DEBUG - ++ echo conf/manually_modified_files/etc/ssowat/conf.json.persistent
2025-09-17 00:00:06,466: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-17 00:00:06,468: DEBUG - + local dest=conf/manually_modified_files/etc/ssowat/conf.json.persistent
2025-09-17 00:00:06,468: DEBUG - ++ dirname /home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files/etc/ssowat/conf.json.persistent
2025-09-17 00:00:06,469: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files/etc/ssowat
2025-09-17 00:00:06,471: DEBUG - + ynh_exit_properly
2025-09-17 00:00:06,471: DEBUG - + [[ '' =~ ^install$|^upgrade$|^restore$ ]]
2025-09-17 00:00:06,793: INFO - Creating a backup archive from the collected filesā¦
2025-09-17 00:00:06,794: INFO - The archive will contain about 924KB of data.
2025-09-17 00:00:06,794: DEBUG - Calling the custom backup method 'restic_app'ā¦
2025-09-17 00:00:06,794: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./05-restic_app" need_mount /home/yunohost.backup/tmp/auto_conf auto_conf /home/yunohost.backup/archives 945815 \'\' 7>&1']'
2025-09-17 00:00:06,798: DEBUG - + set -euo pipefail
2025-09-17 00:00:06,798: DEBUG - ++ yunohost app setting restic repository
2025-09-17 00:00:06,996: DEBUG - + RESTIC_REPOSITORY_BASE=sftp:user_de_backup@server_cible.tld:port_ssh//home/user_de_backup/restic
2025-09-17 00:00:06,996: DEBUG - ++ yunohost app setting restic passphrase
2025-09-17 00:00:07,194: DEBUG - + RESTIC_PASSWORD='password_backup'
2025-09-17 00:00:07,194: DEBUG - + RESTIC_COMMAND=/var/www/restic/restic
2025-09-17 00:00:07,194: DEBUG - + LOGFILE=/var/log/restic/backup.log
2025-09-17 00:00:07,194: DEBUG - + ERRFILE=/var/log/restic/backup-error.log
2025-09-17 00:00:07,194: DEBUG - + work_dir=/home/yunohost.backup/tmp/auto_conf
2025-09-17 00:00:07,195: DEBUG - + name=auto_conf
2025-09-17 00:00:07,195: DEBUG - + size=945815
2025-09-17 00:00:07,195: DEBUG - + description=
2025-09-17 00:00:07,195: DEBUG - + case "$1" in
2025-09-17 00:00:07,195: DEBUG - + do_need_mount /home/yunohost.backup/tmp/auto_conf auto_conf 945815 ''
2025-09-17 00:00:07,195: DEBUG - + local work_dir=/home/yunohost.backup/tmp/auto_conf
2025-09-17 00:00:07,195: DEBUG - + local name=auto_conf
2025-09-17 00:00:07,195: DEBUG - + local size=945815
2025-09-17 00:00:07,195: DEBUG - + local description=
2025-09-17 00:00:07,195: DEBUG - + export RESTIC_PASSWORD
2025-09-17 00:00:07,195: DEBUG - + export RESTIC_REPOSITORY=sftp:user_de_backup@server_cible.tld:port_ssh//home/user_de_backup/restic/auto_conf
2025-09-17 00:00:07,195: DEBUG - + RESTIC_REPOSITORY=sftp:user_de_backup@server_cible.tld:port_ssh//home/user_de_backup/restic/auto_conf
2025-09-17 00:00:07,196: DEBUG - + load_env_file
2025-09-17 00:00:07,196: DEBUG - + local env_file=/var/www/restic/.env
2025-09-17 00:00:07,196: DEBUG - + '[' -f /var/www/restic/.env ']'
2025-09-17 00:00:07,196: DEBUG - + set -o allexport
2025-09-17 00:00:07,196: DEBUG - + source /var/www/restic/.env
2025-09-17 00:00:07,196: DEBUG - + set +o allexport
2025-09-17 00:00:07,196: DEBUG - + load_ssh_agent
2025-09-17 00:00:07,196: DEBUG - + local ssh_key=**********
2025-09-17 00:00:07,196: DEBUG - + '[' -z '' ']'
2025-09-17 00:00:07,196: DEBUG - ++ ssh-agent -s
2025-09-17 00:00:07,231: DEBUG - + eval 'SSH_AUTH_SOCK=/tmp/ssh-MV0Bshbk2oM4/agent.2812875; export SSH_AUTH_SOCK;
2025-09-17 00:00:07,231: DEBUG - SSH_AGENT_PID=2812876; export SSH_AGENT_PID;
2025-09-17 00:00:07,231: DEBUG - echo Agent pid 2812876;'
2025-09-17 00:00:07,231: DEBUG - ++ SSH_AUTH_SOCK=/tmp/ssh-MV0Bshbk2oM4/agent.2812875
2025-09-17 00:00:07,231: DEBUG - ++ export SSH_AUTH_SOCK
2025-09-17 00:00:07,231: DEBUG - ++ SSH_AGENT_PID=2812876
2025-09-17 00:00:07,231: DEBUG - ++ export SSH_AGENT_PID
2025-09-17 00:00:07,232: DEBUG - ++ echo Agent pid 2812876
2025-09-17 00:00:07,232: DEBUG - Agent pid 2812876
2025-09-17 00:00:07,232: DEBUG - + ssh-add -l
2025-09-17 00:00:07,232: DEBUG - ++ basename **********
2025-09-17 00:00:07,232: DEBUG - + grep -q id_restic_ed25519
2025-09-17 00:00:07,254: DEBUG - + '[' -f ********** ']'
2025-09-17 00:00:07,254: DEBUG - + ssh-add **********
2025-09-17 00:00:07,260: DEBUG - + trap 'ssh-agent -k > /dev/null' EXIT
2025-09-17 00:00:07,260: DEBUG - + /var/www/restic/restic cat config
2025-09-17 00:02:18,043: DEBUG - + /var/www/restic/restic init
2025-09-17 00:04:29,073: DEBUG - + ssh-agent -k
2025-09-17 00:04:29,174: ERROR - Could not run script: /etc/yunohost/hooks.d/backup_method/05-restic_app
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/yunohost/hook.py", line 302, in hook_callback
hook_return = hook_exec(
^^^^^^^^^^
File "/usr/lib/python3/dist-packages/yunohost/hook.py", line 428, in hook_exec
raise YunohostError("hook_exec_failed", path=path)
yunohost.utils.error.YunohostError: Could not run script: /etc/yunohost/hooks.d/backup_method/05-restic_app
2025-09-17 00:04:29,176: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./05-restic_app" backup /home/yunohost.backup/tmp/auto_conf auto_conf /home/yunohost.backup/archives 945815 \'\' 7>&1']'
2025-09-17 00:04:29,179: DEBUG - + set -euo pipefail
2025-09-17 00:04:29,180: DEBUG - ++ yunohost app setting restic repository
2025-09-17 00:04:29,378: DEBUG - + RESTIC_REPOSITORY_BASE=sftp:user_de_backup@server_cible.tld:port_ssh//home/user_de_backup/restic
2025-09-17 00:04:29,378: DEBUG - ++ yunohost app setting restic passphrase
2025-09-17 00:04:29,576: DEBUG - + RESTIC_PASSWORD='password_backup'
2025-09-17 00:04:29,576: DEBUG - + RESTIC_COMMAND=/var/www/restic/restic
2025-09-17 00:04:29,577: DEBUG - + LOGFILE=/var/log/restic/backup.log
2025-09-17 00:04:29,577: DEBUG - + ERRFILE=/var/log/restic/backup-error.log
2025-09-17 00:04:29,577: DEBUG - + work_dir=/home/yunohost.backup/tmp/auto_conf
2025-09-17 00:04:29,577: DEBUG - + name=auto_conf
2025-09-17 00:04:29,577: DEBUG - + size=945815
2025-09-17 00:04:29,577: DEBUG - + description=
2025-09-17 00:04:29,577: DEBUG - + case "$1" in
2025-09-17 00:04:29,577: DEBUG - + do_backup /home/yunohost.backup/tmp/auto_conf auto_conf 945815 ''
2025-09-17 00:04:29,577: DEBUG - + local work_dir=/home/yunohost.backup/tmp/auto_conf
2025-09-17 00:04:29,577: DEBUG - + local name=auto_conf
2025-09-17 00:04:29,577: DEBUG - + local size=945815
2025-09-17 00:04:29,578: DEBUG - + local description=
2025-09-17 00:04:29,578: DEBUG - + export RESTIC_PASSWORD
2025-09-17 00:04:29,578: DEBUG - + export RESTIC_REPOSITORY=sftp:user_de_backup@server_cible.tld:port_ssh//home/user_de_backup/restic/auto_conf
2025-09-17 00:04:29,578: DEBUG - + RESTIC_REPOSITORY=sftp:user_de_backup@server_cible.tld:port_ssh//home/user_de_backup/restic/auto_conf
2025-09-17 00:04:29,578: DEBUG - ++ date +%d_%m_%y_%H:%M
2025-09-17 00:04:29,578: DEBUG - + current_date=17_09_25_00:04
2025-09-17 00:04:29,578: DEBUG - + load_env_file
2025-09-17 00:04:29,578: DEBUG - + local env_file=/var/www/restic/.env
2025-09-17 00:04:29,578: DEBUG - + '[' -f /var/www/restic/.env ']'
2025-09-17 00:04:29,579: DEBUG - + set -o allexport
2025-09-17 00:04:29,579: DEBUG - + source /var/www/restic/.env
2025-09-17 00:04:29,579: DEBUG - + set +o allexport
2025-09-17 00:04:29,579: DEBUG - + load_ssh_agent
2025-09-17 00:04:29,579: DEBUG - + local ssh_key=**********
2025-09-17 00:04:29,579: DEBUG - + '[' -z '' ']'
2025-09-17 00:04:29,579: DEBUG - ++ ssh-agent -s
2025-09-17 00:04:29,584: DEBUG - + eval 'SSH_AUTH_SOCK=/tmp/ssh-ayMiSGxW25cN/agent.2813025; export SSH_AUTH_SOCK;
2025-09-17 00:04:29,584: DEBUG - SSH_AGENT_PID=2813026; export SSH_AGENT_PID;
2025-09-17 00:04:29,584: DEBUG - echo Agent pid 2813026;'
2025-09-17 00:04:29,584: DEBUG - ++ SSH_AUTH_SOCK=/tmp/ssh-ayMiSGxW25cN/agent.2813025
2025-09-17 00:04:29,584: DEBUG - ++ export SSH_AUTH_SOCK
2025-09-17 00:04:29,584: DEBUG - ++ SSH_AGENT_PID=2813026
2025-09-17 00:04:29,584: DEBUG - ++ export SSH_AGENT_PID
2025-09-17 00:04:29,584: DEBUG - ++ echo Agent pid 2813026
2025-09-17 00:04:29,585: DEBUG - Agent pid 2813026
2025-09-17 00:04:29,585: DEBUG - + ssh-add -l
2025-09-17 00:04:29,585: DEBUG - ++ basename **********
2025-09-17 00:04:29,585: DEBUG - + grep -q id_restic_ed25519
2025-09-17 00:04:29,590: DEBUG - + '[' -f ********** ']'
2025-09-17 00:04:29,590: DEBUG - + ssh-add **********
2025-09-17 00:04:29,596: DEBUG - + trap 'ssh-agent -k > /dev/null' EXIT
2025-09-17 00:04:29,596: DEBUG - + pushd /home/yunohost.backup/tmp/auto_conf
2025-09-17 00:04:29,596: DEBUG - + /var/www/restic/restic backup ./
2025-09-17 00:06:40,145: DEBUG - + ssh-agent -k
2025-09-17 00:06:40,246: ERROR - Could not run script: /etc/yunohost/hooks.d/backup_method/05-restic_app
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/yunohost/hook.py", line 302, in hook_callback
hook_return = hook_exec(
^^^^^^^^^^
File "/usr/lib/python3/dist-packages/yunohost/hook.py", line 428, in hook_exec
raise YunohostError("hook_exec_failed", path=path)
yunohost.utils.error.YunohostError: Could not run script: /etc/yunohost/hooks.d/backup_method/05-restic_app