{"id":23380752,"url":"https://github.com/softonic/mysql-backup","last_synced_at":"2025-04-10T22:43:05.138Z","repository":{"id":45067790,"uuid":"170732321","full_name":"softonic/mysql-backup","owner":"softonic","description":"Backup mysql to aws s3","archived":false,"fork":false,"pushed_at":"2022-01-11T09:31:52.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":9,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-24T19:39:47.257Z","etag":null,"topics":["mysql","mysqldump","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/softonic.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":"CODEOWNERS","security":null,"support":null}},"created_at":"2019-02-14T17:40:36.000Z","updated_at":"2022-01-11T09:30:57.000Z","dependencies_parsed_at":"2022-08-26T10:11:01.864Z","dependency_job_id":null,"html_url":"https://github.com/softonic/mysql-backup","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softonic%2Fmysql-backup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softonic%2Fmysql-backup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softonic%2Fmysql-backup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softonic%2Fmysql-backup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/softonic","download_url":"https://codeload.github.com/softonic/mysql-backup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248312208,"owners_count":21082638,"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":["mysql","mysqldump","s3"],"created_at":"2024-12-21T20:18:28.372Z","updated_at":"2025-04-10T22:43:05.112Z","avatar_url":"https://github.com/softonic.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mysql backup s3\n\n## Description\nEasily back up from cloudSQL or any mysql instance to AWS S3.\n\n| Variable                          |  Description                         |\n|-----------------------------------|--------------------------------------|\n| `MYSQL_HOST`                      | Mysql host                           |\n| `MYSQL_PORT`                      | Mysql port                           |\n| `MYSQL_DATABASE`                  | Mysql target databases.              |\n|                                   | Space-separated if more than one db, |\n|                                   | e.g. MYSQL_DATABASE=\"db-1 db-2 db3\". |\n|                                   | If empty or not defined - will try   |\n|                                   | to dump all databases by using       |\n|                                   | mysqldump --all-databases flag       |\n| `MYSQL_USER`                      | Mysql user                           |\n| `MYSQL_PASSWORD`                  | Mysql password                       |\n| `AWS_ACCESS_KEY_ID`               | AWS S3 accessKeyId                   |\n| `AWS_SECRET_ACCESS_KEY`           | AWS S3 secretAccessKey               |\n| `AWS_S3_FILE_PREFIX`              | Prefix to generate AWS s3 file name  |\n| `AWS_S3_BUCKET`                   | Target S3 bucket                     |\n| `AWS_ENDPOINT_URL`                | Override S3 URL with the given URL   |\n| `GOOGLE_APPLICATION_CREDENTIALS`  | GCP json credentials file path       |\n|                                   | You can mount this file as container |\n|                                   | volume                               |\n| `GCP_GCS_FILE_PREFIX`             | Prefix to generate GCP gcs file name |\n| `GCP_GCS_BUCKET`                  | Target GCS bucket                    |\n\n\n```bash\ndocker run -e MYSQL_HOST=mysql -e MYSQL_PORT=3306 -e MYSQL_USER=user -e MYSQL_PASSWORD=pwd -e MYSQL_DATABASE=mydb -e AWS_S3_FILE_PREFIX=s3prefix -e AWS_S3_BUCKET=mybucket --rm softonic./mysql-backup-s3\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftonic%2Fmysql-backup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoftonic%2Fmysql-backup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftonic%2Fmysql-backup/lists"}