Deprecated google cloud command replacement to fix the odd "module 'lib' has no attribute 'EVP_MD_CTX_new'"
This commit is contained in:
parent
c0e252df71
commit
0d903689a3
1 changed files with 2 additions and 2 deletions
|
|
@ -83,7 +83,7 @@
|
|||
echo "Backing up PostgreSQL database: $DB"
|
||||
FILENAME="pgsql_''${DB}_''${TIMESTAMP}.sql.gz.gpg"
|
||||
if pg_dump -U postgres -d "$DB" | gzip | gpg --batch --trust-model always --encrypt --recipient "${gpgRecipient}" > "$BACKUP_DIR/$FILENAME"; then
|
||||
gsutil cp "$BACKUP_DIR/$FILENAME" "gs://${gcsBucket}/postgresql/$FILENAME"
|
||||
gcloud storage cp "$BACKUP_DIR/$FILENAME" "gs://${gcsBucket}/postgresql/$FILENAME"
|
||||
echo "Successfully uploaded encrypted $FILENAME"
|
||||
else
|
||||
echo "Failed to backup $DB" >&2
|
||||
|
|
@ -110,7 +110,7 @@
|
|||
echo "Backing up MariaDB database: $DB"
|
||||
FILENAME="mariadb_''${DB}_''${TIMESTAMP}.sql.gz.gpg"
|
||||
if mariadb-dump -u root "$DB" | gzip | gpg --batch --trust-model always --encrypt --recipient "${gpgRecipient}" > "$BACKUP_DIR/$FILENAME"; then
|
||||
gsutil cp "$BACKUP_DIR/$FILENAME" "gs://${gcsBucket}/mariadb/$FILENAME"
|
||||
gcloud storage cp "$BACKUP_DIR/$FILENAME" "gs://${gcsBucket}/postgresql/$FILENAME"
|
||||
echo "Successfully uploaded encrypted $FILENAME"
|
||||
else
|
||||
echo "Failed to backup $DB" >&2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue