Je ne suis pas sûr encore… c’est pas simple à configurer tout ça et je suis perdu avec tous les topics sur le sujet…
J’ai eu cette erreur par mail…
The backup miserably failed to backup system configurations.
Creating a backup archive from the collected files...
The archive will contain about 656.4KiB of data.
The operation 'Create a backup archive' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20220106-000001-backup_create' to get help
Creating a backup archive from the collected files...
The archive will contain about 102.6MiB of data.
Backup created
name: auto_data
results:
apps:
system:
data_home: Success
data_mail: Success
data_multimedia: Success
data_xmpp: Success
size: 107606823
Collecting files to be backed up for borg...
Loading installation settings...
Declaring files to be backed up...
Backup script completed for borg. (YunoHost will then actually copy those files to the archive).
Creating a backup archive from the collected files...
The archive will contain about 112.8KiB of data.
Backup created
name: auto_borg
results:
apps:
borg: Success
system:
size: 115476
Collecting files to be backed up for coturn...
Loading installation settings...
Declaring files to be backed up...
Backup script completed for coturn. (YunoHost will then actually copy those files to the archive).
Creating a backup archive from the collected files...
The archive will contain about 147.9KiB of data.
Backup created
name: auto_coturn
results:
apps:
coturn: Success
system:
size: 151460
Collecting files to be backed up for cryptpad...
Declaring files to be backed up...
Backup script completed for cryptpad. (YunoHost will then actually copy those files to the archive).
Creating a backup archive from the collected files...
The archive will contain about 669.1MiB of data.
Backup created
name: auto_cryptpad
results:
apps:
cryptpad: Success
system:
size: 701582990
Collecting files to be backed up for garradin...
Declaring files to be backed up...
Declaring files to be backed up...
Backup script completed for garradin. (YunoHost will then actually copy those files to the archive).
Creating a backup archive from the collected files...
The archive will contain about 3.2MiB of data.
Backup created
name: auto_garradin
results:
apps:
garradin: Success
system:
size: 3349148
Collecting files to be backed up for grav...
Loading installation settings...
Declaring files to be backed up...
Backup script completed for grav. (YunoHost will then actually copy those files to the archive).
Creating a backup archive from the collected files...
The archive will contain about 1.1GiB of data.
Backup created
name: auto_grav
results:
apps:
grav: Success
system:
size: 1183340211
Collecting files to be backed up for mattermost...
Loading installation settings...
Declaring files to be backed up...
Backing up the MySQL database...
Backup script completed for mattermost. (YunoHost will then actually copy those files to the archive).
Creating a backup archive from the collected files...
The archive will contain about 579.9MiB of data.
Backup created
name: auto_mattermost
results:
apps:
mattermost: Success
system:
size: 608058298
Collecting files to be backed up for mobilizon...
Loading installation settings...
Declaring files to be backed up...
Backing up the PostgreSQL database...
Backup script completed for mobilizon. (YunoHost will then actually copy those files to the archive).
Creating a backup archive from the collected files...
The archive will contain about 271.7MiB of data.
Backup created
name: auto_mobilizon
results:
apps:
mobilizon: Success
system:
size: 284868467
Collecting files to be backed up for nextcloud...
Loading installation settings...
Declaring files to be backed up...
Backing up the MySQL database...
Backing up data directory...
Backup script completed for nextcloud. (YunoHost will then actually copy those files to the archive).
Creating a backup archive from the collected files...
The archive will contain about 1.4GiB of data.
Backup created
name: auto_nextcloud
results:
apps:
nextcloud: Success
system:
size: 1540587934
Collecting files to be backed up for opensondage...
Loading installation settings...
Declaring files to be backed up...
Backup script completed for opensondage. (YunoHost will then actually copy those files to the archive).
Creating a backup archive from the collected files...
The archive will contain about 15.4MiB of data.
Backup created
name: auto_opensondage
results:
apps:
opensondage: Success
system:
size: 16179235
Collecting files to be backed up for rainloop...
Loading installation settings...
Declaring files to be backed up...
Backup script completed for rainloop. (YunoHost will then actually copy those files to the archive).
Creating a backup archive from the collected files...
The archive will contain about 22.5MiB of data.
Backup created
name: auto_rainloop
results:
apps:
rainloop: Success
system:
size: 23586560
Failed to format translated string 'backup_applying_method_custom': 'Calling the custom backup method '{method}'...' with arguments '()' and '{}, raising error: KeyError('method') (don't panic this is just a warning)
Failed to format translatable string 'backup_applying_method_custom': 'Calling the custom backup method '{method}'...' with arguments '()' and '{}', raising error: KeyError('method') (don't panic this is just a warning)
Remote: Debian GNU/Linux 10
Traceback (most recent call last):
File "/opt/borg-env/lib/python3.7/site-packages/borg/remote.py", line 247, in serve
res = f(**args)
File "/opt/borg-env/lib/python3.7/site-packages/borg/remote.py", line 375, in open
self.repository.__enter__() # clean exit handled by serve() method
File "/opt/borg-env/lib/python3.7/site-packages/borg/repository.py", line 188, in __enter__
self.create(self.path)
File "/opt/borg-env/lib/python3.7/site-packages/borg/repository.py", line 272, in create
with open(os.path.join(path, 'README'), 'w') as fd:
PermissionError: [Errno 13] Permission denied: '/home/user/backup/README'
Borg server: Platform: Linux rodinux.fr 4.19.0-18-amd64 #1 SMP Debian 4.19.208-1 (2021-09-29) x86_64
Borg server: Linux: debian 10.11
Borg server: Borg: 1.1.16 Python: CPython 3.7.3 msgpack: 0.5.6.+borg1
Borg server: PID: 17326 CWD: /home/user
mondomaine.tldr: sys.argv: ['/opt/borg-env/bin/borg', 'serve', '--storage-quota', '1750G', '--restrict-to-repository', '/home/user/backup\']
Borg server: SSH_ORIGINAL_COMMAND: 'borg serve --umask=077'
Platform: Linux linux07.fr 4.19.0-18-amd64 #1 SMP Debian 4.19.208-1 (2021-09-29) x86_64
Linux: debian 10.11
Borg: 1.1.16 Python: CPython 3.7.3 msgpack: 0.5.6.+borg1
PID: 29222 CWD: /home/yunohost.backup/tmp/auto_conf
sys.argv: ['/opt/borg-env/bin/borg', 'init', '-e', 'repokey', 'ssh://user@mondomaine.tld:6060/~/backup']
SSH_ORIGINAL_COMMAND: None
Could not run script: /etc/yunohost/hooks.d/backup_method/05-borg_app
Custom backup method could not get past the 'backup' step
Failed to format translated string 'backup_applying_method_custom': 'Calling the custom backup method '{method}'...' with arguments '()' and '{}, raising error: KeyError('method') (don't panic this is just a warning)
Failed to format translatable string 'backup_applying_method_custom': 'Calling the custom backup method '{method}'...' with arguments '()' and '{}', raising error: KeyError('method') (don't panic this is just a warning)
Remote: Debian GNU/Linux 10
By default repositories initialized with this version will produce security
errors if written to with an older version (up to and including Borg 1.0.8).
If you want to use these older versions, you can disable the check by running:
borg upgrade --disable-tam 'ssh://user@mondomaine.tld:6060/~/backup'
See https://borgbackup.readthedocs.io/en/stable/changes.html#pre-1-0-9-manifest-spoofing-vulnerability for details about the security implications.
IMPORTANT: you will need both KEY AND PASSPHRASE to access this repo!
Use "borg key export" to export the key, optionally in printable format.
Write down the passphrase. Store both at safe place(s).
Failed to format translated string 'backup_method_custom_finished': 'Custom backup method '{method}' finished' with arguments '()' and '{}, raising error: KeyError('method') (don't panic this is just a warning)
Failed to format translatable string 'backup_method_custom_finished': 'Custom backup method '{method}' finished' with arguments '()' and '{}', raising error: KeyError('method') (don't panic this is just a warning)
Failed to format translated string 'backup_applying_method_custom': 'Calling the custom backup method '{method}'...' with arguments '()' and '{}, raising error: KeyError('method') (don't panic this is just a warning)
Failed to format translatable string 'backup_applying_method_custom': 'Calling the custom backup method '{method}'...' with arguments '()' and '{}', raising error: KeyError('method') (don't panic this is just a warning)
Remote: Debian GNU/Linux 10
A repository already exists at ssh://user@mondomaine.tld:6060/~/backup.
Failed to format translated string 'backup_method_custom_finished': 'Custom backup method '{method}' finished' with arguments '()' and '{}, raising error: KeyError('method') (don't panic this is just a warning)
Failed to format translatable string 'backup_method_custom_finished': 'Custom backup method '{method}' finished' with arguments '()' and '{}', raising error: KeyError('method') (don't panic this is just a warning)
Failed to format translated string 'backup_applying_method_custom': 'Calling the custom backup method '{method}'...' with arguments '()' and '{}, raising error: KeyError('method') (don't panic this is just a warning)
Failed to format translatable string 'backup_applying_method_custom': 'Calling the custom backup method '{method}'...' with arguments '()' and '{}', raising error: KeyError('method') (don't panic this is just a warning)
Remote: Debian GNU/Linux 10
A repository already exists at ssh://user@mondomaine.tld:6060/~/backup.
Failed to format translated string 'backup_method_custom_finished': 'Custom backup method '{method}' finished' with arguments '()' and '{}, raising error: KeyError('method') (don't panic this is just a warning)
Failed to format translatable string 'backup_method_custom_finished': 'Custom backup method '{method}' finished' with arguments '()' and '{}', raising error: KeyError('method') (don't panic this is just a warning)
Failed to format translated string 'backup_applying_method_custom': 'Calling the custom backup method '{method}'...' with arguments '()' and '{}, raising error: KeyError('method') (don't panic this is just a warning)
Failed to format translatable string 'backup_applying_method_custom': 'Calling the custom backup method '{method}'...' with arguments '()' and '{}', raising error: KeyError('method') (don't panic this is just a warning)
Remote: Debian GNU/Linux 10
A repository already exists at ssh://user@mondomaine.tld:6060/~/backup.
Failed to format translated string 'backup_method_custom_finished': 'Custom backup method '{method}' finished' with arguments '()' and '{}, raising error: KeyError('method') (don't panic this is just a warning)
Failed to format translatable string 'backup_method_custom_finished': 'Custom backup method '{method}' finished' with arguments '()' and '{}', raising error: KeyError('method') (don't panic this is just a warning)
Failed to format translated string 'backup_applying_method_custom': 'Calling the custom backup method '{method}'...' with arguments '()' and '{}, raising error: KeyError('method') (don't panic this is just a warning)
Failed to format translatable string 'backup_applying_method_custom': 'Calling the custom backup method '{method}'...' with arguments '()' and '{}', raising error: KeyError('method') (don't panic this is just a warning)
Remote: Debian GNU/Linux 10
A repository already exists at ssh://user@mondomaine.tld:6060/~/backup.
Failed to format translated string 'backup_method_custom_finished': 'Custom backup method '{method}' finished' with arguments '()' and '{}, raising error: KeyError('method') (don't panic this is just a warning)
Failed to format translatable string 'backup_method_custom_finished': 'Custom backup method '{method}' finished' with arguments '()' and '{}', raising error: KeyError('method') (don't panic this is just a warning)
Failed to format translated string 'backup_applying_method_custom': 'Calling the custom backup method '{method}'...' with arguments '()' and '{}, raising error: KeyError('method') (don't panic this is just a warning)
Failed to format translatable string 'backup_applying_method_custom': 'Calling the custom backup method '{method}'...' with arguments '()' and '{}', raising error: KeyError('method') (don't panic this is just a warning)
Remote: Debian GNU/Linux 10
A repository already exists at ssh://user@mondomaine.tld:6060/~/backup.
Failed to format translated string 'backup_method_custom_finished': 'Custom backup method '{method}' finished' with arguments '()' and '{}, raising error: KeyError('method') (don't panic this is just a warning)
Failed to format translatable string 'backup_method_custom_finished': 'Custom backup method '{method}' finished' with arguments '()' and '{}', raising error: KeyError('method') (don't panic this is just a warning)
Failed to format translated string 'backup_applying_method_custom': 'Calling the custom backup method '{method}'...' with arguments '()' and '{}, raising error: KeyError('method') (don't panic this is just a warning)
Failed to format translatable string 'backup_applying_method_custom': 'Calling the custom backup method '{method}'...' with arguments '()' and '{}', raising error: KeyError('method') (don't panic this is just a warning)
Remote: Debian GNU/Linux 10
A repository already exists at ssh://user@mondomaine.tld:6060/~/backup.
Failed to format translated string 'backup_method_custom_finished': 'Custom backup method '{method}' finished' with arguments '()' and '{}, raising error: KeyError('method') (don't panic this is just a warning)
Failed to format translatable string 'backup_method_custom_finished': 'Custom backup method '{method}' finished' with arguments '()' and '{}', raising error: KeyError('method') (don't panic this is just a warning)
Failed to format translated string 'backup_applying_method_custom': 'Calling the custom backup method '{method}'...' with arguments '()' and '{}, raising error: KeyError('method') (don't panic this is just a warning)
Failed to format translatable string 'backup_applying_method_custom': 'Calling the custom backup method '{method}'...' with arguments '()' and '{}', raising error: KeyError('method') (don't panic this is just a warning)
Remote: Debian GNU/Linux 10
A repository already exists at ssh://user@mondomaine.tld:6060/~/backup.
Failed to format translated string 'backup_method_custom_finished': 'Custom backup method '{method}' finished' with arguments '()' and '{}, raising error: KeyError('method') (don't panic this is just a warning)
Failed to format translatable string 'backup_method_custom_finished': 'Custom backup method '{method}' finished' with arguments '()' and '{}', raising error: KeyError('method') (don't panic this is just a warning)
Failed to format translated string 'backup_applying_method_custom': 'Calling the custom backup method '{method}'...' with arguments '()' and '{}, raising error: KeyError('method') (don't panic this is just a warning)
Failed to format translatable string 'backup_applying_method_custom': 'Calling the custom backup method '{method}'...' with arguments '()' and '{}', raising error: KeyError('method') (don't panic this is just a warning)
Remote: Debian GNU/Linux 10
A repository already exists at ssh://user@mondomaine.tld:6060/~/backup.
Failed to format translated string 'backup_method_custom_finished': 'Custom backup method '{method}' finished' with arguments '()' and '{}, raising error: KeyError('method') (don't panic this is just a warning)
Failed to format translatable string 'backup_method_custom_finished': 'Custom backup method '{method}' finished' with arguments '()' and '{}', raising error: KeyError('method') (don't panic this is just a warning)
Failed to format translated string 'backup_applying_method_custom': 'Calling the custom backup method '{method}'...' with arguments '()' and '{}, raising error: KeyError('method') (don't panic this is just a warning)
Failed to format translatable string 'backup_applying_method_custom': 'Calling the custom backup method '{method}'...' with arguments '()' and '{}', raising error: KeyError('method') (don't panic this is just a warning)
Remote: Debian GNU/Linux 10
A repository already exists at ssh://user@mondomaine.tld:6060/~/backup.
Failed to format translated string 'backup_method_custom_finished': 'Custom backup method '{method}' finished' with arguments '()' and '{}, raising error: KeyError('method') (don't panic this is just a warning)
Failed to format translatable string 'backup_method_custom_finished': 'Custom backup method '{method}' finished' with arguments '()' and '{}', raising error: KeyError('method') (don't panic this is just a warning)
Failed to format translated string 'backup_applying_method_custom': 'Calling the custom backup method '{method}'...' with arguments '()' and '{}, raising error: KeyError('method') (don't panic this is just a warning)
Failed to format translatable string 'backup_applying_method_custom': 'Calling the custom backup method '{method}'...' with arguments '()' and '{}', raising error: KeyError('method') (don't panic this is just a warning)
Remote: Debian GNU/Linux 10
A repository already exists at ssh://user@mondomaine.tld:6060/~/backup.
Failed to format translated string 'backup_method_custom_finished': 'Custom backup method '{method}' finished' with arguments '()' and '{}, raising error: KeyError('method') (don't panic this is just a warning)
Failed to format translatable string 'backup_method_custom_finished': 'Custom backup method '{method}' finished' with arguments '()' and '{}', raising error: KeyError('method') (don't panic this is just a warning)
Pourquoi j’ai aussi ceci ? avec :
$ sudo tail -n 100 /var/log/backup_borg.err
.............
[2022-01-06_00:00:09] Remote: Debian GNU/Linux 10
[2022-01-06_00:00:09] /home/user/backup is not a valid repository. Check repo config.
[2022-01-06_00:00:21] Remote: Debian GNU/Linux 10
[2022-01-06_00:03:15] Remote: Debian GNU/Linux 10
[2022-01-06_00:03:17] Remote: Debian GNU/Linux 10
[2022-01-06_00:03:19] Remote: Debian GNU/Linux 10
[2022-01-06_00:03:27] Remote: Debian GNU/Linux 10
[2022-01-06_00:03:29] Remote: Debian GNU/Linux 10
[2022-01-06_00:03:31] Remote: Debian GNU/Linux 10
[2022-01-06_00:03:33] Remote: Debian GNU/Linux 10
[2022-01-06_00:03:41] Remote: Debian GNU/Linux 10
[2022-01-06_00:03:43] Remote: Debian GNU/Linux 10
[2022-01-06_00:03:45] Remote: Debian GNU/Linux 10
[2022-01-06_00:03:46] Remote: Debian GNU/Linux 10
[2022-01-06_00:03:54] Remote: Debian GNU/Linux 10
[2022-01-06_00:11:33] Remote: Debian GNU/Linux 10
[2022-01-06_00:11:34] Remote: Debian GNU/Linux 10
[2022-01-06_00:11:36] Remote: Debian GNU/Linux 10
[2022-01-06_00:11:44] Remote: Debian GNU/Linux 10
[2022-01-06_00:11:49] Remote: Debian GNU/Linux 10
[2022-01-06_00:11:51] Remote: Debian GNU/Linux 10
[2022-01-06_00:11:52] Remote: Debian GNU/Linux 10
[2022-01-06_00:12:00] Remote: Debian GNU/Linux 10
[2022-01-06_00:39:57] Remote: Debian GNU/Linux 10
[2022-01-06_00:39:59] Remote: Debian GNU/Linux 10
[2022-01-06_00:40:00] Remote: Debian GNU/Linux 10
[2022-01-06_00:40:09] Remote: Debian GNU/Linux 10
[2022-01-06_00:50:44] Remote: Debian GNU/Linux 10
[2022-01-06_00:50:46] Remote: Debian GNU/Linux 10
[2022-01-06_00:50:48] Remote: Debian GNU/Linux 10
[2022-01-06_00:50:56] Remote: Debian GNU/Linux 10
[2022-01-06_00:56:12] Remote: Debian GNU/Linux 10
[2022-01-06_00:56:14] Remote: Debian GNU/Linux 10
[2022-01-06_00:56:16] Remote: Debian GNU/Linux 10
[2022-01-06_00:56:24] Remote: Debian GNU/Linux 10
[2022-01-06_01:12:39] Remote: Debian GNU/Linux 10
[2022-01-06_01:12:40] Remote: Debian GNU/Linux 10
[2022-01-06_01:12:42] Remote: Debian GNU/Linux 10
[2022-01-06_01:12:50] Remote: Debian GNU/Linux 10
[2022-01-06_01:13:07] Remote: Debian GNU/Linux 10
[2022-01-06_01:13:09] Remote: Debian GNU/Linux 10
[2022-01-06_01:13:10] Remote: Debian GNU/Linux 10
[2022-01-06_01:13:18] Remote: Debian GNU/Linux 10
[2022-01-06_01:13:40] Remote: Debian GNU/Linux 10
[2022-01-06_01:13:41] Remote: Debian GNU/Linux 10
[2022-01-06_01:13:43] Remote: Debian GNU/Linux 10
Je veux bien en savoir plus sur les configurations tout de même… Est-ce que la ligne ssh://user@mondomaine.tld:XXXX/~/backup
est correcte ?
Quels sont les configurations possibles avec sudo yunohost app setting borgserver -v
?