crontab mysql バックアップ
bacup.sh
date_str=`date +%Y%m%d`
cd /data2/backup
mysqldump -h localhost -udbuu –password=xxxx -R -E -e \
–max_allowed_packet=1048576 –net_buffer_length=16384 oscdb\
| gzip > /data2/backup/dbuu_$date_str.sql.gz
Coding Changes the World
bacup.sh
date_str=`date +%Y%m%d`
cd /data2/backup
mysqldump -h localhost -udbuu –password=xxxx -R -E -e \
–max_allowed_packet=1048576 –net_buffer_length=16384 oscdb\
| gzip > /data2/backup/dbuu_$date_str.sql.gz