Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hoegaarden/xtrabackup-helper
Small wrapper around percona's xtrabackup
https://github.com/hoegaarden/xtrabackup-helper
Last synced: 12 days ago
JSON representation
Small wrapper around percona's xtrabackup
- Host: GitHub
- URL: https://github.com/hoegaarden/xtrabackup-helper
- Owner: hoegaarden
- Created: 2013-07-04T08:03:06.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-11-18T10:04:03.000Z (about 11 years ago)
- Last Synced: 2023-04-09T12:18:24.713Z (over 1 year ago)
- Language: Perl
- Size: 146 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
NAME
xtrabackup-helper.plMODES
When running *xtrabackup-helper.pl* you can specify the mode with "-m" /
"--mode" (default: "list")."list"
Lists all backups (full and incremental) in an orderd list. The
oldest backup is printed first (at the beginning / top), the most
recent backup ist printed last (at the bottom / end). Indeted
backups show an incremental backup which is based on the backup
right above.Example listing:
user@host# xtrabackup-helper.pl -m list
2013-07-04_14-14-51
2013-07-04_14-18-57
user@host#"restore"
Restores the a backup. If no "-r" / "--restore" is given, the most
recent backup gets restored. Other (older backups) can be selected
by the identifier / date from the "list" mode."backup"
Performs the backup of the database server. It does an incremental
backup, except the following is true:* There is no other full backup
* The current day of week (determined by "date '+%u'") is the same
as the one given via "--full-day" (which defaults to 1 /
monday)."update"
The script loads the newest version of itself from github and
replaces itself"weedout"
Deletes old backups. See: "--keep-days".OPTIONS
"--mode", "-m"
In which mode to run, see "MODES"."--dir", "-d"
The base directory of the backups. It defaults to
"/var/backups/mysql/data/". This dirctory must exist. "innobackupex"
then puts its default directory structure in there, so one ends up
with a subdirectory for every single backup."--restore", "-r"
Which backup to restore. Defaults to the most recent one."--out", "-o"
The directory where to restore to."--chown", "-c"
A user (or uid) and optionaly a group (or gid) to "chmod" all files
in the "out" directory to. If both user and group are given, they
need to be seperated by ":"."--force", "-f"
If the "out" directory is not empty one can force a cleanup with
this option. ATTENTION: all files in the "out" directory are
deleted!"--full-day"
The day of week when a full backup should be made. Defaults to 1
which means monday."--man", "--help", "-h"
Displays this help / manpage."--keep-days", "-k"
This is the minimum of days in the past where it's possible to
restore a backup from. defaults to 7. This means, that e.g. full
backups can be older than this setting, because an incremental
backup, which is younger is based on that full backup.HINTS and other STUFF
* The README is generated by "pod2text xtrabackup-helper.pl > README"* When making a backup "innobackupex" is called with the arguments
"--parallel=3"
"--slave-info"
"--rsync"
"--defaults-extra-file=/etc/mysql/debian.cnf"AUTHORS
Hannes HoerlJonathan Leroy