MySQL Backup And Recovery With mysql-zrm On Debian Sarge - Page 2
3 Basic ConfigurationThe main configuration file is /etc/mysql-zrm/mysql-zrm.conf. In this file we have to specify at least the MySQL-backup user (a MySQL user with all privileges, like root) and his password: vi /etc/mysql-zrm/mysql-zrm.conf
If nothing else is specified, mysql-zrm assumes default values for all other settings. With this configuration, mysql-zrm would do backups of all databases, in raw format, it would keep the backups forever, and it wouldn't send email notifications. Raw format means, it backs up the databases as binary files that can be copied back to the database in case of loss of data, but it can cause problems if you copy these files between different MySQL versions. The counterpart of the raw format is the logical format which creates text files with a plain SQL dump of your databases. These SQL dumps can be restored in almost all MySQL versions, and you could even do it manually, as shown here: http://www.howtoforge.com/faq/6_4_en.html If you want to get email notifications to your email address example@example.com, add this to /etc/mysql-zrm/mysql-zrm.conf: vi /etc/mysql-zrm/mysql-zrm.conf
If you want to make backups in logical format and want to keep backups for seven days (instead of forever), add these lines to /etc/mysql-zrm/mysql-zrm.conf: vi /etc/mysql-zrm/mysql-zrm.conf
If you want to make a backup of a MySQL replication slave, add this line to /etc/mysql-zrm/mysql-zrm.conf: vi /etc/mysql-zrm/mysql-zrm.conf
This will back up files that are important for a MySQL replication slave. If you want to back up only the databases exampledb and anotherexampledb instead of all databases, add this to /etc/mysql-zrm/mysql-zrm.conf: vi /etc/mysql-zrm/mysql-zrm.conf
If you only need backups of the tables text, user, and page from the exampledb database, add this to /etc/mysql-zrm/mysql-zrm.conf: vi /etc/mysql-zrm/mysql-zrm.conf
Please note: the settings all-databases, databases, and tables/database are mutually exclusive! The default /etc/mysql-zrm/mysql-zrm.conf comes with lots of comments that explain all configuration options. I'm using these settings for now: vi /etc/mysql-zrm/mysql-zrm.conf
|
Join the discussion.
www.seamlessenterprise.com
IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com
Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com
Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com
Red Hat Virtual Experience - a free virtual event. Dec. 9th





print: 
Recent comments
6 hours 19 min ago
12 hours 7 min ago
13 hours 59 min ago
15 hours 44 min ago
19 hours 34 min ago
1 day 1 hour ago
1 day 1 hour ago
1 day 5 hours ago
1 day 11 hours ago
1 day 16 hours ago