From: Vincent Le Gallic Date: Tue, 17 Jun 2014 23:59:29 +0000 (+0200) Subject: gpg_synchro.sh -> syncgpg.sh X-Git-Url: http://gitweb.pimeys.fr/?a=commitdiff_plain;h=ea0365fc8f44b3246fe1c04d520d5cc3a6cdaaaf;p=scripts-20-100.git gpg_synchro.sh -> syncgpg.sh --- diff --git a/gpg_synchro.sh b/gpg_synchro.sh deleted file mode 100755 index 5171d03..0000000 --- a/gpg_synchro.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash - -# Pour synchroniser facilement les données gpg entre mes deux machines - -color='' -endcolor='' - -if [ "$1" = "--local" ] -then - localmode=".local" -fi - -echo "${color}ici → cabal${endcolor}" -gpg --export-options export-local-sigs --export-options export-attributes --export | ssh cabal${localmode} gpg --import - -echo "${color}cabal → ici${endcolor}" -ssh cabal${localmode} gpg --export-options export-local-sigs --export-options export-attributes --export | gpg --import - -echo "${color}copie de la base de confiance de cabal vers ici${endcolor}" -scp cabal${localmode}:~/.gnupg/trustdb.gpg ~/.gnupg/ diff --git a/syncgpg.sh b/syncgpg.sh new file mode 100755 index 0000000..5171d03 --- /dev/null +++ b/syncgpg.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +# Pour synchroniser facilement les données gpg entre mes deux machines + +color='' +endcolor='' + +if [ "$1" = "--local" ] +then + localmode=".local" +fi + +echo "${color}ici → cabal${endcolor}" +gpg --export-options export-local-sigs --export-options export-attributes --export | ssh cabal${localmode} gpg --import + +echo "${color}cabal → ici${endcolor}" +ssh cabal${localmode} gpg --export-options export-local-sigs --export-options export-attributes --export | gpg --import + +echo "${color}copie de la base de confiance de cabal vers ici${endcolor}" +scp cabal${localmode}:~/.gnupg/trustdb.gpg ~/.gnupg/