Skip to content

What do you use to save the backup off the database server? #90

Answered by slhck
hermesalvesbr asked this question in Q&A
Discussion options

You must be logged in to vote

Just commenting here as a user of this script. Usually you'd store the generated files using Amazon S3 or Google Cloud Storage (or any other cloud storage provider). Sending via email seems like a suboptimal choice (too large files), and Google Drive cannot be easily interacted with from the command line.

In my case I have a cron script that copies the latest daily backup to Google Cloud Storage on a daily basis.

You need the gsutil (Google Cloud SDK command line tools) program installed, and have it authenticated with a respective service account that can write to a certain bucket.

#!/usr/bin/env bash

GOOGLE_CLOUD_STORAGE_BUCKET="my-bucket-name" # replace here
BACKUP_DIR="$(realpath ./b…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@prodrigestivill
Comment options

Answer selected by prodrigestivill
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #79 on August 20, 2022 17:43.