{"id":20859143,"url":"https://github.com/daemonite/mysql-backup-s3","last_synced_at":"2025-05-12T08:32:08.138Z","repository":{"id":147237155,"uuid":"220163911","full_name":"Daemonite/mysql-backup-s3","owner":"Daemonite","description":"Forked from https://github.com/schickling/dockerfiles/tree/master/mysql-backup-s3","archived":false,"fork":false,"pushed_at":"2019-11-08T05:28:54.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-03-26T15:02:31.538Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Daemonite.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-11-07T06:09:21.000Z","updated_at":"2024-03-26T15:02:31.538Z","dependencies_parsed_at":null,"dependency_job_id":"4eef598a-d463-4cf5-95ce-8b53453bae5f","html_url":"https://github.com/Daemonite/mysql-backup-s3","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Daemonite%2Fmysql-backup-s3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Daemonite%2Fmysql-backup-s3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Daemonite%2Fmysql-backup-s3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Daemonite%2Fmysql-backup-s3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Daemonite","download_url":"https://codeload.github.com/Daemonite/mysql-backup-s3/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225130739,"owners_count":17425506,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-18T04:48:47.097Z","updated_at":"2024-11-18T04:48:47.702Z","avatar_url":"https://github.com/Daemonite.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e Forked from https://github.com/schickling/dockerfiles/tree/master/mysql-backup-s3\n\n# mysql-backup-s3\n\nBackup MySQL to S3 (supports periodic backups \u0026 mutli files).\n\n- Updated to use an Ubuntu base image with the latest MySQL Client tools\n- Removed support for `SCHEDULE` using go-cron\n- Replaced `MULTI_FILES` with `MULTI_DATABASES`, always one file per DB\n- Removed `--databases` argument so SQL won't include `CREATE DATABASE` / `USE` statements\n- Updated default `MYSQLDUMP_OPTIONS` environment variable\n\n## Basic usage\n\n```sh\n$ docker run -e S3_ACCESS_KEY_ID=key -e S3_SECRET_ACCESS_KEY=secret -e S3_BUCKET=my-bucket -e S3_PREFIX=backup -e MYSQL_USER=user -e MYSQL_PASSWORD=password -e MYSQL_HOST=localhost schickling/mysql-backup-s3\n```\n\n## Environment variables\n\n- `MYSQLDUMP_OPTIONS` mysqldump options (default: --quote-names --quick --add-drop-table --add-locks --allow-keywords --disable-keys --extended-insert --single-transaction --create-options --comments --net_buffer_length=16384)\n- `MYSQLDUMP_DATABASE` list of databases you want to backup (default: --all-databases)\n- `MYSQL_HOST` the mysql host *required*\n- `MYSQL_PORT` the mysql port (default: 3306)\n- `MYSQL_USER` the mysql user *required*\n- `MYSQL_PASSWORD` the mysql password *required*\n- `S3_ACCESS_KEY_ID` your AWS access key *required*\n- `S3_SECRET_ACCESS_KEY` your AWS secret key *required*\n- `S3_BUCKET` your AWS S3 bucket path *required*\n- `S3_PREFIX` path prefix in your bucket (default: 'backup')\n- `S3_FILENAME` a consistent filename to overwrite with your backup.  If not set will use a timestamp.\n- `S3_REGION` the AWS S3 bucket region (default: us-west-1)\n- `S3_ENDPOINT` the AWS Endpoint URL, for S3 Compliant APIs such as [minio](https://minio.io) (default: none)\n- `S3_S3V4` set to `yes` to enable AWS Signature Version 4, required for [minio](https://minio.io) servers (default: no)\n- `MULTI_DATABASES` Allow to have one file per database if set `yes` default: no)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaemonite%2Fmysql-backup-s3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaemonite%2Fmysql-backup-s3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaemonite%2Fmysql-backup-s3/lists"}