| Quick start Data Protector for MySQL |
|
|
|
| Written by Tomas Dalebjörk | |||||||
| Thursday, 26 March 2009 10:19 | |||||||
Quick Start Guidefor Data Protector for MySQL using IBM Tivoli Storage Manager
LinuxMySQL serverInstall the MySQL server binaries# rpm -i XX TSM ClientInstall the Tivoli Storage Manager (Backup Archive Client) # rpm -i XXX Install the Data Protector for MySQL# rpm -i XXX Configure the TSM serverSetup the copygroups, policysets, domains, and retention times. Create the backup schedule # dsmadmc tsmserv>define domain mysql Configure the TSM clientFilesystem setup # vi /opt/tivoli/tsm/client/ba/bin/dsm.opt
# vi /opt/tivoli/tsm/client/ba/bin/dsm.sys
# ln -s /opt/tivol/tsm/client/ba/bin/dsm.sys /opt/tivoli/tsm/client/api/bin/dsm.sys # vi /opt/tivoli/tsm/client/ba/bin/dsm.opt
Try a connectivity test to the TSM server # dsmc -se=mysql Create the backup scripts # vi /usr/local/bin/backup.sh
# chmod a+x /usr/local/bin/backup.sh Try to do a backup # /usr/local/bin/backup.sh Create the scheduler startup # vi /etc/init.d/tsmmys
# chmod a+x /etc/init.d/tsmmys # ln -s /etc/init.d/tsmmys /etc/rc2.d/S99tsmmys Startup the service, and verify that the service gets a schedule # /etc/init.d/tsmmys start # cat /var/log/dsmsched_mysql.log Setting up MySQL for: Transaction log backups (incremental backup)Edit my.ini / my.cnf file: # vi /etc/my.cnf
Restart the MySQL server: # /etc/init.d/mysql restart Veriify that the binary logging are enabled: # mysql mysql> show master logs; +------------+-----------+ | Log_name | File_size | +------------+-----------+ | bin.000945 | 26527589 | +------------+-----------+ Create the backup scripts (set environment variable INDEXFILE to point to the location of the indexfile) # vi /usr/local/bin/logbackup.sh
# chmod a+x /usr/local/bin/logbackup.sh Try to do a backup # /usr/local/bin/logbackup.sh |
|||||||
| Last Updated on Wednesday, 02 September 2009 18:28 |



