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édenteProchaine révisionLes deux révisions suivantes | ||
informatique:yunohost:sauvegarder_yunohost [2020/08/12 20:52] – [Installation de Borg Server] simon | informatique:yunohost:sauvegarder_yunohost [2020/08/16 16:04] – [Lancer manuellement le backup] simon | ||
---|---|---|---|
Ligne 12: | Ligne 12: | ||
==== Installation de Borg Backup App ==== | ==== Installation de Borg Backup App ==== | ||
- | J' | + | J' |
J'ai besoin : | J'ai besoin : | ||
Ligne 39: | Ligne 39: | ||
Cette clé est également envoyée par mail à l' | Cette clé est également envoyée par mail à l' | ||
==== Installation de Borg Server ==== | ==== Installation de Borg Server ==== | ||
- | Une fois la partie cliente installée, passons à l' | + | Une fois la partie cliente installée, passons à l' |
Il faudra configurer : | Il faudra configurer : | ||
Ligne 52: | Ligne 52: | ||
<code bash> | <code bash> | ||
- | root@artanux:/home# cat / | + | root@fagus:/home# cat / |
command=" | command=" | ||
</ | </ | ||
+ | |||
+ | ==== Lancer manuellement le backup ==== | ||
+ | Sur le serveur à sauvegarder, | ||
+ | <code bash> | ||
+ | # systemctl start borg | ||
+ | </ | ||
+ | |||
+ | 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 ==== | ||
+ | |||
+ | Quelques pistes si ça ne fonctionne pas : | ||
+ | |||
+ | * Vérifier les logs | ||
+ | |||
+ | <code bash> | ||
+ | admin@quercus: | ||
+ | -rw-r--r-- 1 root root 18317 Aug 13 00:01 / | ||
+ | -rw-r--r-- 1 root root 0 Aug 12 20:53 / | ||
+ | </ | ||
+ | |||
+ | * Vérifier les erreurs données au lancement du service | ||
+ | |||
+ | <code bash> | ||
+ | # systemctl status --lines 100 borg | ||
+ | ● borg.service - Run backup borg | ||
+ | | ||
+ | | ||
+ | Main PID: 31654 (code=exited, | ||
+ | |||
+ | Aug 13 00:00:03 quercus systemd[1]: Starting Run backup borg... | ||
+ | Aug 13 00:00:05 quercus backup-with-borg[31654]: | ||
+ | Aug 13 00:00:07 quercus slapcat[31880]: | ||
+ | </ | ||
+ | |||
+ | * Vérifier qu'on a pas fait d' | ||
+ | |||
+ | ===== Problèmes rencontrés ===== | ||
+ | === Problèmes de clés SSH === | ||
+ | Comme je sauvegarde Fagus sur Quercus et inversement, | ||
+ | |||
+ | <code bash> | ||
+ | root@quercus: | ||
+ | total 20 | ||
+ | drwx------ 2 root root 4096 Aug 12 20:53 . | ||
+ | drwx------ 5 root root 4096 Aug 14 07:40 .. | ||
+ | -rw------- 1 root root 0 Aug 8 09:15 authorized_keys | ||
+ | -rw------- 1 root root 411 Aug 12 19:37 id_borg_ed25519 | ||
+ | -rw-r--r-- 1 root root 101 Aug 12 19:37 id_borg_ed25519.pub | ||
+ | -rw-r--r-- 1 root root 444 Aug 12 20:53 known_hosts | ||
+ | </ | ||
+ | |||
+ | <code bash> | ||
+ | root@fagus: | ||
+ | -rw-r--r-- 1 root root 264 Aug 12 21:12 / | ||
+ | </ | ||
+ | === Problèmes pour lancer borg sur le serveur === | ||
+ | <code bash> | ||
+ | root@fagus: | ||
+ | Remote: | ||
+ | Remote: | ||
+ | Remote: | ||
+ | Remote: | ||
+ | Remote: | ||
+ | Remote: | ||
+ | Remote: | ||
+ | Remote: bash: / | ||
+ | Connection closed by remote host. Is borg working on the server? | ||
+ | </ | ||
+ | |||
+ | Borg ne peut pas être lancé par l' | ||
+ | |||
+ | <code bash> | ||
+ | root@fagus: | ||
+ | sudo: unable to execute / | ||
+ | </ | ||
+ | |||
+ | La solution consiste à vérifier les droits pour lancer Borg sur le serveur '' | ||
+ | <code bash> | ||
+ | root@fagus: | ||
+ | -rwxr--r-- 1 root staff 69 Aug 10 14:03 / | ||
+ | |||
+ | root@fagus: | ||
+ | </ | ||
+ | |||
+ | Une fois les droits réglés, ça marche correctement! |
informatique/yunohost/sauvegarder_yunohost.txt · Dernière modification : 2022/09/12 09:32 de simon