I want to do mysqldump to get backup of all my data bases. suppose if any crash occur in my mysql database, then i will restore that backup file. when try to restore the old backup. after doing backup still the newly created tables are present in the database. is there any option to restore only the old data, and erase all other newly added stuff?
i did following
$ mysqldump -u root -proot --all-databases > alldb_backup.sql
restore
$ mysqldump -u root -proot < alldb_backup.sql