From: Ludovic CHEVALIER Date: Mon, 17 Feb 2014 17:05:15 +0000 (+0100) Subject: Modifications : README - ruse gpg-agent pour les backups X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=commitdiff_plain;h=b1959d9495c8be1d6a6894d564a3abcfc04c28ce Modifications : README - ruse gpg-agent pour les backups --- diff --git a/README b/README index 2d49c6f..67ac1cf 100644 --- 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 + @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" diff --git a/remote/ssh b/remote/ssh index 2bacc68..ae88a3b 100755 --- a/remote/ssh +++ b/remote/ssh @@ -8,7 +8,7 @@ install -d -m 770 \ 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 \