Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
/goxPublic

Painless MySQL backup (and restore)

License

NotificationsYou must be signed in to change notification settings

toorop/gox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Painless backup (and restore) tool for MySQL based on xtrabackup from Percona.

Quick start

Install xtrabackup and qpress on MySQL server

Seeinstall procedure here for xtrabackup

Once you have installed xtrabackup, install qpress via:

apt-get install qpress

Download gox on our backup server

Get binary fromreleases page

Rename binary:

mv gox_0.1.0_linux-amd64 gox

Create a config file corresponding to the backup/remote task

Seeconfig.yalm.sample

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

Backup

gox backup --config /path/to/mysql.host.com.yaml

Restore

gox restore --config /path/to/mysql.host.com.yaml --from 2018-01-31--08-32-49

Support this project

If this project is useful for you, please consider making a donation.

Bitcoin

Address: 1JvMRNRxiTiN9H7LyZTq4yzR7ez86M7ND6

Bitcoin QR code

Ethereum

Address: 0xA84684B45969efbD54fd25A1e2eD8C7790A0C497

ETH QR code


[8]ページ先頭

©2009-2025 Movatter.jp