Skip to content

A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy injectors to reality checkers. Each agent is a specialized expert with personality, processes, and proven deliverables.

Shell

fix(backups): pass --batch so gpg uses the passphrase file

Rudy Celeklibc10421a5290
diff --git a/support/support-infrastructure-maintainer.md b/support/support-infrastructure-maintainer.md
index 090da915..50a30534 100644
--- a/support/support-infrastructure-maintainer.md
+++ b/support/support-infrastructure-maintainer.md
@@ -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