From 3a358ecaf1057b06c6fd7c2fcdfe0113faafb67f Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Tue, 17 Jan 2023 16:03:51 +0100 Subject: [PATCH] Plan borg: updates (step). --- Plan Borg/README.md | 7 +++++++ Plan Borg/models/model-conf-remote-client.yaml | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Plan Borg/README.md b/Plan Borg/README.md index 6f30cd5..2affc01 100644 --- a/Plan Borg/README.md +++ b/Plan Borg/README.md @@ -148,6 +148,13 @@ Installer les paquets nécessaires : apt install -t bullseye-backports borgmatic borgbackup ``` +Créer des clés `ssh` pour l'utilisateur `root` : +``` +mkdir -p ~root/.ssh +chmod go-rwx ~/.ssh +ssh-keygen -t ed25519 +``` + Créer et peupler le dossier de configruation de Borgmatic : ``` mkdir -p /etc/borgmatic diff --git a/Plan Borg/models/model-conf-remote-client.yaml b/Plan Borg/models/model-conf-remote-client.yaml index 8ba7612..972f9be 100644 --- a/Plan Borg/models/model-conf-remote-client.yaml +++ b/Plan Borg/models/model-conf-remote-client.yaml @@ -9,8 +9,8 @@ location: - /var repositories: - - borg@sauvkipeu.libre-en-communs.org:/var/backups/borg/$(fqdn).repo - #- borg@gardefou.libre-en-communs.org:/var/backups/borg/$(fqdn).repo + - borg@sauvkipeu.libre-en-communs.org:/var/backups/borg/{fqdn}.repo + #- borg@gardefou.libre-en-communs.org:/var/backups/borg/{fqdn}.repo exclude_from: - /etc/borgmatic/excludes