{"id":21322123,"url":"https://github.com/polyrabbit/innobackupex-script","last_synced_at":"2025-10-07T20:08:28.085Z","repository":{"id":25080990,"uuid":"28501507","full_name":"polyrabbit/innobackupex-script","owner":"polyrabbit","description":"innobackupex full backup script","archived":false,"fork":false,"pushed_at":"2014-11-18T03:25:26.000Z","size":141,"stargazers_count":0,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-13T11:15:52.560Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":false,"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/polyrabbit.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":"2014-12-26T06:03:13.000Z","updated_at":"2014-12-26T06:03:14.000Z","dependencies_parsed_at":"2022-07-10T11:46:11.421Z","dependency_job_id":null,"html_url":"https://github.com/polyrabbit/innobackupex-script","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/polyrabbit/innobackupex-script","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polyrabbit%2Finnobackupex-script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polyrabbit%2Finnobackupex-script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polyrabbit%2Finnobackupex-script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polyrabbit%2Finnobackupex-script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/polyrabbit","download_url":"https://codeload.github.com/polyrabbit/innobackupex-script/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polyrabbit%2Finnobackupex-script/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278838434,"owners_count":26054720,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"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":[],"created_at":"2024-11-21T20:13:28.178Z","updated_at":"2025-10-07T20:08:28.057Z","avatar_url":"https://github.com/polyrabbit.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mysql 备份脚本\n\n需要安装percona-xtrabackup\n\n    root@dev-web02:~/mysql_backup# apt-get install percona-xtrabackup\n\nFrom: https://gist.github.com/DamianCaruso/931358\n\nUSEROPTIONS选项修改密码\n\n# mysql 备份恢复\n\n## example\n\n备份目录\n\n```\nroot@prd-db01:/data/backups/mysql#\nroot@prd-db01:/data/backups/mysql# tree -L 2\n.\n├── full\n│   ├── 2014-10-10_15-46-08\n│   └── 2014-10-11_16-00-01\n└── incr\n    └── 2014-10-10_15-46-08\n```\n\n计划任务执行脚本\n\n    /root/mysql_backup/backup.sh\n    \n备份策略\n\n每次脚本执行时，如果有full backup(全备份)，会做增量备份\n\n多久做一次full backup，可以修改脚本\n\n    FULLBACKUPLIFE=`expr 86400 \\* 1` # Lifetime of the latest full backup in seconds\n\n\ncrontab(whenever): \n\n```ruby\nevery :day, :at =\u003e '2:00am' do\n  command \"/root/mysql_backup/backup.sh\"\nend\n```\n\n```\n0 2 * * * /bin/bash -l -c '/root/mysql_backup/backup.sh'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolyrabbit%2Finnobackupex-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpolyrabbit%2Finnobackupex-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolyrabbit%2Finnobackupex-script/lists"}