I've looked but can't find the answer to this...
I've got a demo site where folks can edit my original data in a database or add new entries.
At the end of each day I can run a cronjob and delete everything from the table.
No problem so far.
Here's the question:
I'd like to then reupload my original data, to have a fresh database, ready for a new day.
How would I do that?
I did think that on the end of my delete script, I'd just write an insert to write the data but that seemed like a longish way to do it?
Is there a way, with a cronjob, to upload a sql file to mysql or maybe transfer data from one table to another?
Any tutorials anyone knows of?