We have a MySQL 5.0 database in a Ubuntu Server. There are about 242 tables in that database and a daily backup is running using the below command in crontab.
mysqldump -u root --password=<passwd> 'gss-app' table1 table2 .. tableN --skip-triggers --skip-add-drop-table --skip-lock-tables --compact --no-create-info --quick | bzip2 -c > /var/backups/gss-app.sql.bz2
Last week we had an issue that a customer deleted few files and I tried to restore from the mysqldump but I couldn't find the specific table in the dump file. I see the backup contains 206 tables out of 242 tables. First I didn't realize that the dump doesn't have the particular table and I have posted a question in stackoverflow.
So yesterday, I changed my crontab entry to:
mysqldump -u root --password=<passwd> gss-app | bzip2 -c > /var/backups/gss-app.sql.bz2
I extracted the backup file once the backup is completed and ran the below command to see the tables that are backed up.
grep -n 'Table structure' gss-app.sql
- Now also the dump file contains only 206 tables out of 242 and I had to run a new mysqldump job to take the backup of the remaining 36 tables.
So, I would like to ask if there is any limit on the number of tables that are backed up using mysqldump command?