{"id":21174629,"url":"https://github.com/leen15/docker-s3-mysql-dump","last_synced_at":"2026-04-11T18:05:01.042Z","repository":{"id":152427773,"uuid":"66559761","full_name":"Leen15/docker-s3-mysql-dump","owner":"Leen15","description":null,"archived":false,"fork":false,"pushed_at":"2018-10-19T07:24:27.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-14T18:21:30.556Z","etag":null,"topics":["aws","backup","cron","docker","mysql","s3"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Leen15.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-08-25T13:22:50.000Z","updated_at":"2021-10-19T09:49:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"6c9cd2d4-5f7d-4535-a14d-429f6be77ed0","html_url":"https://github.com/Leen15/docker-s3-mysql-dump","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Leen15/docker-s3-mysql-dump","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leen15%2Fdocker-s3-mysql-dump","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leen15%2Fdocker-s3-mysql-dump/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leen15%2Fdocker-s3-mysql-dump/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leen15%2Fdocker-s3-mysql-dump/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Leen15","download_url":"https://codeload.github.com/Leen15/docker-s3-mysql-dump/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leen15%2Fdocker-s3-mysql-dump/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269285807,"owners_count":24391338,"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","status":"online","status_checked_at":"2025-08-07T02:00:09.698Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["aws","backup","cron","docker","mysql","s3"],"created_at":"2024-11-20T16:55:28.479Z","updated_at":"2026-04-11T18:05:01.008Z","avatar_url":"https://github.com/Leen15.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mysql dump to S3\nA docker image for backup all mysql databases and upload them to a S3 Bucket.\n\nImage runs as a cron job by default every hour. Period may be changed by tuning `BACKUP_CRON_SCHEDULE` environment variable.   \nIt also have a `BACKUP_PRIORITY` param for set the backup priority with ionice and nice values.   \nMay also be run as a one time backup job by using `backup.sh` script as command.\n \n\nFollowing environment variables should be set for mysql to work:\n```\nMYSQL_HOST=mysql\nMYSQL_PASSWORD=password\n```\n\nFollowing environment variables should be set for backup to work:\n```\nBACKUP_S3_BUCKET=\t\t// no trailing slash at the end!\nAWS_DEFAULT_REGION=\nAWS_ACCESS_KEY_ID=\nAWS_SECRET_ACCESS_KEY=\n```\n\nFlowing environment variables can be set to change the functionality:\n```\nBACKUP_CRON_SCHEDULE=* * * * *\nMYSQL_BACKUP_DIR=/var/backup/mysql\nMYSQL_EXCLUDE_DBS=|sys|mysql\nBACKUP_PRIORITY=\u003cthis is the priority, standard value is \"ionice -c 3 nice -n 10\"\u003e\nMYSQL_DUMP_PARAMS=\"--lock-tables=false --single-transaction --quick\" \n```\n\n\nIf you want to keep the archive files created, mount a volume on `MYSQL_BACKUP_DIR`.\n\nIf you want to store files on S3 under a subdirectory, just add it to the `BACKUP_S3_BUCKET` like `BACKUP_S3_BUCKET=bucket_name/subdirectory_for_storage`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleen15%2Fdocker-s3-mysql-dump","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleen15%2Fdocker-s3-mysql-dump","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleen15%2Fdocker-s3-mysql-dump/lists"}