{"id":15659191,"url":"https://github.com/macournoyer/mysql_s3_backup","last_synced_at":"2025-05-04T08:36:12.435Z","repository":{"id":736789,"uuid":"386983","full_name":"macournoyer/mysql_s3_backup","owner":"macournoyer","description":"A simple backup script for Mysql and S3 with incremental backups.","archived":false,"fork":false,"pushed_at":"2009-11-27T03:55:08.000Z","size":79,"stargazers_count":22,"open_issues_count":0,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-25T06:09:26.085Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/macournoyer.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}},"created_at":"2009-11-26T23:01:51.000Z","updated_at":"2024-06-19T13:48:11.000Z","dependencies_parsed_at":"2022-07-18T12:47:58.895Z","dependency_job_id":null,"html_url":"https://github.com/macournoyer/mysql_s3_backup","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/macournoyer%2Fmysql_s3_backup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macournoyer%2Fmysql_s3_backup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macournoyer%2Fmysql_s3_backup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macournoyer%2Fmysql_s3_backup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/macournoyer","download_url":"https://codeload.github.com/macournoyer/mysql_s3_backup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252136904,"owners_count":21700097,"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-10-03T13:15:32.390Z","updated_at":"2025-05-03T03:19:15.629Z","avatar_url":"https://github.com/macournoyer.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Send your Mysql backups to S3\nA simple backup script for Mysql and S3 with incremental backups.\n\nIt's all based on Paul Dowman's blog post: http://pauldowman.com/2009/02/08/mysql-s3-backup/, so read this first.\n\n## Configuration\n\nTo use incremental backups you need to enable binary logging by making sure that the MySQL config file (my.cnf) has the following line in it:\n\n    log_bin = /var/db/mysql/binlog/mysql-bin\n\nThe MySQL user needs to have the RELOAD and the SUPER privileges, these can be granted with the following SQL commands (which need to be executed as the MySQL root user):\n\n    GRANT RELOAD ON *.* TO 'user_name'@'%' IDENTIFIED BY 'password';\n    GRANT SUPER ON *.* TO 'user_name'@'%' IDENTIFIED BY 'password';\n\n## Usage\n\nCreate a YAML config file:\n\n    mysql:\n      # Database name to backup\n      database: muffins_development\n      # Mysql user and password to execute commands\n      user: root\n      password: secret\n      # Path to mysql binaries, like mysql, mysqldump (optional)\n      bin_path: /usr/bin/\n      # Path to the binary logs, should match the bin_log option in your my.cnf\n      bin_log: /var/lib/mysql/binlog/mysql-bin\n\n    s3:\n      # S3 bucket name to backup to\n      bucket: db_backups\n      # S3 credentials\n      access_key_id: XXXXXXXXXXXXXXX\n      secret_access_key: XXXXXXXXXXXXXXXXXXXXXX\n\nCreate a full backup:\n\n    mysql_s3_backup -c=your_config.yml full\n\nCreate an incremental backup:\n\n    mysql_s3_backup -c=your_config.yml inc\n\nRestore the latest backup (applying incremental backups):\n\n    mysql_s3_backup -c=your_config.yml restore\n\nRestore a specific backup (NOT applying incremental backups):\n\n    mysql_s3_backup -c=your_config.yml restore 20091126112233\n\n## Running the specs\n\nCreate a config file in config/test.yml\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacournoyer%2Fmysql_s3_backup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmacournoyer%2Fmysql_s3_backup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacournoyer%2Fmysql_s3_backup/lists"}