J’ai trouvé une piste sur ce message :
J’ai donc fait ceci sur le serveurB (qui reçoit les backups du serveurA donc) :
root@serverB:/# yunohost app upgrade borgserver --force
Info: Now upgrading borgserver…
Info: Creating a safety backup prior to the upgrade
Info: Collecting files to be backed up for borgserver…
Info: Declaring files to be backed up...
Info: Borg backup repo in /home/userA/ won't be backup to avoid backup of backup loop issue.
Info: Backup script completed for borgserver. (YunoHost will then actually copy those files to the archive).
Info: Creating a backup archive from the collected files…
Info: The archive will contain about 63.3MB of data.
Success! Backup created: borgserver-pre-upgrade1
Success! Backup deleted: borgserver-pre-upgrade2
Info: Updating sources...
Info: Updating system_user...
Info: Updating install_dir...
Info: Updating permissions...
Info: Updating apt...
Info: [++++................] > Ensuring downward compatibility...
Info: [####++++............] > Upgrading Borg...
Info: [########++++........] > Making sure SSH user exists with appropriate permissions...
Info: [############++++....] > Configuring cron to monitor backup...
Info: [####################] > Upgrade of borgserver completed
Success! borgserver upgraded
Success! Upgrade complete
Après avoir fait l’upgrade sur le serveurB, j’ai pu afficher la liste des backups :
root@serverA:/# app=borg; BORG_PASSPHRASE="$(yunohost app setting $app passphrase)" BORG_RSH="ssh -i /root/.ssh/id_${app}_ed25519 -p PORT
-oStrictHostKeyChecking=yes " $borg list ssh://userA@serverB.be/~/backup
_auto_conf-2023-12-31_00:00 Sun, 2023-12-31 00:00:40 [f2167ba414184ea9c1a77ea3c6c1fa5efe78024135b5051d2d93fa75525e8cdc]
_auto_data-2023-12-31_00:02 Sun, 2023-12-31 00:02:24 [52565b310c3ba748f09ea1dad95d83e95c4955cc061dc574750c838867149ed4]
_auto_borg-2023-12-31_00:03 Sun, 2023-12-31 00:03:57 [7931eb9a9c812c8b94368bbd21312878718a0d4800825457c3223baa5ef879d1]
(...)
On dirait que c’est la solution que je cherchais.
J’ai donc fait ensuite la même chose sur le serveurA (qui reçoit les backups du serveurB donc).