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"
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 \