A simple bash wrapper for Percona's Xtrabackup utility.
Bring back life form. Priority One. All other priorities rescinded.
-
Qpress, included in the installer, otherwise you can get a copy here.
-
Percona 5.5+
-
Percona Xtrabackup 2.0.1 or later
-
Ample disk space (even with compression backups are only 2:1 ratio)
sh surrogate -<flag> <argument>
- -h Usage
- -b Performs a backup, either incremental or full depending on the argument you supply, for example: "surrogate -b full" -- Accepts either "full" or "inc" as an argument
- -r Restore using default digest location
- -c Restore, accepts a file containing a list of directories to restore.
Main configuration file
- /etc/surrogate/surrogate.conf
Xtrabackup tuning configuration (for future versions, not currently used)
- /etc/surrogate/xtrabackup.conf
/data (customizable data directory)
|-- backups
| |-- daily
| | |-- Fri
| | |-- Mon
| | |-- Sat
| | |-- Sun
| | |-- Thu
| | |-- Tue
| | `-- Wed
| |-- monthly
| `-- weekly
|-- log
| `-- bin
|-- mysql (or your my.cnf datadir)
|-- tmp
- 7 days
- 4 weeks
- 6 months
GPLv3