{"id":39533865,"url":"https://github.com/dumanhaydar/mysqlbackuptogcs","last_synced_at":"2026-01-18T06:31:11.652Z","repository":{"id":208623642,"uuid":"722087493","full_name":"dumanhaydar/MySQLBackupToGCS","owner":"dumanhaydar","description":"This project provides an automated solution for backing up MySQL databases to Google Cloud Storage. It is designed to be simple, efficient, and easy to configure.","archived":false,"fork":false,"pushed_at":"2023-11-22T13:01:36.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-01-27T17:06:59.271Z","etag":null,"topics":["backup","cloud","google","mysql","storage"],"latest_commit_sha":null,"homepage":"","language":"Go","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/dumanhaydar.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}},"created_at":"2023-11-22T12:08:47.000Z","updated_at":"2023-11-22T19:12:12.000Z","dependencies_parsed_at":"2023-11-22T13:43:26.207Z","dependency_job_id":null,"html_url":"https://github.com/dumanhaydar/MySQLBackupToGCS","commit_stats":null,"previous_names":["dumanhaydar/mysqlbackuptogcs"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/dumanhaydar/MySQLBackupToGCS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dumanhaydar%2FMySQLBackupToGCS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dumanhaydar%2FMySQLBackupToGCS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dumanhaydar%2FMySQLBackupToGCS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dumanhaydar%2FMySQLBackupToGCS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dumanhaydar","download_url":"https://codeload.github.com/dumanhaydar/MySQLBackupToGCS/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dumanhaydar%2FMySQLBackupToGCS/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28531997,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"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":["backup","cloud","google","mysql","storage"],"created_at":"2026-01-18T06:31:11.561Z","updated_at":"2026-01-18T06:31:11.629Z","avatar_url":"https://github.com/dumanhaydar.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# MySQL Backup to Google Cloud Storage (GCS)\n\n## Description\n\nThis project provides an automated solution for backing up MySQL databases to Google Cloud Storage. It is designed to be simple, efficient, and easy to configure.\n\n## Features\n\n-   Complete backup of MySQL databases.\n-   Secure storage in Google Cloud Storage.\n-   Customizable configuration for different environments.\n-   Backup size management with the automatic deletion of old backups.\n\n## Prerequisites\n\n-   GoLang installed on the machine.\n-   Access to a MySQL instance.\n-   A configured account and bucket on Google Cloud Storage.\n-   `bzip2` and `mysqldump` installed for database compression and dumping.\n\n## Installation and Configuration\n\nClone the repository and build the executable:\n\n    git clone https://github.com/dumanhaydar/MySQLBackupToGCS.git\n    cd MySQLBackupToGCS\n    go build -o bin/mbg main.go\n\nEnsure `bzip2` and `mysqldump` are installed:\n\nbashCopy code\n\n    sudo apt-get install bzip2 \n    sudo apt-get install mysql-client\n\n## Usage\n\nTo execute the backup script, use the following command:\n\n    ./bin/mbg -database *dbName* -bucket *gcsBucketName* -config *pathToMySQLconfig* -keep *keepSize*\n\nWhere:\n\n-   `*dbName*` is the name of the MySQL database.\n-   `*gcsBucketName*` is the name of the Google Cloud Storage bucket.\n-   `*pathToMySQLconfig*` is the path to the MySQL configuration file _(example .my.cnf)_\n-   `*keepSize*` is the number of backups to keep.\n\n## Security\n\nEnsure credentials and configurations are managed securely.\n\n## Contribution\n\nContributions are welcome. Please submit your pull requests on GitHub.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdumanhaydar%2Fmysqlbackuptogcs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdumanhaydar%2Fmysqlbackuptogcs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdumanhaydar%2Fmysqlbackuptogcs/lists"}