Restic - backup fail (Could not run script: /etc/yunohost/hooks.d/backup_method/05-restic_app)

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

Hello, I made a mistake when I wrote the repository URL suggestion, I’ll try to fix it

Your URL is : sftp:user_de_backup@server_cible.tld:port_ssh//home/user_de_backup/restic/auto_conf (type yunohost app setting restic repository to see the real URL)

Change it to sftp://user_de_backup@server_cible.tld:port_ssh//home/user_de_backup/restic/auto_conf (add two slash after sftp: so it becomes sftp://)

To do this via the command line : type yunohost app setting restic repository -v "sftp://user_de_backup@server_cible.tld:port_ssh//home/user_de_backup/restic/auto_conf"

Don’h hesitate to tell me if the problem persists

1 Like

Thank you for your feedback.

However, backup still fails for the same reason after an uninstall/reinstall of restic and adding a // after the sftp: string.

Owner of hooks 05-restic_app is root:root

Log :

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-21 22:00:14.333412
error: Custom backup method could not get past the 'backup' step
interface: cli
operation: backup_create
parent: null
related_to: []
started_at: 2025-09-21 22:00:04.522384
started_by: ******
success: false
yunohost_version: 12.1.25

============

2025-09-22 00:00:05,913: DEBUG - Running backup hooks…
2025-09-22 00:00:05,964: 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-22 00:00:05,980: DEBUG - + set -eu
2025-09-22 00:00:05,980: DEBUG - + source /usr/share/yunohost/helpers
2025-09-22 00:00:05,987: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2025-09-22 00:00:05,988: DEBUG - +++ cd -- /usr/share/yunohost
2025-09-22 00:00:05,988: DEBUG - +++ pwd
2025-09-22 00:00:05,988: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2025-09-22 00:00:05,988: DEBUG - ++ YNH_HELPERS_VERSION=1
2025-09-22 00:00:05,990: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2025-09-22 00:00:05,990: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2025-09-22 00:00:06,046: DEBUG - + backup_dir=/home/yunohost.backup/tmp/auto_conf/conf/ldap
2025-09-22 00:00:06,046: DEBUG - + ynh_backup /etc/ldap/ldap.conf /home/yunohost.backup/tmp/auto_conf/conf/ldap/ldap.conf
2025-09-22 00:00:06,092: DEBUG - + dest_path=/home/yunohost.backup/tmp/auto_conf/conf/ldap/ldap.conf
2025-09-22 00:00:06,092: DEBUG - + is_big=0
2025-09-22 00:00:06,092: DEBUG - + not_mandatory=0
2025-09-22 00:00:06,092: DEBUG - + BACKUP_CORE_ONLY=0
2025-09-22 00:00:06,092: DEBUG - + test -n ''
2025-09-22 00:00:06,093: DEBUG - + '[' '!' -e /etc/ldap/ldap.conf ']'
2025-09-22 00:00:06,093: DEBUG - ++ realpath /etc/ldap/ldap.conf
2025-09-22 00:00:06,093: DEBUG - + src_path=/etc/ldap/ldap.conf
2025-09-22 00:00:06,093: DEBUG - + [[ -z /home/yunohost.backup/tmp/auto_conf/conf/ldap/ldap.conf ]]
2025-09-22 00:00:06,093: DEBUG - + [[ / == \/ ]]
2025-09-22 00:00:06,093: DEBUG - + dest_path=conf/ldap/ldap.conf
2025-09-22 00:00:06,093: DEBUG - + [[ c == \/ ]]
2025-09-22 00:00:06,094: DEBUG - + [[ f == \/ ]]
2025-09-22 00:00:06,094: DEBUG - + [[ -e conf/ldap/ldap.conf ]]
2025-09-22 00:00:06,094: DEBUG - + local rel_dir=
2025-09-22 00:00:06,094: DEBUG - + rel_dir=/
2025-09-22 00:00:06,094: DEBUG - + dest_path=/conf/ldap/ldap.conf
2025-09-22 00:00:06,094: DEBUG - + dest_path=conf/ldap/ldap.conf
2025-09-22 00:00:06,094: DEBUG - ++ echo /etc/ldap/ldap.conf
2025-09-22 00:00:06,094: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-22 00:00:06,096: DEBUG - + local src=/etc/ldap/ldap.conf
2025-09-22 00:00:06,096: DEBUG - ++ echo conf/ldap/ldap.conf
2025-09-22 00:00:06,096: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-22 00:00:06,098: DEBUG - + local dest=conf/ldap/ldap.conf
2025-09-22 00:00:06,099: DEBUG - ++ dirname /home/yunohost.backup/tmp/auto_conf/conf/ldap/ldap.conf
2025-09-22 00:00:06,100: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/auto_conf/conf/ldap
2025-09-22 00:00:06,102: DEBUG - + slapcat -b cn=config -l /home/yunohost.backup/tmp/auto_conf/conf/ldap/cn=config.master.ldif
2025-09-22 00:00:06,121: DEBUG - + slapcat -b dc=yunohost,dc=org -l /home/yunohost.backup/tmp/auto_conf/conf/ldap/dc=yunohost-dc=org.ldif
2025-09-22 00:00:06,223: 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-22 00:00:06,241: DEBUG - + set -eu
2025-09-22 00:00:06,241: DEBUG - + source /usr/share/yunohost/helpers
2025-09-22 00:00:06,241: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2025-09-22 00:00:06,242: DEBUG - +++ cd -- /usr/share/yunohost
2025-09-22 00:00:06,242: DEBUG - +++ pwd
2025-09-22 00:00:06,243: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2025-09-22 00:00:06,243: DEBUG - ++ YNH_HELPERS_VERSION=1
2025-09-22 00:00:06,245: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2025-09-22 00:00:06,245: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2025-09-22 00:00:06,270: DEBUG - + backup_dir=/home/yunohost.backup/tmp/auto_conf/conf/ynh
2025-09-22 00:00:06,271: DEBUG - + ynh_backup /etc/yunohost/firewall.yml /home/yunohost.backup/tmp/auto_conf/conf/ynh/firewall.yml
2025-09-22 00:00:06,315: DEBUG - + dest_path=/home/yunohost.backup/tmp/auto_conf/conf/ynh/firewall.yml
2025-09-22 00:00:06,316: DEBUG - + is_big=0
2025-09-22 00:00:06,316: DEBUG - + not_mandatory=0
2025-09-22 00:00:06,316: DEBUG - + BACKUP_CORE_ONLY=0
2025-09-22 00:00:06,316: DEBUG - + test -n ''
2025-09-22 00:00:06,316: DEBUG - + '[' '!' -e /etc/yunohost/firewall.yml ']'
2025-09-22 00:00:06,316: DEBUG - ++ realpath /etc/yunohost/firewall.yml
2025-09-22 00:00:06,317: DEBUG - + src_path=/etc/yunohost/firewall.yml
2025-09-22 00:00:06,317: DEBUG - + [[ -z /home/yunohost.backup/tmp/auto_conf/conf/ynh/firewall.yml ]]
2025-09-22 00:00:06,317: DEBUG - + [[ / == \/ ]]
2025-09-22 00:00:06,317: DEBUG - + dest_path=conf/ynh/firewall.yml
2025-09-22 00:00:06,317: DEBUG - + [[ c == \/ ]]
2025-09-22 00:00:06,317: DEBUG - + [[ l == \/ ]]
2025-09-22 00:00:06,317: DEBUG - + [[ -e conf/ynh/firewall.yml ]]
2025-09-22 00:00:06,317: DEBUG - + local rel_dir=
2025-09-22 00:00:06,317: DEBUG - + rel_dir=/
2025-09-22 00:00:06,318: DEBUG - + dest_path=/conf/ynh/firewall.yml
2025-09-22 00:00:06,318: DEBUG - + dest_path=conf/ynh/firewall.yml
2025-09-22 00:00:06,318: DEBUG - ++ echo /etc/yunohost/firewall.yml
2025-09-22 00:00:06,318: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-22 00:00:06,319: DEBUG - + local src=/etc/yunohost/firewall.yml
2025-09-22 00:00:06,320: DEBUG - ++ echo conf/ynh/firewall.yml
2025-09-22 00:00:06,320: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-22 00:00:06,322: DEBUG - + local dest=conf/ynh/firewall.yml
2025-09-22 00:00:06,322: DEBUG - ++ dirname /home/yunohost.backup/tmp/auto_conf/conf/ynh/firewall.yml
2025-09-22 00:00:06,323: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/auto_conf/conf/ynh
2025-09-22 00:00:06,325: DEBUG - + ynh_backup /etc/yunohost/permissions.yml /home/yunohost.backup/tmp/auto_conf/conf/ynh/permissions.yml
2025-09-22 00:00:06,371: DEBUG - + dest_path=/home/yunohost.backup/tmp/auto_conf/conf/ynh/permissions.yml
2025-09-22 00:00:06,371: DEBUG - + is_big=0
2025-09-22 00:00:06,371: DEBUG - + not_mandatory=0
2025-09-22 00:00:06,371: DEBUG - + BACKUP_CORE_ONLY=0
2025-09-22 00:00:06,371: DEBUG - + test -n ''
2025-09-22 00:00:06,371: DEBUG - + '[' '!' -e /etc/yunohost/permissions.yml ']'
2025-09-22 00:00:06,372: DEBUG - ++ realpath /etc/yunohost/permissions.yml
2025-09-22 00:00:06,372: DEBUG - + src_path=/etc/yunohost/permissions.yml
2025-09-22 00:00:06,372: DEBUG - + [[ -z /home/yunohost.backup/tmp/auto_conf/conf/ynh/permissions.yml ]]
2025-09-22 00:00:06,372: DEBUG - + [[ / == \/ ]]
2025-09-22 00:00:06,373: DEBUG - + dest_path=conf/ynh/permissions.yml
2025-09-22 00:00:06,373: DEBUG - + [[ c == \/ ]]
2025-09-22 00:00:06,373: DEBUG - + [[ l == \/ ]]
2025-09-22 00:00:06,373: DEBUG - + [[ -e conf/ynh/permissions.yml ]]
2025-09-22 00:00:06,373: DEBUG - + local rel_dir=
2025-09-22 00:00:06,373: DEBUG - + rel_dir=/
2025-09-22 00:00:06,373: DEBUG - + dest_path=/conf/ynh/permissions.yml
2025-09-22 00:00:06,373: DEBUG - + dest_path=conf/ynh/permissions.yml
2025-09-22 00:00:06,373: DEBUG - ++ echo /etc/yunohost/permissions.yml
2025-09-22 00:00:06,374: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-22 00:00:06,375: DEBUG - + local src=/etc/yunohost/permissions.yml
2025-09-22 00:00:06,375: DEBUG - ++ echo conf/ynh/permissions.yml
2025-09-22 00:00:06,376: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-22 00:00:06,377: DEBUG - + local dest=conf/ynh/permissions.yml
2025-09-22 00:00:06,378: DEBUG - ++ dirname /home/yunohost.backup/tmp/auto_conf/conf/ynh/permissions.yml
2025-09-22 00:00:06,379: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/auto_conf/conf/ynh
2025-09-22 00:00:06,380: DEBUG - + ynh_backup /etc/yunohost/current_host /home/yunohost.backup/tmp/auto_conf/conf/ynh/current_host
2025-09-22 00:00:06,427: DEBUG - + dest_path=/home/yunohost.backup/tmp/auto_conf/conf/ynh/current_host
2025-09-22 00:00:06,427: DEBUG - + is_big=0
2025-09-22 00:00:06,427: DEBUG - + not_mandatory=0
2025-09-22 00:00:06,427: DEBUG - + BACKUP_CORE_ONLY=0
2025-09-22 00:00:06,427: DEBUG - + test -n ''
2025-09-22 00:00:06,427: DEBUG - + '[' '!' -e /etc/yunohost/current_host ']'
2025-09-22 00:00:06,427: DEBUG - ++ realpath /etc/yunohost/current_host
2025-09-22 00:00:06,428: DEBUG - + src_path=/etc/yunohost/current_host
2025-09-22 00:00:06,428: DEBUG - + [[ -z /home/yunohost.backup/tmp/auto_conf/conf/ynh/current_host ]]
2025-09-22 00:00:06,428: DEBUG - + [[ / == \/ ]]
2025-09-22 00:00:06,428: DEBUG - + dest_path=conf/ynh/current_host
2025-09-22 00:00:06,429: DEBUG - + [[ c == \/ ]]
2025-09-22 00:00:06,429: DEBUG - + [[ t == \/ ]]
2025-09-22 00:00:06,429: DEBUG - + [[ -e conf/ynh/current_host ]]
2025-09-22 00:00:06,429: DEBUG - + local rel_dir=
2025-09-22 00:00:06,429: DEBUG - + rel_dir=/
2025-09-22 00:00:06,429: DEBUG - + dest_path=/conf/ynh/current_host
2025-09-22 00:00:06,429: DEBUG - + dest_path=conf/ynh/current_host
2025-09-22 00:00:06,429: DEBUG - ++ echo /etc/yunohost/current_host
2025-09-22 00:00:06,429: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-22 00:00:06,431: DEBUG - + local src=/etc/yunohost/current_host
2025-09-22 00:00:06,431: DEBUG - ++ echo conf/ynh/current_host
2025-09-22 00:00:06,431: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-22 00:00:06,433: DEBUG - + local dest=conf/ynh/current_host
2025-09-22 00:00:06,434: DEBUG - ++ dirname /home/yunohost.backup/tmp/auto_conf/conf/ynh/current_host
2025-09-22 00:00:06,435: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/auto_conf/conf/ynh
2025-09-22 00:00:06,436: DEBUG - + '[' '!' -d /etc/yunohost/portal ']'
2025-09-22 00:00:06,436: DEBUG - + ynh_backup /etc/yunohost/portal /home/yunohost.backup/tmp/auto_conf/conf/ynh/portal
2025-09-22 00:00:06,483: DEBUG - + dest_path=/home/yunohost.backup/tmp/auto_conf/conf/ynh/portal
2025-09-22 00:00:06,483: DEBUG - + is_big=0
2025-09-22 00:00:06,483: DEBUG - + not_mandatory=0
2025-09-22 00:00:06,483: DEBUG - + BACKUP_CORE_ONLY=0
2025-09-22 00:00:06,483: DEBUG - + test -n ''
2025-09-22 00:00:06,484: DEBUG - + '[' '!' -e /etc/yunohost/portal ']'
2025-09-22 00:00:06,484: DEBUG - ++ realpath /etc/yunohost/portal
2025-09-22 00:00:06,484: DEBUG - + src_path=/etc/yunohost/portal
2025-09-22 00:00:06,484: DEBUG - + [[ -z /home/yunohost.backup/tmp/auto_conf/conf/ynh/portal ]]
2025-09-22 00:00:06,484: DEBUG - + [[ / == \/ ]]
2025-09-22 00:00:06,485: DEBUG - + dest_path=conf/ynh/portal
2025-09-22 00:00:06,485: DEBUG - + [[ c == \/ ]]
2025-09-22 00:00:06,485: DEBUG - + [[ l == \/ ]]
2025-09-22 00:00:06,485: DEBUG - + [[ -e conf/ynh/portal ]]
2025-09-22 00:00:06,485: DEBUG - + local rel_dir=
2025-09-22 00:00:06,485: DEBUG - + rel_dir=/
2025-09-22 00:00:06,485: DEBUG - + dest_path=/conf/ynh/portal
2025-09-22 00:00:06,485: DEBUG - + dest_path=conf/ynh/portal
2025-09-22 00:00:06,485: DEBUG - ++ echo /etc/yunohost/portal
2025-09-22 00:00:06,485: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-22 00:00:06,487: DEBUG - + local src=/etc/yunohost/portal
2025-09-22 00:00:06,488: DEBUG - ++ echo conf/ynh/portal
2025-09-22 00:00:06,488: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-22 00:00:06,489: DEBUG - + local dest=conf/ynh/portal
2025-09-22 00:00:06,490: DEBUG - ++ dirname /home/yunohost.backup/tmp/auto_conf/conf/ynh/portal
2025-09-22 00:00:06,491: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/auto_conf/conf/ynh
2025-09-22 00:00:06,492: DEBUG - + '[' '!' -d /etc/yunohost/domains ']'
2025-09-22 00:00:06,493: DEBUG - + ynh_backup /etc/yunohost/domains /home/yunohost.backup/tmp/auto_conf/conf/ynh/domains
2025-09-22 00:00:06,540: DEBUG - + dest_path=/home/yunohost.backup/tmp/auto_conf/conf/ynh/domains
2025-09-22 00:00:06,540: DEBUG - + is_big=0
2025-09-22 00:00:06,540: DEBUG - + not_mandatory=0
2025-09-22 00:00:06,540: DEBUG - + BACKUP_CORE_ONLY=0
2025-09-22 00:00:06,541: DEBUG - + test -n ''
2025-09-22 00:00:06,541: DEBUG - + '[' '!' -e /etc/yunohost/domains ']'
2025-09-22 00:00:06,541: DEBUG - ++ realpath /etc/yunohost/domains
2025-09-22 00:00:06,541: DEBUG - + src_path=/etc/yunohost/domains
2025-09-22 00:00:06,542: DEBUG - + [[ -z /home/yunohost.backup/tmp/auto_conf/conf/ynh/domains ]]
2025-09-22 00:00:06,542: DEBUG - + [[ / == \/ ]]
2025-09-22 00:00:06,542: DEBUG - + dest_path=conf/ynh/domains
2025-09-22 00:00:06,542: DEBUG - + [[ c == \/ ]]
2025-09-22 00:00:06,542: DEBUG - + [[ s == \/ ]]
2025-09-22 00:00:06,542: DEBUG - + [[ -e conf/ynh/domains ]]
2025-09-22 00:00:06,542: DEBUG - + local rel_dir=
2025-09-22 00:00:06,542: DEBUG - + rel_dir=/
2025-09-22 00:00:06,543: DEBUG - + dest_path=/conf/ynh/domains
2025-09-22 00:00:06,543: DEBUG - + dest_path=conf/ynh/domains
2025-09-22 00:00:06,543: DEBUG - ++ echo /etc/yunohost/domains
2025-09-22 00:00:06,543: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-22 00:00:06,544: DEBUG - + local src=/etc/yunohost/domains
2025-09-22 00:00:06,545: DEBUG - ++ echo conf/ynh/domains
2025-09-22 00:00:06,545: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-22 00:00:06,546: DEBUG - + local dest=conf/ynh/domains
2025-09-22 00:00:06,547: DEBUG - ++ dirname /home/yunohost.backup/tmp/auto_conf/conf/ynh/domains
2025-09-22 00:00:06,548: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/auto_conf/conf/ynh
2025-09-22 00:00:06,549: DEBUG - + '[' '!' -e /etc/yunohost/settings.yml ']'
2025-09-22 00:00:06,549: DEBUG - + ynh_backup /etc/yunohost/settings.yml /home/yunohost.backup/tmp/auto_conf/conf/ynh/settings.yml
2025-09-22 00:00:06,596: DEBUG - + dest_path=/home/yunohost.backup/tmp/auto_conf/conf/ynh/settings.yml
2025-09-22 00:00:06,597: DEBUG - + is_big=0
2025-09-22 00:00:06,597: DEBUG - + not_mandatory=0
2025-09-22 00:00:06,597: DEBUG - + BACKUP_CORE_ONLY=0
2025-09-22 00:00:06,597: DEBUG - + test -n ''
2025-09-22 00:00:06,597: DEBUG - + '[' '!' -e /etc/yunohost/settings.yml ']'
2025-09-22 00:00:06,597: DEBUG - ++ realpath /etc/yunohost/settings.yml
2025-09-22 00:00:06,598: DEBUG - + src_path=/etc/yunohost/settings.yml
2025-09-22 00:00:06,598: DEBUG - + [[ -z /home/yunohost.backup/tmp/auto_conf/conf/ynh/settings.yml ]]
2025-09-22 00:00:06,598: DEBUG - + [[ / == \/ ]]
2025-09-22 00:00:06,598: DEBUG - + dest_path=conf/ynh/settings.yml
2025-09-22 00:00:06,598: DEBUG - + [[ c == \/ ]]
2025-09-22 00:00:06,598: DEBUG - + [[ l == \/ ]]
2025-09-22 00:00:06,598: DEBUG - + [[ -e conf/ynh/settings.yml ]]
2025-09-22 00:00:06,598: DEBUG - + local rel_dir=
2025-09-22 00:00:06,599: DEBUG - + rel_dir=/
2025-09-22 00:00:06,599: DEBUG - + dest_path=/conf/ynh/settings.yml
2025-09-22 00:00:06,599: DEBUG - + dest_path=conf/ynh/settings.yml
2025-09-22 00:00:06,599: DEBUG - ++ echo /etc/yunohost/settings.yml
2025-09-22 00:00:06,599: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-22 00:00:06,600: DEBUG - + local src=/etc/yunohost/settings.yml
2025-09-22 00:00:06,601: DEBUG - ++ echo conf/ynh/settings.yml
2025-09-22 00:00:06,601: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-22 00:00:06,603: DEBUG - + local dest=conf/ynh/settings.yml
2025-09-22 00:00:06,603: DEBUG - ++ dirname /home/yunohost.backup/tmp/auto_conf/conf/ynh/settings.yml
2025-09-22 00:00:06,604: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/auto_conf/conf/ynh
2025-09-22 00:00:06,606: DEBUG - + '[' '!' -d /etc/yunohost/dyndns ']'
2025-09-22 00:00:06,606: DEBUG - + ynh_backup /etc/yunohost/dyndns /home/yunohost.backup/tmp/auto_conf/conf/ynh/dyndns
2025-09-22 00:00:06,652: DEBUG - + dest_path=/home/yunohost.backup/tmp/auto_conf/conf/ynh/dyndns
2025-09-22 00:00:06,652: DEBUG - + is_big=0
2025-09-22 00:00:06,653: DEBUG - + not_mandatory=0
2025-09-22 00:00:06,653: DEBUG - + BACKUP_CORE_ONLY=0
2025-09-22 00:00:06,653: DEBUG - + test -n ''
2025-09-22 00:00:06,653: DEBUG - + '[' '!' -e /etc/yunohost/dyndns ']'
2025-09-22 00:00:06,653: DEBUG - ++ realpath /etc/yunohost/dyndns
2025-09-22 00:00:06,654: DEBUG - + src_path=/etc/yunohost/dyndns
2025-09-22 00:00:06,654: DEBUG - + [[ -z /home/yunohost.backup/tmp/auto_conf/conf/ynh/dyndns ]]
2025-09-22 00:00:06,654: DEBUG - + [[ / == \/ ]]
2025-09-22 00:00:06,654: DEBUG - + dest_path=conf/ynh/dyndns
2025-09-22 00:00:06,654: DEBUG - + [[ c == \/ ]]
2025-09-22 00:00:06,654: DEBUG - + [[ s == \/ ]]
2025-09-22 00:00:06,654: DEBUG - + [[ -e conf/ynh/dyndns ]]
2025-09-22 00:00:06,654: DEBUG - + local rel_dir=
2025-09-22 00:00:06,654: DEBUG - + rel_dir=/
2025-09-22 00:00:06,655: DEBUG - + dest_path=/conf/ynh/dyndns
2025-09-22 00:00:06,655: DEBUG - + dest_path=conf/ynh/dyndns
2025-09-22 00:00:06,655: DEBUG - ++ echo /etc/yunohost/dyndns
2025-09-22 00:00:06,655: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-22 00:00:06,656: DEBUG - + local src=/etc/yunohost/dyndns
2025-09-22 00:00:06,657: DEBUG - ++ echo conf/ynh/dyndns
2025-09-22 00:00:06,657: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-22 00:00:06,659: DEBUG - + local dest=conf/ynh/dyndns
2025-09-22 00:00:06,659: DEBUG - ++ dirname /home/yunohost.backup/tmp/auto_conf/conf/ynh/dyndns
2025-09-22 00:00:06,660: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/auto_conf/conf/ynh
2025-09-22 00:00:06,662: DEBUG - + '[' '!' -d /etc/dkim ']'
2025-09-22 00:00:06,662: DEBUG - + ynh_backup /etc/dkim /home/yunohost.backup/tmp/auto_conf/conf/ynh/dkim
2025-09-22 00:00:06,708: DEBUG - + dest_path=/home/yunohost.backup/tmp/auto_conf/conf/ynh/dkim
2025-09-22 00:00:06,708: DEBUG - + is_big=0
2025-09-22 00:00:06,708: DEBUG - + not_mandatory=0
2025-09-22 00:00:06,709: DEBUG - + BACKUP_CORE_ONLY=0
2025-09-22 00:00:06,709: DEBUG - + test -n ''
2025-09-22 00:00:06,709: DEBUG - + '[' '!' -e /etc/dkim ']'
2025-09-22 00:00:06,709: DEBUG - ++ realpath /etc/dkim
2025-09-22 00:00:06,709: DEBUG - + src_path=/etc/dkim
2025-09-22 00:00:06,710: DEBUG - + [[ -z /home/yunohost.backup/tmp/auto_conf/conf/ynh/dkim ]]
2025-09-22 00:00:06,710: DEBUG - + [[ / == \/ ]]
2025-09-22 00:00:06,710: DEBUG - + dest_path=conf/ynh/dkim
2025-09-22 00:00:06,710: DEBUG - + [[ c == \/ ]]
2025-09-22 00:00:06,710: DEBUG - + [[ m == \/ ]]
2025-09-22 00:00:06,710: DEBUG - + [[ -e conf/ynh/dkim ]]
2025-09-22 00:00:06,710: DEBUG - + local rel_dir=
2025-09-22 00:00:06,710: DEBUG - + rel_dir=/
2025-09-22 00:00:06,710: DEBUG - + dest_path=/conf/ynh/dkim
2025-09-22 00:00:06,711: DEBUG - + dest_path=conf/ynh/dkim
2025-09-22 00:00:06,711: DEBUG - ++ echo /etc/dkim
2025-09-22 00:00:06,711: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-22 00:00:06,712: DEBUG - + local src=/etc/dkim
2025-09-22 00:00:06,713: DEBUG - ++ echo conf/ynh/dkim
2025-09-22 00:00:06,713: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-22 00:00:06,714: DEBUG - + local dest=conf/ynh/dkim
2025-09-22 00:00:06,715: DEBUG - ++ dirname /home/yunohost.backup/tmp/auto_conf/conf/ynh/dkim
2025-09-22 00:00:06,716: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/auto_conf/conf/ynh
2025-09-22 00:00:06,817: 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-22 00:00:06,821: DEBUG - + set -eu
2025-09-22 00:00:06,821: DEBUG - + source /usr/share/yunohost/helpers
2025-09-22 00:00:06,822: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2025-09-22 00:00:06,823: DEBUG - +++ cd -- /usr/share/yunohost
2025-09-22 00:00:06,823: DEBUG - +++ pwd
2025-09-22 00:00:06,823: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2025-09-22 00:00:06,823: DEBUG - ++ YNH_HELPERS_VERSION=1
2025-09-22 00:00:06,825: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2025-09-22 00:00:06,825: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2025-09-22 00:00:06,851: DEBUG - + backup_dir=/home/yunohost.backup/tmp/auto_conf/conf/ynh/certs
2025-09-22 00:00:06,851: DEBUG - + ynh_backup /etc/yunohost/certs /home/yunohost.backup/tmp/auto_conf/conf/ynh/certs
2025-09-22 00:00:06,896: DEBUG - + dest_path=/home/yunohost.backup/tmp/auto_conf/conf/ynh/certs
2025-09-22 00:00:06,896: DEBUG - + is_big=0
2025-09-22 00:00:06,896: DEBUG - + not_mandatory=0
2025-09-22 00:00:06,896: DEBUG - + BACKUP_CORE_ONLY=0
2025-09-22 00:00:06,896: DEBUG - + test -n ''
2025-09-22 00:00:06,896: DEBUG - + '[' '!' -e /etc/yunohost/certs ']'
2025-09-22 00:00:06,897: DEBUG - ++ realpath /etc/yunohost/certs
2025-09-22 00:00:06,897: DEBUG - + src_path=/etc/yunohost/certs
2025-09-22 00:00:06,897: DEBUG - + [[ -z /home/yunohost.backup/tmp/auto_conf/conf/ynh/certs ]]
2025-09-22 00:00:06,897: DEBUG - + [[ / == \/ ]]
2025-09-22 00:00:06,897: DEBUG - + dest_path=conf/ynh/certs
2025-09-22 00:00:06,897: DEBUG - + [[ c == \/ ]]
2025-09-22 00:00:06,898: DEBUG - + [[ s == \/ ]]
2025-09-22 00:00:06,898: DEBUG - + [[ -e conf/ynh/certs ]]
2025-09-22 00:00:06,898: DEBUG - + local rel_dir=
2025-09-22 00:00:06,898: DEBUG - + rel_dir=/
2025-09-22 00:00:06,898: DEBUG - + dest_path=/conf/ynh/certs
2025-09-22 00:00:06,898: DEBUG - + dest_path=conf/ynh/certs
2025-09-22 00:00:06,898: DEBUG - ++ echo /etc/yunohost/certs
2025-09-22 00:00:06,898: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-22 00:00:06,900: DEBUG - + local src=/etc/yunohost/certs
2025-09-22 00:00:06,900: DEBUG - ++ echo conf/ynh/certs
2025-09-22 00:00:06,900: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-22 00:00:06,902: DEBUG - + local dest=conf/ynh/certs
2025-09-22 00:00:06,903: DEBUG - ++ dirname /home/yunohost.backup/tmp/auto_conf/conf/ynh/certs
2025-09-22 00:00:06,904: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/auto_conf/conf/ynh
2025-09-22 00:00:07,005: 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-22 00:00:07,009: DEBUG - + set -eu
2025-09-22 00:00:07,009: DEBUG - + source /usr/share/yunohost/helpers
2025-09-22 00:00:07,010: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2025-09-22 00:00:07,011: DEBUG - +++ cd -- /usr/share/yunohost
2025-09-22 00:00:07,011: DEBUG - +++ pwd
2025-09-22 00:00:07,011: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2025-09-22 00:00:07,011: DEBUG - ++ YNH_HELPERS_VERSION=1
2025-09-22 00:00:07,013: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2025-09-22 00:00:07,013: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2025-09-22 00:00:07,039: DEBUG - + ynh_abort_if_errors
2025-09-22 00:00:07,040: DEBUG - + trap ynh_exit_properly EXIT
2025-09-22 00:00:07,040: DEBUG - + YNH_CWD=/home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files
2025-09-22 00:00:07,040: DEBUG - + mkdir -p /home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files
2025-09-22 00:00:07,041: DEBUG - + cd /home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files
2025-09-22 00:00:07,041: DEBUG - + yunohost tools shell -c 'from yunohost.regenconf import manually_modified_files; print('\''\n'\''.join(manually_modified_files()))'
2025-09-22 00:00:07,324: DEBUG - + ynh_backup --src_path=./manually_modified_files_list
2025-09-22 00:00:07,353: DEBUG - + dest_path=
2025-09-22 00:00:07,353: DEBUG - + is_big=0
2025-09-22 00:00:07,353: DEBUG - + not_mandatory=0
2025-09-22 00:00:07,353: DEBUG - + BACKUP_CORE_ONLY=0
2025-09-22 00:00:07,353: DEBUG - + test -n ''
2025-09-22 00:00:07,353: DEBUG - + '[' '!' -e ./manually_modified_files_list ']'
2025-09-22 00:00:07,353: DEBUG - ++ realpath ./manually_modified_files_list
2025-09-22 00:00:07,354: DEBUG - + src_path=/home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files/manually_modified_files_list
2025-09-22 00:00:07,354: DEBUG - + [[ -z '' ]]
2025-09-22 00:00:07,354: DEBUG - + dest_path=home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files/manually_modified_files_list
2025-09-22 00:00:07,354: DEBUG - + [[ -e home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files/manually_modified_files_list ]]
2025-09-22 00:00:07,354: DEBUG - + local rel_dir=/conf/manually_modified_files
2025-09-22 00:00:07,355: DEBUG - + rel_dir=/conf/manually_modified_files/
2025-09-22 00:00:07,355: DEBUG - + dest_path=/conf/manually_modified_files/home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files/manually_modified_files_list
2025-09-22 00:00:07,355: DEBUG - + dest_path=conf/manually_modified_files/home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files/manually_modified_files_list
2025-09-22 00:00:07,355: DEBUG - ++ echo /home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files/manually_modified_files_list
2025-09-22 00:00:07,355: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-22 00:00:07,356: DEBUG - + local src=/home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files/manually_modified_files_list
2025-09-22 00:00:07,357: DEBUG - ++ echo conf/manually_modified_files/home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files/manually_modified_files_list
2025-09-22 00:00:07,357: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-22 00:00:07,359: DEBUG - + local dest=conf/manually_modified_files/home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files/manually_modified_files_list
2025-09-22 00:00:07,360: 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-22 00:00:07,361: 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-22 00:00:07,363: DEBUG - ++ cat ./manually_modified_files_list
2025-09-22 00:00:07,379: DEBUG - + for file in $(cat ./manually_modified_files_list)
2025-09-22 00:00:07,379: DEBUG - + [[ -e /etc/nginx/conf.d/security.conf.inc ]]
2025-09-22 00:00:07,379: DEBUG - + ynh_backup --src_path=/etc/nginx/conf.d/security.conf.inc
2025-09-22 00:00:07,407: DEBUG - + dest_path=
2025-09-22 00:00:07,407: DEBUG - + is_big=0
2025-09-22 00:00:07,408: DEBUG - + not_mandatory=0
2025-09-22 00:00:07,408: DEBUG - + BACKUP_CORE_ONLY=0
2025-09-22 00:00:07,408: DEBUG - + test -n ''
2025-09-22 00:00:07,408: DEBUG - + '[' '!' -e /etc/nginx/conf.d/security.conf.inc ']'
2025-09-22 00:00:07,408: DEBUG - ++ realpath /etc/nginx/conf.d/security.conf.inc
2025-09-22 00:00:07,409: DEBUG - + src_path=/etc/nginx/conf.d/security.conf.inc
2025-09-22 00:00:07,409: DEBUG - + [[ -z '' ]]
2025-09-22 00:00:07,409: DEBUG - + dest_path=etc/nginx/conf.d/security.conf.inc
2025-09-22 00:00:07,409: DEBUG - + [[ -e etc/nginx/conf.d/security.conf.inc ]]
2025-09-22 00:00:07,409: DEBUG - + local rel_dir=/conf/manually_modified_files
2025-09-22 00:00:07,409: DEBUG - + rel_dir=/conf/manually_modified_files/
2025-09-22 00:00:07,409: DEBUG - + dest_path=/conf/manually_modified_files/etc/nginx/conf.d/security.conf.inc
2025-09-22 00:00:07,409: DEBUG - + dest_path=conf/manually_modified_files/etc/nginx/conf.d/security.conf.inc
2025-09-22 00:00:07,410: DEBUG - ++ echo /etc/nginx/conf.d/security.conf.inc
2025-09-22 00:00:07,410: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-22 00:00:07,411: DEBUG - + local src=/etc/nginx/conf.d/security.conf.inc
2025-09-22 00:00:07,412: DEBUG - ++ echo conf/manually_modified_files/etc/nginx/conf.d/security.conf.inc
2025-09-22 00:00:07,412: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-22 00:00:07,414: DEBUG - + local dest=conf/manually_modified_files/etc/nginx/conf.d/security.conf.inc
2025-09-22 00:00:07,414: DEBUG - ++ dirname /home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files/etc/nginx/conf.d/security.conf.inc
2025-09-22 00:00:07,415: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files/etc/nginx/conf.d
2025-09-22 00:00:07,417: DEBUG - + for file in $(cat ./manually_modified_files_list)
2025-09-22 00:00:07,417: DEBUG - + [[ -e /etc/cron.d/yunohost-dyndns ]]
2025-09-22 00:00:07,417: DEBUG - + ynh_backup --src_path=/etc/cron.d/yunohost-dyndns
2025-09-22 00:00:07,446: DEBUG - + dest_path=
2025-09-22 00:00:07,446: DEBUG - + is_big=0
2025-09-22 00:00:07,447: DEBUG - + not_mandatory=0
2025-09-22 00:00:07,447: DEBUG - + BACKUP_CORE_ONLY=0
2025-09-22 00:00:07,447: DEBUG - + test -n ''
2025-09-22 00:00:07,447: DEBUG - + '[' '!' -e /etc/cron.d/yunohost-dyndns ']'
2025-09-22 00:00:07,447: DEBUG - ++ realpath /etc/cron.d/yunohost-dyndns
2025-09-22 00:00:07,448: DEBUG - + src_path=/etc/cron.d/yunohost-dyndns
2025-09-22 00:00:07,448: DEBUG - + [[ -z '' ]]
2025-09-22 00:00:07,448: DEBUG - + dest_path=etc/cron.d/yunohost-dyndns
2025-09-22 00:00:07,448: DEBUG - + [[ -e etc/cron.d/yunohost-dyndns ]]
2025-09-22 00:00:07,448: DEBUG - + local rel_dir=/conf/manually_modified_files
2025-09-22 00:00:07,448: DEBUG - + rel_dir=/conf/manually_modified_files/
2025-09-22 00:00:07,448: DEBUG - + dest_path=/conf/manually_modified_files/etc/cron.d/yunohost-dyndns
2025-09-22 00:00:07,448: DEBUG - + dest_path=conf/manually_modified_files/etc/cron.d/yunohost-dyndns
2025-09-22 00:00:07,449: DEBUG - ++ echo /etc/cron.d/yunohost-dyndns
2025-09-22 00:00:07,449: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-22 00:00:07,450: DEBUG - + local src=/etc/cron.d/yunohost-dyndns
2025-09-22 00:00:07,451: DEBUG - ++ echo conf/manually_modified_files/etc/cron.d/yunohost-dyndns
2025-09-22 00:00:07,451: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-22 00:00:07,453: DEBUG - + local dest=conf/manually_modified_files/etc/cron.d/yunohost-dyndns
2025-09-22 00:00:07,453: DEBUG - ++ dirname /home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files/etc/cron.d/yunohost-dyndns
2025-09-22 00:00:07,454: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files/etc/cron.d
2025-09-22 00:00:07,456: DEBUG - + ynh_backup --src_path=/etc/ssowat/conf.json.persistent
2025-09-22 00:00:07,485: DEBUG - + dest_path=
2025-09-22 00:00:07,485: DEBUG - + is_big=0
2025-09-22 00:00:07,485: DEBUG - + not_mandatory=0
2025-09-22 00:00:07,485: DEBUG - + BACKUP_CORE_ONLY=0
2025-09-22 00:00:07,485: DEBUG - + test -n ''
2025-09-22 00:00:07,486: DEBUG - + '[' '!' -e /etc/ssowat/conf.json.persistent ']'
2025-09-22 00:00:07,486: DEBUG - ++ realpath /etc/ssowat/conf.json.persistent
2025-09-22 00:00:07,486: DEBUG - + src_path=/etc/ssowat/conf.json.persistent
2025-09-22 00:00:07,486: DEBUG - + [[ -z '' ]]
2025-09-22 00:00:07,487: DEBUG - + dest_path=etc/ssowat/conf.json.persistent
2025-09-22 00:00:07,487: DEBUG - + [[ -e etc/ssowat/conf.json.persistent ]]
2025-09-22 00:00:07,487: DEBUG - + local rel_dir=/conf/manually_modified_files
2025-09-22 00:00:07,487: DEBUG - + rel_dir=/conf/manually_modified_files/
2025-09-22 00:00:07,487: DEBUG - + dest_path=/conf/manually_modified_files/etc/ssowat/conf.json.persistent
2025-09-22 00:00:07,487: DEBUG - + dest_path=conf/manually_modified_files/etc/ssowat/conf.json.persistent
2025-09-22 00:00:07,487: DEBUG - ++ echo /etc/ssowat/conf.json.persistent
2025-09-22 00:00:07,488: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-22 00:00:07,489: DEBUG - + local src=/etc/ssowat/conf.json.persistent
2025-09-22 00:00:07,490: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2025-09-22 00:00:07,490: DEBUG - ++ echo conf/manually_modified_files/etc/ssowat/conf.json.persistent
2025-09-22 00:00:07,492: DEBUG - + local dest=conf/manually_modified_files/etc/ssowat/conf.json.persistent
2025-09-22 00:00:07,492: DEBUG - ++ dirname /home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files/etc/ssowat/conf.json.persistent
2025-09-22 00:00:07,493: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files/etc/ssowat
2025-09-22 00:00:07,495: DEBUG - + ynh_exit_properly
2025-09-22 00:00:07,495: DEBUG - + [[ '' =~ ^install$|^upgrade$|^restore$ ]]
2025-09-22 00:00:07,730: INFO - Creating a backup archive from the collected files…
2025-09-22 00:00:07,730: INFO - The archive will contain about 924KB of data.
2025-09-22 00:00:07,730: DEBUG - Calling the custom backup method 'restic_app'…
2025-09-22 00:00:07,731: 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-22 00:00:07,734: DEBUG - + set -euo pipefail
2025-09-22 00:00:07,735: DEBUG - ++ yunohost app setting restic repository
2025-09-22 00:00:07,933: DEBUG - + RESTIC_REPOSITORY_BASE=sftp://user-backup@serveur-ciible:port-ssh//home/user-backup/restic
2025-09-22 00:00:07,933: DEBUG - ++ yunohost app setting restic passphrase
2025-09-22 00:00:08,132: DEBUG - + RESTIC_PASSWORD='password-backup'
2025-09-22 00:00:08,132: DEBUG - + RESTIC_COMMAND=/var/www/restic/restic
2025-09-22 00:00:08,132: DEBUG - + LOGFILE=/var/log/restic/backup.log
2025-09-22 00:00:08,132: DEBUG - + ERRFILE=/var/log/restic/backup-error.log
2025-09-22 00:00:08,132: DEBUG - + work_dir=/home/yunohost.backup/tmp/auto_conf
2025-09-22 00:00:08,132: DEBUG - + name=auto_conf
2025-09-22 00:00:08,133: DEBUG - + size=945815
2025-09-22 00:00:08,133: DEBUG - + description=
2025-09-22 00:00:08,133: DEBUG - + case "$1" in
2025-09-22 00:00:08,133: DEBUG - + do_need_mount /home/yunohost.backup/tmp/auto_conf auto_conf 945815 ''
2025-09-22 00:00:08,133: DEBUG - + local work_dir=/home/yunohost.backup/tmp/auto_conf
2025-09-22 00:00:08,133: DEBUG - + local name=auto_conf
2025-09-22 00:00:08,133: DEBUG - + local size=945815
2025-09-22 00:00:08,133: DEBUG - + local description=
2025-09-22 00:00:08,133: DEBUG - + export RESTIC_PASSWORD
2025-09-22 00:00:08,133: DEBUG - + export RESTIC_REPOSITORY=sftp://user-backup@serveur-ciible:port-ssh//home/user-backup/restic/auto_conf
2025-09-22 00:00:08,133: DEBUG - + RESTIC_REPOSITORY=sftp://user-backup@serveur-ciible:port-ssh//home/user-backup/restic/auto_conf
2025-09-22 00:00:08,134: DEBUG - + load_env_file
2025-09-22 00:00:08,134: DEBUG - + local env_file=/var/www/restic/.env
2025-09-22 00:00:08,134: DEBUG - + '[' -f /var/www/restic/.env ']'
2025-09-22 00:00:08,134: DEBUG - + set -o allexport
2025-09-22 00:00:08,134: DEBUG - + source /var/www/restic/.env
2025-09-22 00:00:08,134: DEBUG - + set +o allexport
2025-09-22 00:00:08,134: DEBUG - + load_ssh_agent
2025-09-22 00:00:08,134: DEBUG - + local ssh_key=**********
2025-09-22 00:00:08,134: DEBUG - + '[' -z '' ']'
2025-09-22 00:00:08,134: DEBUG - ++ ssh-agent -s
2025-09-22 00:00:08,153: DEBUG - + eval 'SSH_AUTH_SOCK=/tmp/ssh-Nt69hvMnJs9Z/agent.3181132; export SSH_AUTH_SOCK;
2025-09-22 00:00:08,153: DEBUG - SSH_AGENT_PID=3181133; export SSH_AGENT_PID;
2025-09-22 00:00:08,153: DEBUG - echo Agent pid 3181133;'
2025-09-22 00:00:08,154: DEBUG - ++ SSH_AUTH_SOCK=/tmp/ssh-Nt69hvMnJs9Z/agent.3181132
2025-09-22 00:00:08,154: DEBUG - ++ export SSH_AUTH_SOCK
2025-09-22 00:00:08,154: DEBUG - ++ SSH_AGENT_PID=3181133
2025-09-22 00:00:08,154: DEBUG - ++ export SSH_AGENT_PID
2025-09-22 00:00:08,154: DEBUG - ++ echo Agent pid 3181133
2025-09-22 00:00:08,154: DEBUG - Agent pid 3181133
2025-09-22 00:00:08,154: DEBUG - + ssh-add -l
2025-09-22 00:00:08,154: DEBUG - ++ basename **********
2025-09-22 00:00:08,155: DEBUG - + grep -q id_restic_ed25519
2025-09-22 00:00:08,174: DEBUG - + '[' -f ********** ']'
2025-09-22 00:00:08,174: DEBUG - + ssh-add **********
2025-09-22 00:00:08,180: DEBUG - + trap 'ssh-agent -k > /dev/null' EXIT
2025-09-22 00:00:08,181: DEBUG - + /var/www/restic/restic cat config
2025-09-22 00:00:13,438: DEBUG - + /var/www/restic/restic init
2025-09-22 00:00:13,556: DEBUG - + ssh-agent -k
2025-09-22 00:00:13,658: 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-22 00:00:13,680: 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-22 00:00:13,684: DEBUG - + set -euo pipefail
2025-09-22 00:00:13,684: DEBUG - ++ yunohost app setting restic repository
2025-09-22 00:00:13,881: DEBUG - + RESTIC_REPOSITORY_BASE=sftp://user-backup@serveur-ciible:port-ssh//home/user-backup/restic
2025-09-22 00:00:13,881: DEBUG - ++ yunohost app setting restic passphrase
2025-09-22 00:00:14,078: DEBUG - + RESTIC_PASSWORD='password-backup'
2025-09-22 00:00:14,078: DEBUG - + RESTIC_COMMAND=/var/www/restic/restic
2025-09-22 00:00:14,078: DEBUG - + LOGFILE=/var/log/restic/backup.log
2025-09-22 00:00:14,079: DEBUG - + ERRFILE=/var/log/restic/backup-error.log
2025-09-22 00:00:14,079: DEBUG - + work_dir=/home/yunohost.backup/tmp/auto_conf
2025-09-22 00:00:14,079: DEBUG - + name=auto_conf
2025-09-22 00:00:14,079: DEBUG - + size=945815
2025-09-22 00:00:14,079: DEBUG - + description=
2025-09-22 00:00:14,079: DEBUG - + case "$1" in
2025-09-22 00:00:14,079: DEBUG - + do_backup /home/yunohost.backup/tmp/auto_conf auto_conf 945815 ''
2025-09-22 00:00:14,079: DEBUG - + local work_dir=/home/yunohost.backup/tmp/auto_conf
2025-09-22 00:00:14,079: DEBUG - + local name=auto_conf
2025-09-22 00:00:14,080: DEBUG - + local size=945815
2025-09-22 00:00:14,080: DEBUG - + local description=
2025-09-22 00:00:14,080: DEBUG - + export RESTIC_PASSWORD
2025-09-22 00:00:14,080: DEBUG - + export RESTIC_REPOSITORY=sftp://user-backup@serveur-ciible:port-ssh//home/user-backup/restic/auto_conf
2025-09-22 00:00:14,080: DEBUG - + RESTIC_REPOSITORY=sftp://user-backup@serveur-ciible:port-ssh//home/user-backup/restic/auto_conf
2025-09-22 00:00:14,080: DEBUG - ++ date +%d_%m_%y_%H:%M
2025-09-22 00:00:14,081: DEBUG - + current_date=22_09_25_00:00
2025-09-22 00:00:14,081: DEBUG - + load_env_file
2025-09-22 00:00:14,081: DEBUG - + local env_file=/var/www/restic/.env
2025-09-22 00:00:14,081: DEBUG - + '[' -f /var/www/restic/.env ']'
2025-09-22 00:00:14,081: DEBUG - + set -o allexport
2025-09-22 00:00:14,081: DEBUG - + source /var/www/restic/.env
2025-09-22 00:00:14,081: DEBUG - + set +o allexport
2025-09-22 00:00:14,081: DEBUG - + load_ssh_agent
2025-09-22 00:00:14,081: DEBUG - + local ssh_key=**********
2025-09-22 00:00:14,081: DEBUG - + '[' -z '' ']'
2025-09-22 00:00:14,081: DEBUG - ++ ssh-agent -s
2025-09-22 00:00:14,085: DEBUG - + eval 'SSH_AUTH_SOCK=/tmp/ssh-NyFKtaTw8mAF/agent.3181169; export SSH_AUTH_SOCK;
2025-09-22 00:00:14,086: DEBUG - SSH_AGENT_PID=3181170; export SSH_AGENT_PID;
2025-09-22 00:00:14,086: DEBUG - echo Agent pid 3181170;'
2025-09-22 00:00:14,086: DEBUG - ++ SSH_AUTH_SOCK=/tmp/ssh-NyFKtaTw8mAF/agent.3181169
2025-09-22 00:00:14,086: DEBUG - ++ export SSH_AUTH_SOCK
2025-09-22 00:00:14,086: DEBUG - ++ SSH_AGENT_PID=3181170
2025-09-22 00:00:14,086: DEBUG - ++ export SSH_AGENT_PID
2025-09-22 00:00:14,086: DEBUG - ++ echo Agent pid 3181170
2025-09-22 00:00:14,087: DEBUG - Agent pid 3181170
2025-09-22 00:00:14,087: DEBUG - + ssh-add -l
2025-09-22 00:00:14,087: DEBUG - ++ basename **********
2025-09-22 00:00:14,087: DEBUG - + grep -q id_restic_ed25519
2025-09-22 00:00:14,092: DEBUG - + '[' -f ********** ']'
2025-09-22 00:00:14,092: DEBUG - + ssh-add **********
2025-09-22 00:00:14,098: DEBUG - + trap 'ssh-agent -k > /dev/null' EXIT
2025-09-22 00:00:14,098: DEBUG - + pushd /home/yunohost.backup/tmp/auto_conf
2025-09-22 00:00:14,098: DEBUG - + /var/www/restic/restic backup ./
2025-09-22 00:00:14,230: DEBUG - + ssh-agent -k
2025-09-22 00:00:14,331: 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

Can you check the logs in /var/log/restic/backup-error.log especially any line starting with ā€œFatal:ā€. Don’t hesitate to filter the user and server address.

1 Like

My bad, there is an issue with ssh/sftp setup :

pam_unix(sshd:session): session opened for user user-backup(uid=xxxxx) by (uid=0)
New session 20703 of user user-backup
fatal: bad ownership or modes for chroot directory "/home/user-backup"
pam_unix(sshd:session): session closed for user user-backup
  • Target server only allow SSH-key connection.
  • user-backup has a ED25519 ssh key without password
    • While attempted a ssh connection with this user from source server, the ssh key is accepted, according to auth.log (see below)
  • user-backup is a yunohost user and has SFTP & SSH permissions

Extract from /etc/ssh/sshd_config :

# root login is allowed on local networks
# It's meant to be a backup solution in case LDAP is down and
# user admin can't be used...
# If the server is a VPS, it's expected that the owner of the
# server has access to a web console through which to log in.
Match Address 192.168.0.0/16,10.0.0.0/8,172.16.0.0/12,169.254.0.0/16,fe80::/10,fd00::/8
   PermitRootLogin yes
   Match User user-backup
   ChrootDirectory %h
   ForceCommand internal-sftp
   AllowTcpForwarding no
   X11Forwarding no
Match User user-backup
   ChrootDirectory %h
   ForceCommand internal-sftp
   AllowTcpForwarding no
   X11Forwarding no

Oh I understand!

The destination server is setting a chroot, it means that when you connect to user-backup via SFTP, you can’t see all the folder. On YunoHost, ā€œchrootedā€ users see /home as / so their home directory, usually /home/user-backup becomes /user-backup when connected via SFTP.

Try to change the backup directory to sftp://user_de_backup@server_cible.tld:port_ssh//user_de_backup

Still failed with fatal: bad ownership or modes for chroot directory :thinking:

Can you verify that /home is owned by root:root, /home/user_de_backup owned by user_de_backup:user_de_backup and that it has read/write access ?

Also if the destination server is a YunoHost server, don’t edit manually sshd_config and use YNH built-in permission system

Folders own & mod are ok.

sshd_config has been hardened using a hook, otherwise it is managed by Yunohost.

Regenerating the ssh service on target server removed the Match User user-backup block form /etc/ssh/sshd_config

  • ssh from user-backup works
  • sftp connection works too
  • restarting restic or restic_check leads to a fail, but no more fatalin /var/log/auth.log
Starting session: subsystem 'sftp' for user-backup from source-server-IP port 48258 id 0
Close session: user user-backup from source-server-IP port 48258 id 0
Received disconnect from source-server-IP port 48258:11: disconnected by user
Disconnected from user user-backup source-server-IP port 48258
pam_unix(sshd:session): session closed for user user-backup

Nice ! So now, let’s find why restic and restic_check are failing. Can you check the output of journalctl -u restic -e and tail /var/log/restic/backup-error.log ? There should be more details about the error in these logs

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.

Hello,

Sorry, I was off a few weeks.

I replaced the URL sftp:userby sftp://user and chmoded 755 /etc/yunohost/hooks.d/backup_method/05-restic_app on source server and target folder on target server.

It seems it worked :slight_smile:

Thanks a lot for your support.

1 Like

Hello. I’m facing the exact same issue (same error message), and though I followed everything as described, I cannot make Restic work! Can anyone help? @Kit , are you sure you didn’t do something else? Thank you

Hello,

Restic is now broken for another reason : GitHub Ā· Where software is built

1 Like

Thank you, I hadn’t seen this.

I have the same error. Waiting for suggestions on how to fix it.

Hi, can you share more logs such as the mail you received from restic, the logs in /var/log/restic/backup-error.log especially any line starting with ā€œFatal:ā€. Don’t hesitate to filter your server address and details.

Apparently a connection error :

subprocess ssh: Host key verification failed.
Fatal: unable to open repository at sftp://user@targetserver.noho.st:9999//home/user/restic/auto_zerobin: unable to start the sftp session, error: error receiving version packet from server: server unexpectedly closed connection: unexpected EOF

Tried a regular connection with this user :

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0660 for '/home/user/.ssh/id_ed25519' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "/home/user/.ssh/id_ed25519": bad permissions

I did a chmod 600 on this file, iā€˜ll retry the backup.

I redacted sensitive data :crossed_fingers: and the logs are here https://paste.yunohost.org/raw/etejicafog

I’m not using SFTP but B2 (that I use normally with restic on other non-Yunohost systems). The repository was already initialized separately.