{"id":15066693,"url":"https://github.com/hoaian2/mysql-backup","last_synced_at":"2026-01-02T22:48:42.467Z","repository":{"id":257059780,"uuid":"856069808","full_name":"HOAIAN2/mysql-backup","owner":"HOAIAN2","description":"Bash script to backup mysql /mariadb database in parallel for better performance","archived":false,"fork":false,"pushed_at":"2025-02-23T09:23:48.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T10:24:40.630Z","etag":null,"topics":["backup","database","mysql"],"latest_commit_sha":null,"homepage":"","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/HOAIAN2.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":"2024-09-11T23:57:20.000Z","updated_at":"2025-02-23T09:23:51.000Z","dependencies_parsed_at":"2024-09-29T11:22:28.227Z","dependency_job_id":"6a1d3162-f08b-4e3b-b603-22c0b29298dd","html_url":"https://github.com/HOAIAN2/mysql-backup","commit_stats":null,"previous_names":["hoaian2/mysql-backup"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HOAIAN2%2Fmysql-backup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HOAIAN2%2Fmysql-backup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HOAIAN2%2Fmysql-backup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HOAIAN2%2Fmysql-backup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HOAIAN2","download_url":"https://codeload.github.com/HOAIAN2/mysql-backup/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243814893,"owners_count":20352038,"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","database","mysql"],"created_at":"2024-09-25T01:10:51.756Z","updated_at":"2026-01-02T22:48:42.462Z","avatar_url":"https://github.com/HOAIAN2.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mysql-backup\n\nThis is a Bash script to backup a MySQL or MariaDB database by exporting data from each table individually and running the backup commands in parallel for optimal speed.\n\nThis tool is depend on `mariadb-dump` or `mysqldump` so make sure that you have one of these tools installed on your system.\n\n## Prerequisites\n\n- `mysqldump` or `mariadb-dump`\n\n## Usage\n\nCreate `config/backup.conf` file.\n\n```conf\nSERVER_TYPE=mariadb\nMAX_JOBS=8\n\nDB_HOST=\"localhost\"\nDB_USER=\"your-username\"\nDB_PASSWORD=\"your-password\"\nDB_NAME=\"your-database\"\n\nDUMP_EXTRA_ARGS=\"--compress --skip-ssl --quick --single-transaction\"\n```\n\nRun backup with config file\n\n```console\n./backup.sh\n```\n\nRun restore with default mysql\n\n```console\ntime mysql --user=\u003cADMIN_BACKUP\u003e --password=\u003cPASSWORD\u003e demo \u003c \u003c(cat /path/to/your/restore/*.sql)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoaian2%2Fmysql-backup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhoaian2%2Fmysql-backup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoaian2%2Fmysql-backup/lists"}