Skip to content

Containerized mysqldump to upload to Google Drive (not Cloud Storage)

Notifications You must be signed in to change notification settings

drakeapps/mysqlbackup-gdrive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MySQL Google Drive Backup

Environment

  • MYSQL_USER
  • MYSQL_PASS
  • MYSQL_HOST
  • MYSQL_DB
  • RCLONE_TOKEN - JSON token for rclone. This is found in your rclone.conf
  • DEST_DIR - Directory on google drive for backup

Running

copy.sh is the main script, but docker or k8s is how it's meant to be run.

Docker

There's a docker-compose.yml that can be used for a docker-compose run. For cron jobs, using this image as a base and adding a cron job is likely the way to go

Kubernetes

There's a k8s-config.yaml example of a cronjob. The rclone token and MySQL pass are treated as secrets

About

Containerized mysqldump to upload to Google Drive (not Cloud Storage)

Resources

Stars

Watchers

Forks

Packages