- Notifications
You must be signed in to change notification settings - Fork5
Painless MySQL backup (and restore)
License
NotificationsYou must be signed in to change notification settings
toorop/gox
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Painless backup (and restore) tool for MySQL based on xtrabackup from Percona.
Seeinstall procedure here for xtrabackup
Once you have installed xtrabackup, install qpress via:
apt-get install qpress
Get binary fromreleases page
Rename binary:
mv gox_0.1.0_linux-amd64 gox
Here is a sample:
# Remote MySQL hosthost:mysql.explample.com# Mysql userdbuser:root# Mysql passworddbpassword:# SSH configssh:# SSH useruser:root# Private key for ssh userkey:/home/jdoe/.ssh/id_rsa# Remote path of xtrabsckup binaryxtrabackup:/usr/bin/xtrabackup# The number of threads to use to copy multiple data files concurrently when creating a backupparallel:2# Compressioncompress:# Compress ?active:true# This option specifies the number of worker threads used by xtrabackup for parallel data compressionthreads:2# This option when specified will remove .qp, .xbcrypt and .qp.xbcrypt files after decryption and decompression.remove-original:true# This options creates the xtrabackup_galera_info file which contains the local node state at the time of the backup.galera:false# Storage path for backupbackup-dir:/tmp/# Remove backups older than 'keep'# A duration string is a possibly signed sequence of decimal numbers, each with optional fraction and a unit suffix,# such as "300ms", "-1.5h" or "2h45m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".keep:168h
gox backup --config /path/to/mysql.host.com.yaml
gox restore --config /path/to/mysql.host.com.yaml --from 2018-01-31--08-32-49
If this project is useful for you, please consider making a donation.
Address: 1JvMRNRxiTiN9H7LyZTq4yzR7ez86M7ND6
Address: 0xA84684B45969efbD54fd25A1e2eD8C7790A0C497
About
Painless MySQL backup (and restore)
Topics
Resources
License
Stars
Watchers
Forks
Packages0
No packages published