Modifications : README - ruse gpg-agent pour les backups
authorLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Mon, 17 Feb 2014 17:05:15 +0000 (18:05 +0100)
committerLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Mon, 17 Feb 2014 17:05:15 +0000 (18:05 +0100)
README
remote/ssh

diff --git a/README b/README
index 2d49c6f..67ac1cf 100644 (file)
--- a/README
+++ b/README
@@ -72,6 +72,7 @@ TASK: configurer un membre du groupe php5-fpm
 TASK: configurer un site nginx
        @local % local/runit-configure nginx -- lhc_www
 TASK: instancier une sauvegarde duplicity sur une machine distante
 TASK: configurer un site nginx
        @local % local/runit-configure nginx -- lhc_www
 TASK: instancier une sauvegarde duplicity sur une machine distante
+       @remote % gpg-agent --allow-preset-passphrase --daemon $SHELL # NOTE: pour être sûr de passer par gpg-agent (plutôt que gnome-key qui plante a priori pour l'option --preset-passhrase)
        @remote % name=mysql/test # NOTE: à adapter
        @remote % remote/backup-fetch "$name" # NOTE: conserve les fichiers disparus ou modifiés dans var/backup/old/$(date +'%Y%m%d+%H%M%S%z')/
        @remote % remote/duplicity restore --time "7D" --name "$name" file://var/backup/current/data/"$name" var/backup/current/restore/"$name"
        @remote % name=mysql/test # NOTE: à adapter
        @remote % remote/backup-fetch "$name" # NOTE: conserve les fichiers disparus ou modifiés dans var/backup/old/$(date +'%Y%m%d+%H%M%S%z')/
        @remote % remote/duplicity restore --time "7D" --name "$name" file://var/backup/current/data/"$name" var/backup/current/restore/"$name"
index 2bacc68..ae88a3b 100755 (executable)
@@ -8,7 +8,7 @@ install -d -m 770 \
 ssh \
  -F "$tool"/etc/ssh/remote.conf \
  -o ControlMaster=autoask \
 ssh \
  -F "$tool"/etc/ssh/remote.conf \
  -o ControlMaster=autoask \
- -o ControlPath="$tool"/var/run/ssh/"%h-%p-%r" \
+ -o ControlPath=/tmp/"%h-%p-%r" \
  -o HashKnownHosts=no \
  -o StrictHostKeyChecking=yes \
  -o UserKnownHostsFile="$tool"/etc/ssh/known_hosts \
  -o HashKnownHosts=no \
  -o StrictHostKeyChecking=yes \
  -o UserKnownHostsFile="$tool"/etc/ssh/known_hosts \