this is a short script for daily backup of the OpenStack MySQL and the /etc direcotry of the control node
[root@dev-epg-rhos-01 BACKUP]# cat /root/bin/epg.innobackupex.openstack.sh #!/bin/sh # done for epgmad4@tid.es # Barcelona Thu Oct 17 16:30:36 CEST 2013 days_to_keep=7 NFS=/BACKUP exportDate=`date +%Y-%m-%d.%H.%M.%S` export_DIR=${NFS}/${HOSTNAME}.${exportDate} test ! -d "${export_DIR}" && echo "$(date) : creating ${export_DIR}" && mkdir -p "${export_DIR}" export_MySQL_DIR=${export_DIR}/mysql.bckp export_ETC_DIR=${export_DIR}/etc.bckp rsync -avh /etc ${export_ETC_DIR} echo "=========================================================================================================" >> ${export_DIR}/README.restore.with.innobackupex echo "HOW to restore this FULL mysql backup" >> ${export_DIR}/README.restore.with.innobackupex echo "=========================================================================================================" …[Read more]