From 8a04a64b4dcceb7c89bc3b7e6d25538764f175f9 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Tue, 16 Mar 2021 20:55:05 +0100 Subject: [PATCH] chg: doc: add ``-R`` to ``compose-add-rsync-key`` call in backup script Signed-off-by: Valentin Lab --- README.org | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.org b/README.org index 7c75aa8..a3a9519 100644 --- a/README.org +++ b/README.org @@ -726,6 +726,8 @@ backupper. #+begin_src sh DOMAIN=xxx.fr + +## CODE BACKUP_SERVER=core-06.0k.io:10023 ssh-keygen -t rsa -N "" -f /root/.ssh/rsync_rsa -C "rsync@$DOMAIN" @@ -743,10 +745,9 @@ dest="$BACKUP_SERVER" dest="${dest%/*}" dest="${dest%%:*}" echo "Contacting '$dest' host, to add key in authorized key:" -ssh -o "StrictHostKeyChecking=no" "root@${dest}" -- compose-add-rsync-key "\"$DOMAIN\"" "\"$(cat /root/.ssh/rsync_rsa.pub)\"" +ssh -o "StrictHostKeyChecking=no" "root@${dest}" -- compose-add-rsync-key -R "\"$DOMAIN\"" "\"$(cat /root/.ssh/rsync_rsa.pub)\"" -compose build mongo ## force the build of the new mongo image with regular dumps #+end_src **** Installation du backup sur une installe mailcow