summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xluks-header-backup6
1 files changed, 5 insertions, 1 deletions
diff --git a/luks-header-backup b/luks-header-backup
index 4219df7..38c0e7f 100755
--- a/luks-header-backup
+++ b/luks-header-backup
@@ -7,7 +7,11 @@ test -n "$host"
dev=$1
dev_basename=${dev##*/}
+outfile="$HOME/$host-${dev_basename}-luks-header.bak"
test -n "$dev_basename"
-cryptsetup --header-backup-file=$HOME/$host-${dev_basename}-luks-header.bak luksHeaderBackup $dev
+cryptsetup --header-backup-file="$outfile" luksHeaderBackup $dev
+gpg --batch -r 0x6D1655C14CE1C13E -e "$outfile"
+rm "$outfile"
+chown flo:users "$outfile.gpg"