percona xtrabackup basics on debian

Installation
Adding a repository:
#gpg --keyserver hkp://keys.gnupg.net --recv-keys 1C4CBDCDCD2EFD2A
... [some output removed] ...
gpg: imported: 1

#gpg -a --export CD2EFD2A | sudo apt-key add -
Add this to /etc/apt/sources.list, replacing squeeze with the name of your distribution:
deb http://repo.percona.com/apt squeeze main
deb-src http://repo.percona.com/apt squeeze main

apt-get update
apt-get install xtrabackup

Creating a backup
innobackupex --user=DBUSER --password=DBUSERPASS --databases="db1 db2" /path/to/BACKUP-DIR/

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s