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
|
www.seamlessenterprise.com
One number. One voicemail. Seize the lead. Sprint Mobile Integration.
www.seamlessenterprise.com
One Number. One Voicemail.
Make it easier for clients to reach you. Turn your desk phone and mobile phone into one with Sprint Mobile Integration.
www.seamlessenterprise.com
One number. One voicemail. Sprint Mobile Integration.
www.seamlessenterprise.com
AT&T Synaptic Compute as a Service. Boost your power on demand.
Trial: IBM Cognos Express Reporting, Analysis & Planning
Learn benefits of Simpana software.
View the Gartner Video




print: 

Recent comments
15 hours 46 min ago
1 day 7 hours ago
1 day 8 hours ago
1 day 8 hours ago
1 day 18 hours ago
1 day 22 hours ago
1 day 23 hours ago
2 days 9 hours ago
2 days 12 hours ago
2 days 17 hours ago