AUTOMATE MYSQL DUMP BACKUP
Hi All,
Here's my situation.
MASTER/MEDIA : Solaris 10
Client : Linux/Solaris
There is a backup script created by mysql admin lets call it backup.sh which can do on demand mysql dump on a directory
/mysql_backup/yyyymmdd. It mean every time you run the script it will create a folder with that date.
I have been told to backup these dump files as standard backup.
I need following accomplished.
1. Need to call backup.sh to perform mysql dump and crate dump in /mysql_backup/yyyyymmdd
2. Run netbackup backup to backup the dump.
3. Once the netbackup backup is successful delete the dump from disk.
What would be the best way to do it via netbackup ? Do I have to use bpstart and bpend scripts on each client ?
Please guide.
Anurag Sharma
If time to perform SQL dump cannot be predicted, bpstart_notify may not be the best way, as the bpstart_start timeout will cause backup failure if dump does not complete in time.
Rather use cron on the client to schedule the script.
Add bpbackup command to end of script to send dump-file to NBU.
(/usr/openv/netbackup/bin/bpbackup -p <policy-name> -s <user-sched-name> /path_to_dumpfile )Create a policy for this client with a User type schedule and open window during which backup will be allowed.
Alternatively, use the NBU agent that can be obtained from Zmanda.
See Backing up the Dolphins!

