add prefix and date to temporary folder

This makes identifying the latest version easier when daleing with backups.
pull/239/head
basbebe 2021-01-10 14:45:20 +01:00
parent 31074ac13d
commit ad09f543af
No known key found for this signature in database
GPG Key ID: 1E18AD713D17B254
1 changed files with 2 additions and 2 deletions

View File

@ -403,7 +403,7 @@ An entropy pool value greater than 2000 is sufficient.
Create a temporary directory which will be cleared on [reboot](https://en.wikipedia.org/wiki/Tmpfs) and set it as the GnuPG directory: Create a temporary directory which will be cleared on [reboot](https://en.wikipedia.org/wiki/Tmpfs) and set it as the GnuPG directory:
```console ```console
$ export GNUPGHOME=$(mktemp -d) $ export GNUPGHOME=$(mktemp -d -t gnupg_$(date +%Y%m%d%H%M)_XXX)
``` ```
Otherwise, to preserve the working environment, set the GnuPG directory to your home folder: Otherwise, to preserve the working environment, set the GnuPG directory to your home folder:
@ -1800,7 +1800,7 @@ $ sudo mount /dev/mapper/secret /mnt/encrypted-storage
Import the master key and configuration to a temporary working directory: Import the master key and configuration to a temporary working directory:
```console ```console
$ export GNUPGHOME=$(mktemp -d) $ export GNUPGHOME=$(mktemp -d -t gnupg_$(date +%Y%m%d%H%M)_XXX)
$ gpg --import /mnt/encrypted-storage/tmp.XXX/mastersub.key $ gpg --import /mnt/encrypted-storage/tmp.XXX/mastersub.key