日期:2014-05-16 浏览次数:20669 次
mysqlbackup --defaults-file=/home/mysql-server/mysql3/my.cnf --user=root --password=root --compress-level=1 --databases="mysql" --with-timestamp --backup-dir=/home/mysql-server/backup backup
mysqlbackup --defaults-file=/home/mysql-server/mysql3/my.cnf --user=root --password=root --compress-level=1 --databases="mysql" --with-timestamp --backup-dir=/home/mysql-server/backup backup | ssh root@192.168.0.134 cat ">" /tmp/a
mysqlbackup --defaults-file=/home/mysql-server/mysql3/my.cnf --user=root --password=root --compress-level=1 --databases="mysql" --with-timestamp --backup-dir=/home/mysql-server/backup backup tar -czf backup.tgz backup rm -rf backup& scp backup.tgz root@192.168.0.134:/tmp/a
------解决方案--------------------
硬盘mount过来 然后备份