Quantcast
Channel: MySQL Forums - InnoDB
Viewing all articles
Browse latest Browse all 1956

rsync corruption mystery (2 replies)

$
0
0
Most of my databases use MyIsam tables. However, I've been experimenting with Drupal, which uses InnoDB tables. This is on a test machine, which serves double duty as a backup machine. So, this is not a critical issue, yet I'd like to find the solution.

Here's my problem, I run an rsync backup script like this -- /etc/init.d/mysqld stop
rsync -aHuv --progress --exclude 'drupal' --exclude 'mysql' --exclude 'mysql.sock' --delete --inplace --force --rsh='ssh -p202' /var/lib/mysql/ root@xx.xx.xxx.xx:/var/lib/mysql > /var/log/rsync_mysql.log
/etc/init.d/mysqld start

What I'm doing here is backing up the MySQL directory from another machine, but ignoring the drupal directory, because it is only on my test machine at the moment. Whenever this script runs, the drupal directory becomes corrupted. I can view all the tables with SHOW TABLES command, all the .frm files are in place. But if I try to access the tables, MySQL sends an error 1146 telling me the table does not exist. I'd like to figure out why I am corrupting this one database with the rsync script. Any ideas?

Viewing all articles
Browse latest Browse all 1956

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>