{"repo":"gamemann/db-backups-to-s3-docker-image","free":true,"listed":false,"github":"https://github.com/gamemann/db-backups-to-s3-docker-image","clone":"git clone https://github.com/gamemann/db-backups-to-s3-docker-image.git","description":"A custom Docker image that includes a script to back up MySQL and PostgreSQL databases to any S3-compatible storage bucket (e.g., Amazon S3, Backblaze B2). Backups are scheduled using a cron job inside the custom image.","language":"Shell","stars":12,"topics":["automatic","automation","back-up","backup","bash","bucket","database","dump","duplicity","mysql"],"license":null,"category":"databases-storage","readme_excerpt":"A Docker image that supports remotely backing up MySQL and PostgreSQL databases to S3-compatible storage buckets (e.g. Amazon S3, Backblaze B2, etc.). Timing of the backups are determined by a cron job installed inside of the Docker image (located at image/conf/cron.conf ) that executes a backup script written in Bash ( image/scripts/backup.sh ). The backup script dumps the database $DB NAME using the user $DB USER (identified by the password $DB PASS ) to /tmp/$DB NAME.sql . Afterwards, it uploads the database dump to the S3 storage bucket using Duplicity and deletes the local database dump. The custom Docker image files are stored inside of the image/ directory. There is also a Docker Compose application example you can refer to and use inside of the example/ directory which shows how to utilize this image. Building The Docker Image The custom Docker image is stored inside of the image/ directory. You can use the build image.sh Bash script to build the Docker image with customization support including the image name, tag, path, and more options. The following arguments are supported when executing the script. Flag Default Description -------------------- ------------ -------------------------------------------------------------------------------------------------------- --name= db-backups The name of the Docker image. --tag= latest The Docker image's tag. --path= image/ Builds the Docker image inside of . --base-name= debian The base Docker image (recommend using debian or ","default_branch":null,"files":null,"tree":[],"storefront":"/r/gamemann","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/gamemann/db-backups-to-s3-docker-image/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}