mirror of
https://github.com/msitarzewski/agency-agents.git
synced 2026-10-20 01:55:11 +00:00
fix(backups): pass --batch so gpg uses the passphrase file
This commit is contained in:
@@ -331,7 +331,7 @@ backup_database() {
|
||||
fi
|
||||
|
||||
# Encrypt backup
|
||||
if ! gpg --cipher-algo AES256 --compress-algo 1 --s2k-mode 3 \
|
||||
if ! gpg --batch --cipher-algo AES256 --compress-algo 1 --s2k-mode 3 \
|
||||
--s2k-digest-algo SHA512 --s2k-count 65536 --symmetric \
|
||||
--passphrase-file "$ENCRYPTION_KEY" "$backup_file"; then
|
||||
handle_error "Database backup encryption failed for $db_name"
|
||||
@@ -357,7 +357,7 @@ backup_files() {
|
||||
|
||||
# Create compressed archive and encrypt
|
||||
if ! tar -czf - -C "$source_dir" . | \
|
||||
gpg --cipher-algo AES256 --compress-algo 0 --s2k-mode 3 \
|
||||
gpg --batch --cipher-algo AES256 --compress-algo 0 --s2k-mode 3 \
|
||||
--s2k-digest-algo SHA512 --s2k-count 65536 --symmetric \
|
||||
--passphrase-file "$ENCRYPTION_KEY" \
|
||||
--output "$backup_file"; then
|
||||
|
||||
Reference in New Issue
Block a user