informatique:yunohost:sauvegarder_yunohost
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| informatique:yunohost:sauvegarder_yunohost [2020/08/16 15:58] – [Installation de Borg Server] simon | informatique:yunohost:sauvegarder_yunohost [2022/09/12 09:32] (Version actuelle) – [Problèmes rencontrés] simon | ||
|---|---|---|---|
| Ligne 62: | Ligne 62: | ||
| </ | </ | ||
| + | Pour vérifier que tout fonctionne bien : | ||
| + | |||
| + | * Vérifier sur un dossier "/ | ||
| + | * Utiliser les commandes borgs pour vérfier : | ||
| + | |||
| + | <code bash> | ||
| + | root@fagus: | ||
| + | Enter passphrase for key / | ||
| + | auto_conf_16_08_20_15: | ||
| + | auto_data_16_08_20_15: | ||
| + | auto_borg_16_08_20_15: | ||
| + | auto_borgserver_16_08_20_15: | ||
| + | auto_dokuwiki_16_08_20_15: | ||
| + | auto_my_webapp_16_08_20_15: | ||
| + | auto_redirect_16_08_20_15: | ||
| + | auto_shaarli_16_08_20_15: | ||
| + | |||
| + | root@fagus: | ||
| + | Enter passphrase for key / | ||
| + | Repository ID: 8fdd120542cee6ae4dd6d1694e73175e978977b523ed83188c9da91ccc12b0ec | ||
| + | Location: / | ||
| + | Encrypted: Yes (repokey) | ||
| + | Cache: / | ||
| + | Security dir: / | ||
| + | ------------------------------------------------------------------------------ | ||
| + | | ||
| + | All archives: | ||
| + | |||
| + | | ||
| + | Chunk index: | ||
| + | </ | ||
| ==== En cas de problème ==== | ==== En cas de problème ==== | ||
| Ligne 74: | Ligne 105: | ||
| </ | </ | ||
| - | Une erreur possible | + | Depuis la mi-mai 2021 et la version " |
| <code bash> | <code bash> | ||
| - | Remote: | + | root@artanux:/home/admin# ls -al /var/log/borg/ |
| - | Remote: | + | total 228 |
| - | Remote: | + | drwxr-xr-x |
| - | Remote: | + | drwxr-xr-x 25 root root 12288 May 24 00:00 .. |
| - | Remote: | + | -rw-r--r-- |
| - | Remote: | + | -rw-r--r-- 1 root root 7326 May 15 00:06 210515_0000.log |
| - | Remote: | + | (...) |
| - | Remote: bash: /usr/local/bin/borg: Permission denied | + | |
| - | Connection closed by remote host. Is borg working on the server? | + | |
| - | </code> | + | |
| - | + | ||
| - | Borg ne peut pas être lancé par l' | + | |
| - | + | ||
| - | <code bash> | + | |
| - | root@fagus:~# sudo -u quercus borg --help | + | |
| - | sudo: unable to execute / | + | |
| - | </ | + | |
| - | + | ||
| - | La solution consiste à vérifier les droits pour lancer Borg sur le serveur '' | + | |
| - | <code bash> | + | |
| - | root@fagus:~# ls -al / | + | |
| - | -rwxr--r-- 1 root staff 69 Aug 10 14:03 / | + | |
| - | + | ||
| - | root@fagus: | + | |
| </ | </ | ||
| Ligne 138: | Ligne 151: | ||
| -rw-r--r-- 1 root root 264 Aug 12 21:12 / | -rw-r--r-- 1 root root 264 Aug 12 21:12 / | ||
| </ | </ | ||
| + | |||
| === Problèmes pour lancer borg sur le serveur === | === Problèmes pour lancer borg sur le serveur === | ||
| <code bash> | <code bash> | ||
| - | root@fagus: | + | root@fagus: |
| Remote: | Remote: | ||
| Remote: | Remote: | ||
| Ligne 168: | Ligne 182: | ||
| Une fois les droits réglés, ça marche correctement! | Une fois les droits réglés, ça marche correctement! | ||
| + | |||
| + | === Problème de passphrase incomplète === | ||
| + | |||
| + | Ma passphrase, générée automatiquement par [[: | ||
| + | |||
| + | J'ai ajouté mon expérience sur cette [[https:// | ||
| + | |||
| + | Le problème se situe dans le fichier suivant : | ||
| + | <code bash> | ||
| + | # cat / | ||
| + | (...) | ||
| + | BORG_PASSPHRASE=" | ||
| + | (...) | ||
| + | </ | ||
| + | (La passphrase a été changée évidemment!) | ||
| + | |||
| + | La passphrase utilisée réellement pour chiffrer le backup, dans ce cas-ci : '' | ||
| + | |||
| + | === Changement de port SSH === | ||
| + | |||
| + | Je recevais pas mal d' | ||
| + | |||
| + | Évidemment, | ||
| + | |||
| + | Il y a deux lignes à changer dans le fichier '''' | ||
| + | <code bash> | ||
| + | # cat / | ||
| + | if ssh-keygen -F " | ||
| + | BORG_RSH=" | ||
| + | BORG_RSH=" | ||
| + | </ | ||
| + | |||
| + | Il faut ajouter l' | ||
| + | <code bash> | ||
| + | # vim / | ||
| + | BORG_RSH=" | ||
| + | BORG_RSH=" | ||
| + | </ | ||
| + | ('' | ||
| + | |||
| + | Il faut que je remonte ce bug sur le github du projet. | ||
informatique/yunohost/sauvegarder_yunohost.1597593499.txt.gz · Dernière modification : de simon
