Suppose a row (several rows) or table in database. Can I backup them, to restore as quick as possible only them if the rows/table will be corrupted.
thank you in advance!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I use the following perl-script to backup my databases:
The mysql-dump command is:
The result are single insert-statements for the whole table. You have to extract the lines you want to restore. Since you do not know which row will be damaged, you’ll need them all. To restore a single row, just find it in the backup-file and execute the command.
I found it very difficult to deal with a backup file, that contains several databases. That’s the reason to write this little script and backup each database into a single file.
You can alter the script easily, to dump each table into a single backup-file if needed.