From IT Mission Linux Tips, Hacks, Tutorials, Howtos - Itmission.org

Main: Cpanel-mysql-backup




#!/bin/sh
cd /var/lib
tar -zcf mysql_$(date +"%F").tar.gz  mysql
cd /backup/mysql
ftp -in <<EOF
open 127.0.0.1
user yourusername yourpassword
bin
hash
prompt
put mysql_$(date +"%F").tar.gz
bye

Retrieved from http://www.itmission.org/Main/Cpanel-mysql-backup
Page last modified on April 24, 2009, at 07:09 PM