{"id":17650043,"url":"https://github.com/alfiosalanitri/backup-mysql","last_synced_at":"2025-06-10T21:34:58.241Z","repository":{"id":119315797,"uuid":"412123377","full_name":"alfiosalanitri/backup-mysql","owner":"alfiosalanitri","description":"Export all mysql databases in singular database_name.sql.gz file and archive all dumps in a tar.xz archive file.","archived":false,"fork":false,"pushed_at":"2022-11-12T15:08:04.000Z","size":29,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-07T06:46:24.378Z","etag":null,"topics":["backup","bash","mysql"],"latest_commit_sha":null,"homepage":"","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/alfiosalanitri.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-30T15:39:07.000Z","updated_at":"2023-01-14T07:31:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"4a3b4f51-3395-4378-9fdd-a029010eae0b","html_url":"https://github.com/alfiosalanitri/backup-mysql","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/alfiosalanitri%2Fbackup-mysql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alfiosalanitri%2Fbackup-mysql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alfiosalanitri%2Fbackup-mysql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alfiosalanitri%2Fbackup-mysql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alfiosalanitri","download_url":"https://codeload.github.com/alfiosalanitri/backup-mysql/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252831178,"owners_count":21810779,"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":["backup","bash","mysql"],"created_at":"2024-10-23T11:34:55.037Z","updated_at":"2025-05-07T06:46:26.044Z","avatar_url":"https://github.com/alfiosalanitri.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NAME\nbackup-mysql - create a tar archive with databases stored in .sql.gz separated file.\n\n# DESCRIPTION\nthis script dump all databases into singular database.sql.gz file and create an archive .tar.xz into current script directory.\n\n# INSTALLATION\n- rename .config.example to .config\n- edit .config file with your data\n- `sudo chown root:root /path/to/backup-mysql`\n- `sudo chown root:root /path/to/.config`\n- `sudo chmod 600 /path/to/.config`\n- `sudo chmod +x /path/to/backup-mysql`\n\n# USAGE\n`./backup-mysql /path/to/.config /path/to/backup/destination`\n\n# HOW TO restore a singular database?\n`zcat database.sql.gz | mysql -u username -p database_name`\n       \n# AUTHOR: \nbackup-mysql is written by Alfio Salanitri www.alfiosalanitri.it and are licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falfiosalanitri%2Fbackup-mysql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falfiosalanitri%2Fbackup-mysql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falfiosalanitri%2Fbackup-mysql/lists"}