I use rsync to backup files on my server, and mysqldump to backup my database. Here is my concern:
mysqldump in my database takes about 30 seconds. I have a table with photos that stores information about the images that the user has uploaded, including the path to the file. I am worried about what happens when photos are uploaded or deleted within the 30 seconds required to complete mysqldump. If this happened, and I had to recover the rsync'd files and mysqldump data, I could then look at the database containing lines indicating deleted photos or missing lines for successful photo uploads.
How can I make sure mysqldump exactly matches rsync?
Thanks in advance, Brian
source
share