MySQL Backup And Recovery With mysql-zrm On Debian Sarge - Page 5
11 Incremental Backupsmysql-zrm can also do incremental backups, however I had some problems with it. First I had to configure MySQL to write its bin-logs to /var/lib/mysql (by editing /etc/mysql/my.cnf) because that's where mysql-zrm expects them. Afterwards, mysql-zrm-scheduler --now --backup-set dailyrun --backup-level 1 seemed to work, but mysql-zrm --action parse-binlogs --source-directory=/var/lib/mysql --backup-set dailyrun gave back an error:
That's why I think it's better to do full backups for now instead of incremental backups.
12 Remote Backupsmysql-zrm lets you also do backups from remote MySQL servers over the network. However, this also caused a few problems for me. 12.1 First TryIn my first try I wanted to do a backup (in raw format) of a MySQL server on a remote SuSE 10.0 system. I edited /etc/mysql-zrm/mysql-zrm.conf and put the remote user, password, and hostname into it, then I ran mysql-zrm-scheduler --now --backup-set dailyrun --backup-level 0 The result was this: Logging to /var/log/mysql-zrm/mysql-zrm-scheduler.log I guess this happened because of different MySQL versions on both systems. 12.2 Second TryIn my second try I wanted to make a backup (again in raw format) of a MySQL database on a remote Debian Sarge server. Both the local and the remote system had the same MySQL version. I ran mysql-zrm-scheduler --now --backup-set dailyrun --backup-level 0 and got the following errors: Logging to /var/log/mysql-zrm/mysql-zrm-scheduler.log It seemed to miss the directory /var/lib/mysql/web34_db1 (web34_db1 is one of the databases on the remote system) on the local system! So I created it: mkdir /var/lib/mysql/web34_db1 and ran mysql-zrm-scheduler --now --backup-set dailyrun --backup-level 0 again, and this time it worked, but I doubt that this is the way it is supposed to be... 12.3 Third TryThis time I tried to make a backup from the same remote Debian Sarge system as before, but in logical instead of raw format. I ran mysql-zrm-scheduler --now --backup-set dailyrun --backup-level 0 and got the following error: Logging to /var/log/mysql-zrm/mysql-zrm-scheduler.log But this time it's the normal behaviour because for remote logical backups MySQL needs to be configured with SSL, as described on http://mysqlbackup.zmanda.com/index.php/Do_I_need_to_make_changes_to_MySQL_database_configuration%3F. Unfortunately, the Debian Sarge MySQL packages come without SSL support: mysqld --ssl --help 060927 12:26:09 [ERROR] mysqld: unknown option '--ssl' I logged in to the MySQL shell: mysql -u root -p and ran SHOW VARIABLES LIKE 'have_openssl'; and got the same result:
No SSL support...
13 Links
|
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





print: 
Recent comments
21 hours 51 min ago
23 hours 20 min ago
1 day 2 hours ago
1 day 5 hours ago
1 day 8 hours ago
1 day 9 hours ago
1 day 9 hours ago
1 day 10 hours ago
1 day 11 hours ago
1 day 12 hours ago