Borg ne fait pas de backup: "WARNING - Cannot stat /root/.ssh/known_hosts: No such file or directory"

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 12.0.7
What app is this about: Borg

Describe your issue

Bonjour,

J’ai installé Borg et j’ai essayé de faire un backup en local (sur le hdd de ma freebox). Cependant cela ne fonctionne pas (le backup ne se fait pas).
En cherchant sur ce forum (Le service borg est en défault depuis la migration de Yunohost 12), j’ai fait une MAJ de Borg: sudo yunohost app upgrade borg --force.
Le problème est toujours présent.

Share relevant logs or error messages

args:
apps: null
description: null
dry_run: false
methods:

  • borg_app
    name: auto_conf
    output_directory: null
    system:
  • conf_ldap
  • conf_ynh_settings
  • conf_ynh_certs
  • conf_manually_modified_files
    ended_at: 2024-11-19 16:58:29.365192
    error: “\xC9chec de la m\xE9thode de sauvegarde personnalis\xE9e \xE0 l’\xE9tape ‘backup’”
    interface: cli
    operation: backup_create
    parent: null
    related_to:
    started_at: 2024-11-19 16:58:25.441444
    success: false
    yunohost_version: 12.0.7

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

2024-11-19 17:58:25,448: DEBUG - Exécution des scripts de sauvegarde…
2024-11-19 17:58:25,450: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "/usr/share/yunohost/hooks/backup/05-conf_ldap" /home/yunohost.backup/tmp/auto_conf 7>&1']'
2024-11-19 17:58:25,453: DEBUG - + set -eu
2024-11-19 17:58:25,453: DEBUG - + source /usr/share/yunohost/helpers
2024-11-19 17:58:25,454: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2024-11-19 17:58:25,454: DEBUG - +++ cd -- /usr/share/yunohost
2024-11-19 17:58:25,455: DEBUG - +++ pwd
2024-11-19 17:58:25,455: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2024-11-19 17:58:25,455: DEBUG - ++ YNH_HELPERS_VERSION=1
2024-11-19 17:58:25,457: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2024-11-19 17:58:25,457: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2024-11-19 17:58:25,476: DEBUG - + backup_dir=/home/yunohost.backup/tmp/auto_conf/conf/ldap
2024-11-19 17:58:25,476: DEBUG - + ynh_backup /etc/ldap/ldap.conf /home/yunohost.backup/tmp/auto_conf/conf/ldap/ldap.conf
2024-11-19 17:58:25,514: DEBUG - + dest_path=/home/yunohost.backup/tmp/auto_conf/conf/ldap/ldap.conf
2024-11-19 17:58:25,514: DEBUG - + is_big=0
2024-11-19 17:58:25,514: DEBUG - + not_mandatory=0
2024-11-19 17:58:25,514: DEBUG - + BACKUP_CORE_ONLY=0
2024-11-19 17:58:25,514: DEBUG - + test -n ''
2024-11-19 17:58:25,515: DEBUG - + '[' '!' -e /etc/ldap/ldap.conf ']'
2024-11-19 17:58:25,515: DEBUG - ++ realpath /etc/ldap/ldap.conf
2024-11-19 17:58:25,516: DEBUG - + src_path=/etc/ldap/ldap.conf
2024-11-19 17:58:25,516: DEBUG - + [[ -z /home/yunohost.backup/tmp/auto_conf/conf/ldap/ldap.conf ]]
2024-11-19 17:58:25,516: DEBUG - + [[ / == \/ ]]
2024-11-19 17:58:25,516: DEBUG - + dest_path=conf/ldap/ldap.conf
2024-11-19 17:58:25,516: DEBUG - + [[ c == \/ ]]
2024-11-19 17:58:25,516: DEBUG - + [[ f == \/ ]]
2024-11-19 17:58:25,516: DEBUG - + [[ -e conf/ldap/ldap.conf ]]
2024-11-19 17:58:25,516: DEBUG - + local rel_dir=
2024-11-19 17:58:25,516: DEBUG - + rel_dir=/
2024-11-19 17:58:25,516: DEBUG - + dest_path=/conf/ldap/ldap.conf
2024-11-19 17:58:25,516: DEBUG - + dest_path=conf/ldap/ldap.conf
2024-11-19 17:58:25,516: DEBUG - ++ echo /etc/ldap/ldap.conf
2024-11-19 17:58:25,516: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2024-11-19 17:58:25,518: DEBUG - + local src=/etc/ldap/ldap.conf
2024-11-19 17:58:25,519: DEBUG - ++ echo conf/ldap/ldap.conf
2024-11-19 17:58:25,519: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2024-11-19 17:58:25,520: DEBUG - + local dest=conf/ldap/ldap.conf
2024-11-19 17:58:25,521: DEBUG - ++ dirname /home/yunohost.backup/tmp/auto_conf/conf/ldap/ldap.conf
2024-11-19 17:58:25,521: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/auto_conf/conf/ldap
2024-11-19 17:58:25,523: DEBUG - + slapcat -b cn=config -l /home/yunohost.backup/tmp/auto_conf/conf/ldap/cn=config.master.ldif
2024-11-19 17:58:25,537: DEBUG - + slapcat -b dc=yunohost,dc=org -l /home/yunohost.backup/tmp/auto_conf/conf/ldap/dc=yunohost-dc=org.ldif
2024-11-19 17:58:25,639: 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']'
2024-11-19 17:58:25,647: DEBUG - + set -eu
2024-11-19 17:58:25,647: DEBUG - + source /usr/share/yunohost/helpers
2024-11-19 17:58:25,649: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2024-11-19 17:58:25,651: DEBUG - +++ cd -- /usr/share/yunohost
2024-11-19 17:58:25,652: DEBUG - +++ pwd
2024-11-19 17:58:25,652: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2024-11-19 17:58:25,652: DEBUG - ++ YNH_HELPERS_VERSION=1
2024-11-19 17:58:25,658: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2024-11-19 17:58:25,659: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2024-11-19 17:58:25,710: DEBUG - + backup_dir=/home/yunohost.backup/tmp/auto_conf/conf/ynh
2024-11-19 17:58:25,710: DEBUG - + ynh_backup /etc/yunohost/firewall.yml /home/yunohost.backup/tmp/auto_conf/conf/ynh/firewall.yml
2024-11-19 17:58:25,749: DEBUG - + dest_path=/home/yunohost.backup/tmp/auto_conf/conf/ynh/firewall.yml
2024-11-19 17:58:25,749: DEBUG - + is_big=0
2024-11-19 17:58:25,749: DEBUG - + not_mandatory=0
2024-11-19 17:58:25,749: DEBUG - + BACKUP_CORE_ONLY=0
2024-11-19 17:58:25,749: DEBUG - + test -n ''
2024-11-19 17:58:25,749: DEBUG - + '[' '!' -e /etc/yunohost/firewall.yml ']'
2024-11-19 17:58:25,750: DEBUG - ++ realpath /etc/yunohost/firewall.yml
2024-11-19 17:58:25,750: DEBUG - + src_path=/etc/yunohost/firewall.yml
2024-11-19 17:58:25,751: DEBUG - + [[ -z /home/yunohost.backup/tmp/auto_conf/conf/ynh/firewall.yml ]]
2024-11-19 17:58:25,751: DEBUG - + [[ / == \/ ]]
2024-11-19 17:58:25,751: DEBUG - + dest_path=conf/ynh/firewall.yml
2024-11-19 17:58:25,751: DEBUG - + [[ c == \/ ]]
2024-11-19 17:58:25,751: DEBUG - + [[ l == \/ ]]
2024-11-19 17:58:25,751: DEBUG - + [[ -e conf/ynh/firewall.yml ]]
2024-11-19 17:58:25,751: DEBUG - + local rel_dir=
2024-11-19 17:58:25,751: DEBUG - + rel_dir=/
2024-11-19 17:58:25,751: DEBUG - + dest_path=/conf/ynh/firewall.yml
2024-11-19 17:58:25,751: DEBUG - + dest_path=conf/ynh/firewall.yml
2024-11-19 17:58:25,751: DEBUG - ++ echo /etc/yunohost/firewall.yml
2024-11-19 17:58:25,751: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2024-11-19 17:58:25,753: DEBUG - + local src=/etc/yunohost/firewall.yml
2024-11-19 17:58:25,753: DEBUG - ++ echo conf/ynh/firewall.yml
2024-11-19 17:58:25,754: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2024-11-19 17:58:25,755: DEBUG - + local dest=conf/ynh/firewall.yml
2024-11-19 17:58:25,755: DEBUG - ++ dirname /home/yunohost.backup/tmp/auto_conf/conf/ynh/firewall.yml
2024-11-19 17:58:25,756: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/auto_conf/conf/ynh
2024-11-19 17:58:25,758: DEBUG - + ynh_backup /etc/yunohost/current_host /home/yunohost.backup/tmp/auto_conf/conf/ynh/current_host
2024-11-19 17:58:25,797: DEBUG - + dest_path=/home/yunohost.backup/tmp/auto_conf/conf/ynh/current_host
2024-11-19 17:58:25,797: DEBUG - + is_big=0
2024-11-19 17:58:25,797: DEBUG - + not_mandatory=0
2024-11-19 17:58:25,797: DEBUG - + BACKUP_CORE_ONLY=0
2024-11-19 17:58:25,797: DEBUG - + test -n ''
2024-11-19 17:58:25,797: DEBUG - + '[' '!' -e /etc/yunohost/current_host ']'
2024-11-19 17:58:25,797: DEBUG - ++ realpath /etc/yunohost/current_host
2024-11-19 17:58:25,798: DEBUG - + src_path=/etc/yunohost/current_host
2024-11-19 17:58:25,798: DEBUG - + [[ -z /home/yunohost.backup/tmp/auto_conf/conf/ynh/current_host ]]
2024-11-19 17:58:25,799: DEBUG - + [[ / == \/ ]]
2024-11-19 17:58:25,799: DEBUG - + dest_path=conf/ynh/current_host
2024-11-19 17:58:25,799: DEBUG - + [[ c == \/ ]]
2024-11-19 17:58:25,799: DEBUG - + [[ t == \/ ]]
2024-11-19 17:58:25,799: DEBUG - + [[ -e conf/ynh/current_host ]]
2024-11-19 17:58:25,799: DEBUG - + local rel_dir=
2024-11-19 17:58:25,799: DEBUG - + rel_dir=/
2024-11-19 17:58:25,799: DEBUG - + dest_path=/conf/ynh/current_host
2024-11-19 17:58:25,799: DEBUG - + dest_path=conf/ynh/current_host
2024-11-19 17:58:25,799: DEBUG - ++ echo /etc/yunohost/current_host
2024-11-19 17:58:25,799: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2024-11-19 17:58:25,801: DEBUG - + local src=/etc/yunohost/current_host
2024-11-19 17:58:25,801: DEBUG - ++ echo conf/ynh/current_host
2024-11-19 17:58:25,801: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2024-11-19 17:58:25,803: DEBUG - + local dest=conf/ynh/current_host
2024-11-19 17:58:25,803: DEBUG - ++ dirname /home/yunohost.backup/tmp/auto_conf/conf/ynh/current_host
2024-11-19 17:58:25,804: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/auto_conf/conf/ynh
2024-11-19 17:58:25,806: DEBUG - + '[' '!' -d /etc/yunohost/portal ']'
2024-11-19 17:58:25,806: DEBUG - + ynh_backup /etc/yunohost/portal /home/yunohost.backup/tmp/auto_conf/conf/ynh/portal
2024-11-19 17:58:25,845: DEBUG - + dest_path=/home/yunohost.backup/tmp/auto_conf/conf/ynh/portal
2024-11-19 17:58:25,845: DEBUG - + is_big=0
2024-11-19 17:58:25,845: DEBUG - + not_mandatory=0
2024-11-19 17:58:25,845: DEBUG - + BACKUP_CORE_ONLY=0
2024-11-19 17:58:25,845: DEBUG - + test -n ''
2024-11-19 17:58:25,845: DEBUG - + '[' '!' -e /etc/yunohost/portal ']'
2024-11-19 17:58:25,845: DEBUG - ++ realpath /etc/yunohost/portal
2024-11-19 17:58:25,846: DEBUG - + src_path=/etc/yunohost/portal
2024-11-19 17:58:25,846: DEBUG - + [[ -z /home/yunohost.backup/tmp/auto_conf/conf/ynh/portal ]]
2024-11-19 17:58:25,846: DEBUG - + [[ / == \/ ]]
2024-11-19 17:58:25,846: DEBUG - + dest_path=conf/ynh/portal
2024-11-19 17:58:25,846: DEBUG - + [[ c == \/ ]]
2024-11-19 17:58:25,846: DEBUG - + [[ l == \/ ]]
2024-11-19 17:58:25,846: DEBUG - + [[ -e conf/ynh/portal ]]
2024-11-19 17:58:25,847: DEBUG - + local rel_dir=
2024-11-19 17:58:25,847: DEBUG - + rel_dir=/
2024-11-19 17:58:25,847: DEBUG - + dest_path=/conf/ynh/portal
2024-11-19 17:58:25,847: DEBUG - + dest_path=conf/ynh/portal
2024-11-19 17:58:25,847: DEBUG - ++ echo /etc/yunohost/portal
2024-11-19 17:58:25,847: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2024-11-19 17:58:25,848: DEBUG - + local src=/etc/yunohost/portal
2024-11-19 17:58:25,849: DEBUG - ++ echo conf/ynh/portal
2024-11-19 17:58:25,849: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2024-11-19 17:58:25,851: DEBUG - + local dest=conf/ynh/portal
2024-11-19 17:58:25,851: DEBUG - ++ dirname /home/yunohost.backup/tmp/auto_conf/conf/ynh/portal
2024-11-19 17:58:25,852: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/auto_conf/conf/ynh
2024-11-19 17:58:25,853: DEBUG - + '[' '!' -d /etc/yunohost/domains ']'
2024-11-19 17:58:25,853: DEBUG - + ynh_backup /etc/yunohost/domains /home/yunohost.backup/tmp/auto_conf/conf/ynh/domains
2024-11-19 17:58:25,893: DEBUG - + dest_path=/home/yunohost.backup/tmp/auto_conf/conf/ynh/domains
2024-11-19 17:58:25,893: DEBUG - + is_big=0
2024-11-19 17:58:25,893: DEBUG - + not_mandatory=0
2024-11-19 17:58:25,893: DEBUG - + BACKUP_CORE_ONLY=0
2024-11-19 17:58:25,893: DEBUG - + test -n ''
2024-11-19 17:58:25,893: DEBUG - + '[' '!' -e /etc/yunohost/domains ']'
2024-11-19 17:58:25,893: DEBUG - ++ realpath /etc/yunohost/domains
2024-11-19 17:58:25,894: DEBUG - + src_path=/etc/yunohost/domains
2024-11-19 17:58:25,894: DEBUG - + [[ -z /home/yunohost.backup/tmp/auto_conf/conf/ynh/domains ]]
2024-11-19 17:58:25,894: DEBUG - + [[ / == \/ ]]
2024-11-19 17:58:25,894: DEBUG - + dest_path=conf/ynh/domains
2024-11-19 17:58:25,894: DEBUG - + [[ c == \/ ]]
2024-11-19 17:58:25,894: DEBUG - + [[ s == \/ ]]
2024-11-19 17:58:25,894: DEBUG - + [[ -e conf/ynh/domains ]]
2024-11-19 17:58:25,894: DEBUG - + local rel_dir=
2024-11-19 17:58:25,894: DEBUG - + rel_dir=/
2024-11-19 17:58:25,895: DEBUG - + dest_path=/conf/ynh/domains
2024-11-19 17:58:25,895: DEBUG - + dest_path=conf/ynh/domains
2024-11-19 17:58:25,895: DEBUG - ++ echo /etc/yunohost/domains
2024-11-19 17:58:25,895: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2024-11-19 17:58:25,896: DEBUG - + local src=/etc/yunohost/domains
2024-11-19 17:58:25,897: DEBUG - ++ echo conf/ynh/domains
2024-11-19 17:58:25,897: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2024-11-19 17:58:25,898: DEBUG - + local dest=conf/ynh/domains
2024-11-19 17:58:25,899: DEBUG - ++ dirname /home/yunohost.backup/tmp/auto_conf/conf/ynh/domains
2024-11-19 17:58:25,900: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/auto_conf/conf/ynh
2024-11-19 17:58:25,901: DEBUG - + '[' '!' -e /etc/yunohost/settings.yml ']'
2024-11-19 17:58:25,901: DEBUG - + ynh_backup /etc/yunohost/settings.yml /home/yunohost.backup/tmp/auto_conf/conf/ynh/settings.yml
2024-11-19 17:58:25,941: DEBUG - + dest_path=/home/yunohost.backup/tmp/auto_conf/conf/ynh/settings.yml
2024-11-19 17:58:25,941: DEBUG - + is_big=0
2024-11-19 17:58:25,941: DEBUG - + not_mandatory=0
2024-11-19 17:58:25,941: DEBUG - + BACKUP_CORE_ONLY=0
2024-11-19 17:58:25,941: DEBUG - + test -n ''
2024-11-19 17:58:25,941: DEBUG - + '[' '!' -e /etc/yunohost/settings.yml ']'
2024-11-19 17:58:25,941: DEBUG - ++ realpath /etc/yunohost/settings.yml
2024-11-19 17:58:25,942: DEBUG - + src_path=/etc/yunohost/settings.yml
2024-11-19 17:58:25,942: DEBUG - + [[ -z /home/yunohost.backup/tmp/auto_conf/conf/ynh/settings.yml ]]
2024-11-19 17:58:25,942: DEBUG - + [[ / == \/ ]]
2024-11-19 17:58:25,942: DEBUG - + dest_path=conf/ynh/settings.yml
2024-11-19 17:58:25,942: DEBUG - + [[ c == \/ ]]
2024-11-19 17:58:25,942: DEBUG - + [[ l == \/ ]]
2024-11-19 17:58:25,942: DEBUG - + [[ -e conf/ynh/settings.yml ]]
2024-11-19 17:58:25,942: DEBUG - + local rel_dir=
2024-11-19 17:58:25,942: DEBUG - + rel_dir=/
2024-11-19 17:58:25,942: DEBUG - + dest_path=/conf/ynh/settings.yml
2024-11-19 17:58:25,943: DEBUG - + dest_path=conf/ynh/settings.yml
2024-11-19 17:58:25,943: DEBUG - ++ echo /etc/yunohost/settings.yml
2024-11-19 17:58:25,943: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2024-11-19 17:58:25,944: DEBUG - + local src=/etc/yunohost/settings.yml
2024-11-19 17:58:25,945: DEBUG - ++ echo conf/ynh/settings.yml
2024-11-19 17:58:25,945: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2024-11-19 17:58:25,946: DEBUG - + local dest=conf/ynh/settings.yml
2024-11-19 17:58:25,947: DEBUG - ++ dirname /home/yunohost.backup/tmp/auto_conf/conf/ynh/settings.yml
2024-11-19 17:58:25,948: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/auto_conf/conf/ynh
2024-11-19 17:58:25,949: DEBUG - + '[' '!' -d /etc/yunohost/dyndns ']'
2024-11-19 17:58:25,949: DEBUG - + ynh_backup /etc/yunohost/dyndns /home/yunohost.backup/tmp/auto_conf/conf/ynh/dyndns
2024-11-19 17:58:25,989: DEBUG - + dest_path=/home/yunohost.backup/tmp/auto_conf/conf/ynh/dyndns
2024-11-19 17:58:25,989: DEBUG - + is_big=0
2024-11-19 17:58:25,989: DEBUG - + not_mandatory=0
2024-11-19 17:58:25,989: DEBUG - + BACKUP_CORE_ONLY=0
2024-11-19 17:58:25,989: DEBUG - + test -n ''
2024-11-19 17:58:25,989: DEBUG - + '[' '!' -e /etc/yunohost/dyndns ']'
2024-11-19 17:58:25,989: DEBUG - ++ realpath /etc/yunohost/dyndns
2024-11-19 17:58:25,990: DEBUG - + src_path=/etc/yunohost/dyndns
2024-11-19 17:58:25,990: DEBUG - + [[ -z /home/yunohost.backup/tmp/auto_conf/conf/ynh/dyndns ]]
2024-11-19 17:58:25,990: DEBUG - + [[ / == \/ ]]
2024-11-19 17:58:25,990: DEBUG - + dest_path=conf/ynh/dyndns
2024-11-19 17:58:25,990: DEBUG - + [[ c == \/ ]]
2024-11-19 17:58:25,990: DEBUG - + [[ s == \/ ]]
2024-11-19 17:58:25,990: DEBUG - + [[ -e conf/ynh/dyndns ]]
2024-11-19 17:58:25,990: DEBUG - + local rel_dir=
2024-11-19 17:58:25,990: DEBUG - + rel_dir=/
2024-11-19 17:58:25,991: DEBUG - + dest_path=/conf/ynh/dyndns
2024-11-19 17:58:25,991: DEBUG - + dest_path=conf/ynh/dyndns
2024-11-19 17:58:25,991: DEBUG - ++ echo /etc/yunohost/dyndns
2024-11-19 17:58:25,991: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2024-11-19 17:58:25,992: DEBUG - + local src=/etc/yunohost/dyndns
2024-11-19 17:58:25,993: DEBUG - ++ echo conf/ynh/dyndns
2024-11-19 17:58:25,993: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2024-11-19 17:58:25,994: DEBUG - + local dest=conf/ynh/dyndns
2024-11-19 17:58:25,995: DEBUG - ++ dirname /home/yunohost.backup/tmp/auto_conf/conf/ynh/dyndns
2024-11-19 17:58:25,996: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/auto_conf/conf/ynh
2024-11-19 17:58:25,997: DEBUG - + '[' '!' -d /etc/dkim ']'
2024-11-19 17:58:25,997: DEBUG - + ynh_backup /etc/dkim /home/yunohost.backup/tmp/auto_conf/conf/ynh/dkim
2024-11-19 17:58:26,037: DEBUG - + dest_path=/home/yunohost.backup/tmp/auto_conf/conf/ynh/dkim
2024-11-19 17:58:26,037: DEBUG - + is_big=0
2024-11-19 17:58:26,037: DEBUG - + not_mandatory=0
2024-11-19 17:58:26,037: DEBUG - + BACKUP_CORE_ONLY=0
2024-11-19 17:58:26,037: DEBUG - + test -n ''
2024-11-19 17:58:26,037: DEBUG - + '[' '!' -e /etc/dkim ']'
2024-11-19 17:58:26,037: DEBUG - ++ realpath /etc/dkim
2024-11-19 17:58:26,038: DEBUG - + src_path=/etc/dkim
2024-11-19 17:58:26,038: DEBUG - + [[ -z /home/yunohost.backup/tmp/auto_conf/conf/ynh/dkim ]]
2024-11-19 17:58:26,038: DEBUG - + [[ / == \/ ]]
2024-11-19 17:58:26,038: DEBUG - + dest_path=conf/ynh/dkim
2024-11-19 17:58:26,038: DEBUG - + [[ c == \/ ]]
2024-11-19 17:58:26,038: DEBUG - + [[ m == \/ ]]
2024-11-19 17:58:26,038: DEBUG - + [[ -e conf/ynh/dkim ]]
2024-11-19 17:58:26,039: DEBUG - + local rel_dir=
2024-11-19 17:58:26,039: DEBUG - + rel_dir=/
2024-11-19 17:58:26,039: DEBUG - + dest_path=/conf/ynh/dkim
2024-11-19 17:58:26,039: DEBUG - + dest_path=conf/ynh/dkim
2024-11-19 17:58:26,039: DEBUG - ++ echo /etc/dkim
2024-11-19 17:58:26,039: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2024-11-19 17:58:26,040: DEBUG - + local src=/etc/dkim
2024-11-19 17:58:26,041: DEBUG - ++ echo conf/ynh/dkim
2024-11-19 17:58:26,041: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2024-11-19 17:58:26,043: DEBUG - + local dest=conf/ynh/dkim
2024-11-19 17:58:26,043: DEBUG - ++ dirname /home/yunohost.backup/tmp/auto_conf/conf/ynh/dkim
2024-11-19 17:58:26,044: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/auto_conf/conf/ynh
2024-11-19 17:58:26,146: 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']'
2024-11-19 17:58:26,154: DEBUG - + set -eu
2024-11-19 17:58:26,155: DEBUG - + source /usr/share/yunohost/helpers
2024-11-19 17:58:26,156: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2024-11-19 17:58:26,159: DEBUG - +++ cd -- /usr/share/yunohost
2024-11-19 17:58:26,159: DEBUG - +++ pwd
2024-11-19 17:58:26,160: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2024-11-19 17:58:26,160: DEBUG - ++ YNH_HELPERS_VERSION=1
2024-11-19 17:58:26,166: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2024-11-19 17:58:26,166: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2024-11-19 17:58:26,219: DEBUG - + backup_dir=/home/yunohost.backup/tmp/auto_conf/conf/ynh/certs
2024-11-19 17:58:26,219: DEBUG - + ynh_backup /etc/yunohost/certs /home/yunohost.backup/tmp/auto_conf/conf/ynh/certs
2024-11-19 17:58:26,259: DEBUG - + dest_path=/home/yunohost.backup/tmp/auto_conf/conf/ynh/certs
2024-11-19 17:58:26,259: DEBUG - + is_big=0
2024-11-19 17:58:26,259: DEBUG - + not_mandatory=0
2024-11-19 17:58:26,259: DEBUG - + BACKUP_CORE_ONLY=0
2024-11-19 17:58:26,259: DEBUG - + test -n ''
2024-11-19 17:58:26,259: DEBUG - + '[' '!' -e /etc/yunohost/certs ']'
2024-11-19 17:58:26,259: DEBUG - ++ realpath /etc/yunohost/certs
2024-11-19 17:58:26,260: DEBUG - + src_path=/etc/yunohost/certs
2024-11-19 17:58:26,260: DEBUG - + [[ -z /home/yunohost.backup/tmp/auto_conf/conf/ynh/certs ]]
2024-11-19 17:58:26,260: DEBUG - + [[ / == \/ ]]
2024-11-19 17:58:26,260: DEBUG - + dest_path=conf/ynh/certs
2024-11-19 17:58:26,260: DEBUG - + [[ c == \/ ]]
2024-11-19 17:58:26,260: DEBUG - + [[ s == \/ ]]
2024-11-19 17:58:26,260: DEBUG - + [[ -e conf/ynh/certs ]]
2024-11-19 17:58:26,260: DEBUG - + local rel_dir=
2024-11-19 17:58:26,260: DEBUG - + rel_dir=/
2024-11-19 17:58:26,260: DEBUG - + dest_path=/conf/ynh/certs
2024-11-19 17:58:26,261: DEBUG - + dest_path=conf/ynh/certs
2024-11-19 17:58:26,261: DEBUG - ++ echo /etc/yunohost/certs
2024-11-19 17:58:26,261: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2024-11-19 17:58:26,262: DEBUG - + local src=/etc/yunohost/certs
2024-11-19 17:58:26,263: DEBUG - ++ echo conf/ynh/certs
2024-11-19 17:58:26,263: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2024-11-19 17:58:26,264: DEBUG - + local dest=conf/ynh/certs
2024-11-19 17:58:26,265: DEBUG - ++ dirname /home/yunohost.backup/tmp/auto_conf/conf/ynh/certs
2024-11-19 17:58:26,266: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/auto_conf/conf/ynh
2024-11-19 17:58:26,368: 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']'
2024-11-19 17:58:26,376: DEBUG - + source /usr/share/yunohost/helpers
2024-11-19 17:58:26,378: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2024-11-19 17:58:26,380: DEBUG - +++ cd -- /usr/share/yunohost
2024-11-19 17:58:26,381: DEBUG - +++ pwd
2024-11-19 17:58:26,381: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2024-11-19 17:58:26,382: DEBUG - ++ YNH_HELPERS_VERSION=1
2024-11-19 17:58:26,387: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2024-11-19 17:58:26,387: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2024-11-19 17:58:26,443: DEBUG - + ynh_abort_if_errors
2024-11-19 17:58:26,443: DEBUG - + trap ynh_exit_properly EXIT
2024-11-19 17:58:26,443: DEBUG - + YNH_CWD=/home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files
2024-11-19 17:58:26,443: DEBUG - + mkdir -p /home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files
2024-11-19 17:58:26,444: DEBUG - + cd /home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files
2024-11-19 17:58:26,444: DEBUG - + yunohost tools shell -c 'from yunohost.regenconf import manually_modified_files; print('\''\n'\''.join(manually_modified_files()))'
2024-11-19 17:58:26,648: DEBUG - + ynh_backup --src_path=./manually_modified_files_list
2024-11-19 17:58:26,675: DEBUG - + dest_path=
2024-11-19 17:58:26,675: DEBUG - + is_big=0
2024-11-19 17:58:26,675: DEBUG - + not_mandatory=0
2024-11-19 17:58:26,675: DEBUG - + BACKUP_CORE_ONLY=0
2024-11-19 17:58:26,675: DEBUG - + test -n ''
2024-11-19 17:58:26,675: DEBUG - + '[' '!' -e ./manually_modified_files_list ']'
2024-11-19 17:58:26,676: DEBUG - ++ realpath ./manually_modified_files_list
2024-11-19 17:58:26,676: DEBUG - + src_path=/home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files/manually_modified_files_list
2024-11-19 17:58:26,677: DEBUG - + [[ -z '' ]]
2024-11-19 17:58:26,677: DEBUG - + dest_path=home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files/manually_modified_files_list
2024-11-19 17:58:26,677: DEBUG - + [[ -e home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files/manually_modified_files_list ]]
2024-11-19 17:58:26,677: DEBUG - + local rel_dir=/conf/manually_modified_files
2024-11-19 17:58:26,677: DEBUG - + rel_dir=/conf/manually_modified_files/
2024-11-19 17:58:26,677: DEBUG - + dest_path=/conf/manually_modified_files/home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files/manually_modified_files_list
2024-11-19 17:58:26,677: DEBUG - + dest_path=conf/manually_modified_files/home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files/manually_modified_files_list
2024-11-19 17:58:26,677: DEBUG - ++ echo /home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files/manually_modified_files_list
2024-11-19 17:58:26,677: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2024-11-19 17:58:26,679: DEBUG - + local src=/home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files/manually_modified_files_list
2024-11-19 17:58:26,680: DEBUG - ++ echo conf/manually_modified_files/home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files/manually_modified_files_list
2024-11-19 17:58:26,680: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2024-11-19 17:58:26,681: DEBUG - + local dest=conf/manually_modified_files/home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files/manually_modified_files_list
2024-11-19 17:58:26,682: 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
2024-11-19 17:58:26,683: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files/home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files
2024-11-19 17:58:26,685: DEBUG - ++ cat ./manually_modified_files_list
2024-11-19 17:58:26,686: DEBUG - + ynh_backup --src_path=/etc/ssowat/conf.json.persistent
2024-11-19 17:58:26,713: DEBUG - + dest_path=
2024-11-19 17:58:26,713: DEBUG - + is_big=0
2024-11-19 17:58:26,713: DEBUG - + not_mandatory=0
2024-11-19 17:58:26,713: DEBUG - + BACKUP_CORE_ONLY=0
2024-11-19 17:58:26,713: DEBUG - + test -n ''
2024-11-19 17:58:26,713: DEBUG - + '[' '!' -e /etc/ssowat/conf.json.persistent ']'
2024-11-19 17:58:26,713: DEBUG - ++ realpath /etc/ssowat/conf.json.persistent
2024-11-19 17:58:26,714: DEBUG - + src_path=/etc/ssowat/conf.json.persistent
2024-11-19 17:58:26,714: DEBUG - + [[ -z '' ]]
2024-11-19 17:58:26,715: DEBUG - + dest_path=etc/ssowat/conf.json.persistent
2024-11-19 17:58:26,715: DEBUG - + [[ -e etc/ssowat/conf.json.persistent ]]
2024-11-19 17:58:26,715: DEBUG - + local rel_dir=/conf/manually_modified_files
2024-11-19 17:58:26,715: DEBUG - + rel_dir=/conf/manually_modified_files/
2024-11-19 17:58:26,715: DEBUG - + dest_path=/conf/manually_modified_files/etc/ssowat/conf.json.persistent
2024-11-19 17:58:26,715: DEBUG - + dest_path=conf/manually_modified_files/etc/ssowat/conf.json.persistent
2024-11-19 17:58:26,715: DEBUG - ++ echo /etc/ssowat/conf.json.persistent
2024-11-19 17:58:26,715: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2024-11-19 17:58:26,717: DEBUG - + local src=/etc/ssowat/conf.json.persistent
2024-11-19 17:58:26,718: DEBUG - ++ echo conf/manually_modified_files/etc/ssowat/conf.json.persistent
2024-11-19 17:58:26,718: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2024-11-19 17:58:26,719: DEBUG - + local dest=conf/manually_modified_files/etc/ssowat/conf.json.persistent
2024-11-19 17:58:26,720: DEBUG - ++ dirname /home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files/etc/ssowat/conf.json.persistent
2024-11-19 17:58:26,721: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/auto_conf/conf/manually_modified_files/etc/ssowat
2024-11-19 17:58:26,723: DEBUG - + ynh_exit_properly
2024-11-19 17:58:26,723: DEBUG - + [[ '' =~ ^install$|^upgrade$|^restore$ ]]
2024-11-19 17:58:26,888: INFO - Création d'une archive de sauvegarde à partir des fichiers collectés…
2024-11-19 17:58:26,888: INFO - L'archive contiendra environ 440.8KB de données.
2024-11-19 17:58:26,889: DEBUG - Appel de la méthode de sauvegarde personnalisée 'borg_app'…
2024-11-19 17:58:26,890: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./05-borg_app" need_mount /home/yunohost.backup/tmp/auto_conf auto_conf /home/yunohost.backup/archives 451330 \'\' 7>&1']'
2024-11-19 17:58:26,897: DEBUG - + set -Eeuo pipefail
2024-11-19 17:58:26,897: DEBUG - + borg=/var/www/borg/venv/bin/borg
2024-11-19 17:58:26,898: DEBUG - ++ yunohost app setting borg passphrase
2024-11-19 17:58:27,080: DEBUG - + BORG_PASSPHRASE=**********
2024-11-19 17:58:27,080: DEBUG - ++ yunohost app setting borg repository
2024-11-19 17:58:27,239: DEBUG - + BORG_REPO=/media/freebox/home/backup
2024-11-19 17:58:27,239: DEBUG - + BORG_LOGGING_CONF=/var/www/borg/logging.conf
2024-11-19 17:58:27,240: DEBUG - + ssh-keygen -F ''
2024-11-19 17:58:27,246: WARNING - Cannot stat /root/.ssh/known_hosts: No such file or directory
2024-11-19 17:58:27,247: DEBUG - + BORG_RSH='ssh -i /root/.ssh/id_borg_ed25519 -oStrictHostKeyChecking=no '
2024-11-19 17:58:27,247: DEBUG - + work_dir=/home/yunohost.backup/tmp/auto_conf
2024-11-19 17:58:27,247: DEBUG - + name=auto_conf
2024-11-19 17:58:27,247: DEBUG - + size=451330
2024-11-19 17:58:27,247: DEBUG - + description=
2024-11-19 17:58:27,247: DEBUG - + case "$1" in
2024-11-19 17:58:27,247: DEBUG - + do_need_mount /home/yunohost.backup/tmp/auto_conf auto_conf 451330 ''
2024-11-19 17:58:27,247: DEBUG - + true
2024-11-19 17:58:27,382: DEBUG - Copie de 0.0030841827392578125 Mo pour organiser l'archive
2024-11-19 17:58:27,383: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./05-borg_app" backup /home/yunohost.backup/tmp/auto_conf auto_conf /home/yunohost.backup/archives 451330 \'\' 7>&1']'
2024-11-19 17:58:27,386: DEBUG - + set -Eeuo pipefail
2024-11-19 17:58:27,386: DEBUG - + borg=/var/www/borg/venv/bin/borg
2024-11-19 17:58:27,386: DEBUG - ++ yunohost app setting borg passphrase
2024-11-19 17:58:27,548: DEBUG - + BORG_PASSPHRASE=**********
2024-11-19 17:58:27,548: DEBUG - ++ yunohost app setting borg repository
2024-11-19 17:58:27,708: DEBUG - + BORG_REPO=/media/freebox/home/backup
2024-11-19 17:58:27,708: DEBUG - + BORG_LOGGING_CONF=/var/www/borg/logging.conf
2024-11-19 17:58:27,708: DEBUG - + ssh-keygen -F ''
2024-11-19 17:58:27,713: WARNING - Cannot stat /root/.ssh/known_hosts: No such file or directory
2024-11-19 17:58:27,713: DEBUG - + BORG_RSH='ssh -i /root/.ssh/id_borg_ed25519 -oStrictHostKeyChecking=no '
2024-11-19 17:58:27,713: DEBUG - + work_dir=/home/yunohost.backup/tmp/auto_conf
2024-11-19 17:58:27,713: DEBUG - + name=auto_conf
2024-11-19 17:58:27,713: DEBUG - + size=451330
2024-11-19 17:58:27,713: DEBUG - + description=
2024-11-19 17:58:27,713: DEBUG - + case "$1" in
2024-11-19 17:58:27,713: DEBUG - + do_backup /home/yunohost.backup/tmp/auto_conf auto_conf 451330 ''
2024-11-19 17:58:27,714: DEBUG - + export BORG_PASSPHRASE
2024-11-19 17:58:27,714: DEBUG - + export BORG_REPO
2024-11-19 17:58:27,714: DEBUG - + export BORG_RSH
2024-11-19 17:58:27,714: DEBUG - + export BORG_LOGGING_CONF
2024-11-19 17:58:27,714: DEBUG - + export BORG_RELOCATED_REPO_ACCESS_IS_OK=yes
2024-11-19 17:58:27,714: DEBUG - + BORG_RELOCATED_REPO_ACCESS_IS_OK=yes
2024-11-19 17:58:27,714: DEBUG - + work_dir=/home/yunohost.backup/tmp/auto_conf
2024-11-19 17:58:27,714: DEBUG - + name=auto_conf
2024-11-19 17:58:27,714: DEBUG - + size=451330
2024-11-19 17:58:27,714: DEBUG - + description=
2024-11-19 17:58:27,714: DEBUG - + set +e
2024-11-19 17:58:27,714: DEBUG - + /var/www/borg/venv/bin/borg list
2024-11-19 17:58:28,394: DEBUG - + /var/www/borg/venv/bin/borg init -e repokey
2024-11-19 17:58:28,704: DEBUG - 
2024-11-19 17:58:28,704: DEBUG - Your first backup on /media/freebox/home/backup is starting.
2024-11-19 17:58:28,704: DEBUG - 
2024-11-19 17:58:28,704: DEBUG - This is an automated message from your beloved YunoHost server.'
2024-11-19 17:58:28,704: DEBUG - + /usr/bin/mail.mailutils -a 'Content-Type: text/plain; charset=UTF-8' -s '[YNH] First backup is starting' root
2024-11-19 17:58:28,748: DEBUG - + set -e
2024-11-19 17:58:28,749: DEBUG - + /var/www/borg/venv/bin/borg create --stats '::auto_conf-{now}' /home/yunohost.backup/tmp/auto_conf
2024-11-19 17:58:29,351: ERROR - Échec de l'exécution du script : /etc/yunohost/hooks.d/backup_method/05-borg_app
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/yunohost/hook.py", line 298, in hook_callback
    hook_return = hook_exec(
                  ^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/yunohost/hook.py", line 418, in hook_exec
    raise YunohostError("hook_exec_failed", path=path)
yunohost.utils.error.YunohostError: Échec de l'exécution du script : /etc/yunohost/hooks.d/backup_method/05-borg_app

Peut-être essayer de supprimer l’ancienne clé d’échange du know_hosts

je crois que j’ai eu ce soucis avec la mise à jour en 12, la clé à du changer, depuis le serveur en root (j’ai du mettre le port :XXXX pour ssh si un port changé, sinon c’est inutile si le ssh est sur le port 22 par défaut), suprimer la clé d’échange

ssh-keygen -f "/root/.ssh/known_hosts" -R "[domain_borgserver.tld]:XXXX"

et refaire l’échange ? (avec ou sans le port -p XXXX)

ssh -p xxxx userborg@domain_borgserver.tld

puis redémarrer borg

systemctl start borg

Bien vérifier aussi que le dossier de backup appartienne à l’user userborg

Je suis hors-sujet… Il s’agit d’un backup local ?

1 Like

Can you please post result of issuing the following as root user?

ls -la /root/.ssh

I’m asking because on my end it was the permission issue on said problem (all of it should have 600 permissions).

all ? I always thought it was something like

chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys
chmod 644 ~/.ssh/known_hosts
chmod 600 ~/.ssh/id_ed25519
chmod 644 ~/.ssh/id_ed25519.pub

Yeah, that’s what I meant :grimacing:

EDIT: actually no, noone else should be able to edit authorized_keys, that’s a security disaster brewing.

So you need also chmod 600 authorized_keys ? It means group and public can’t read ? or it can be 644 ??

Ok, I see here someone saying if ssh complains put all to 600

Perhaps I will try

root@lef:~# ls -la /root/.ssh/
total 16
drwx------ 2 root root 4096 Nov 19 22:28 .
drwx------ 7 root root 4096 Nov 19 18:19 …
-rw-r–r-- 1 root root 0 Nov 19 22:28 config
-rw------- 1 root root 411 Nov 19 14:46 id_restic_ed25519
-rw-r–r-- 1 root root 98 Nov 19 14:46 id_restic_ed25519.pub

yes, c’est un backup en local sur le hdd de ma freebox que j’ai monté auparavant sur /media/freebox/ (pas de connexion ssh donc).

Dans le script de borg il va qaund même chercher BORG_RSH

if ssh-keygen -F "" >/dev/null ; then
    BORG_RSH="ssh -i /root/.ssh/id_${app}_ed25519 -oStrictHostKeyChecking=yes "
else
    BORG_RSH="ssh -i /root/.ssh/id_${app}_ed25519 -oStrictHostKeyChecking=no "
fi

Est-ce que tu as le même retour ?

cat /etc/yunohost/apps/borg/settings.yml |grep public_key
public_key: ''

Ok, In my borserver the borg_user have a chmod 600 for .ssh/authorized_keys

From the server where stand borgapp is it relevant also chmod 600 the id_borg_ed25519.pub and the known_hosts ?

Ok I have try chmod 600 /root/.ssh/know_hosts and I can do a distant borg list :wink:

and also a chmod 600 /root/.ssh/id_borg_ed25519.pub, it’s ok ! nice

oui, j’ai le même résultat

Peut-être juste essayer de créer le fichier know_hosts , lui donné la permissions -rw------- avant ~de lancer borg ?

touch /root/.ssh/know_hosts
chmod  600 /root/.ssh/know_hosts
systemctl start borg

Effectivement, maintenant il ne me donne plus cette erreur, mais une autre -_- :
https://paste.yunohost.org/anicovajuv

2024-11-20 12:21:08,036 ERROR A repository already exists at /media/freebox/home/backup.
2024-11-20 12:21:08,657 ERROR Repository has no manifest.
2024-11-20 12:21:11,733 ERROR Repository has no manifest.

Quand je lance la commande préconisée par yunohost suite à l’upgrade de borg:
sudo env BORG_RSH=“ssh -i /root/.ssh/id_borg_ed25519 -p 22 -oStrictHostKeyChecking=yes " BORG_PASSPHRASE=”$(sudo yunohost app setting borg passphrase)" BORG_RELOCATED_REPO_ACCESS_IS_OK=yes BORG_REPO=“$(sudo yunohost app setting borg repository)” /var/www/borg/venv/bin/borg upgrade --show-rc --check-tam $BORG_REPO

j’obtiens également:
Repository has no manifest.
terminating with error status, rc 2

Et je ne trouve pas la solution à cette nouvelle erreur. Une idée?

Est-ce que par hasard tu aurais mis dans la passphrase un $ ?

Non, mais j’ai un @.

Là j’ai essayé de faire le backup sur un serveur distant (avec Borg server configuré dessus).
J’ai mis le bon port SSH dans la config, sur l’autre serveur, j’ai mis la clé SSH publique, j’ai fais les installations.
Sauf que quand je lance le backup, je me prends un “permission denied” lors de la connexion ssh:
WARNING Remote: Permission denied, please try again.
WARNING Remote: [cyprienbackup@Domain.noho.st: Permission denied (publickey,password).

Sauf que c’est Borg qui a lui même configuré la clé SSH. Et après vérification il y a bien la même clé dans le autohorized_keys du serveur qui reçoit que dans id_borg_ed25519.pub du serveur qui envoie…

Si tu veux sauvegarder sur un borgserver, il faudrait un autre Borg App je pense.

J’ai sur mon serveur 2 app borg, borg et borg__2, une pour les sauvegardes locales et une pour les distantes. Pour la distante, comme l’exemple de linstall un truc de ce genre pour le repertoire ssh://john@serverb.tld:22/~/backup… En installant un borgserver sur le distant, du coup il y a un user john avec le dossier /home/john/backup et dans son fichierier /home/john/.ssh/authorized_keys la commande borg avec la clé publique du serveur source où se trouve l’app borg, le quota, l’heure voulu, etc…

Pour vérifier les settings regarde dans les settings de l’app

cat /etc/yunohost/apps/borg/settings.yml

Si on veut changer une valeur, pour la voir

yunohost app setting borgserver__2 public_key 

pour la changer

yunohost app setting borgserver__2 public_key -v 'ssh-ed25519 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX root@domainborg.tld

Cela peut servir aussi pour changer la passphrase au cas où ce soit elle le problème ??

Normalement, sans lancer de commande et juste en démarrant le service borg, il lance une sauvegarde. Je ne sais pas d’où tu sors cela

Je mélange les post maintenant !! Du coup au départ tu voulais une sauvegrade locale ??