-
-
Notifications
You must be signed in to change notification settings - Fork 0
Frequently asked questions
Niclas Lindstedt edited this page May 21, 2021
·
20 revisions
First, install gnupg2 with `sudo apt install gnupg2`
Then decrypt it like this:
gpg2 --batch --passphrase "<PASSWORD>" -o <OUTPUT FILENAME> --decrypt <BACKUP NAME>
GnuPG will detect what algorithm was used for encryption, so you do not need to specify algorithm.
The signing key is exported to the `/gpg` folder on startup, so first you need to mount a volume at /gpg to access the key.
In your docker-compose.yml
file:
volumes:
- "./gpg:/gpg"
Now enter the ./gpg
folder on your host and type:
gpg2 --batch --import signing_key.asc
```
gpg2 --verify .sfv.sig .sfv
```
The signatures are only a verification of the sfv checksum, so you need to have that file as well.
First, install cksfv with `sudo apt install cksfv`
Then verify an sfv checksum like this:
cksfv -g <SFV FILENAME>
If it tells you Everything OK
then the file is intact and valid.
Use the TZ environment variable.
To keep permissions, you need to set ARCHIVE_TYPE to `tgz`
Backups are first written to `/tmp/backup` before moved to the backup folder. If you have enough memory to store your backups temporarily in memory before moving them to their final destination, you can mount a `tmpfs` in-memory filesystem at `/tmp/backup` to speed things up.
Make sure you have enough memory for storing a full backup.
version: "3.7"
services:
...
backup:
...
tmpfs:
- /tmp/backup:mode=700,uid=1000,gid=1000