Well, fine. But then why use backup/restore?
If you only want to wipe out changes made that day, why not just establish, say, a stored procedure that does so?
Heck, I'd just do something like this:
Code:
USE DATABASE startData;
DROP DATABASE activeData;
CREATE DATABASE activeData;
// then for each table in startData:
CREATE TABLE activeData.tableName1 LIKE startData.tableName1;
INSERT INTO activeData.tableName1 SELECT * FROM startData.tableName1;
CREATE TABLE activeData.tableName2 LIKE startData.tableName2;
INSERT INTO activeData.tableName2 SELECT * FROM startData.tableName2;
...
If you have too many tables, you could use the INFORMATION_SCHEMA to loop through all the ones in startData.
But up to maybe 20 tables or so, I'd just use the above code.
Store the SP in the
startData database.
This would be much more efficient than a backup/restore based system.