X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=blobdiff_plain;f=remote%2Fduplicity-key-send;fp=remote%2Fduplicity-key-send;h=0580e1bbba5ca8c551ecc642a603a0ebd8c2c9f8;hp=0000000000000000000000000000000000000000;hb=3ad6118386977e346d81042e924e5db9c5f15b7d;hpb=22f04b9fac14adc3d3fc98273ba126c3a51792c3 diff --git a/remote/duplicity-key-send b/remote/duplicity-key-send new file mode 100755 index 0000000..0580e1b --- /dev/null +++ b/remote/duplicity-key-send @@ -0,0 +1,7 @@ +#!/bin/sh -eu +tool=$(readlink -e "${0%/*}/..") +. "$tool"/remote/lib.sh + +gpg --export-options export-reset-subkey-passwd \ + --export-secret-subkeys "backup+$vm_hostname@$vm_domainname" | +"$tool"/remote/ssh gpg --import -