Run two-stages backups (#1)

1. Download to a local directory, archive/encrypt there
1. Push encrypted archive to remote folder

This helps when the backup destination is e.g. a NFS drive.

Also, introduce harder checks and fix some flaws.

Reviewed-on: #1
Co-authored-by: Max Mehl <mail@mehl.mx>
Co-committed-by: Max Mehl <mail@mehl.mx>
This commit was merged in pull request #1.
This commit is contained in:
2023-12-13 12:22:54 +01:00
committed by mxmehl
parent 6da9f1fabc
commit 8faea3fef1
4 changed files with 58 additions and 24 deletions

View File

@@ -4,10 +4,13 @@
# File with hosts and their backup source paths
HOSTS="$CURDIR"/hosts.csv
# root dir where backups shall be saved to
BACKUPDIR=/var/backups/uberspace
# Temporary download destination for backups
TEMPDIR=/tmp/uberspace-backup
# GPG fingerprint of key used for encryption
# root dir where backups shall be saved to
BACKUPDIR=/mnt/remotesrv/uberspace
# GPG fingerprint of key used for encryption
GPG=6775E8DDD8CEABCC83E38CEHE6334BCA29DF8192
# Maximum number of backups that shall be retained (0 to disable automatic deletion)