Hello!
I took over a set up that currently has the production and staging databases run on the same Linux machine. The staging is used for only testing situations. There is a script that runs every night that does the following:
1. Backs up the production database.
2. Drops the staging database
3. Creates the staging database
4. Rebuilds the staging database using the backup of the production database.
This seems horribly inefficient and an unnecessary strain on the machine that handles our production. My end goal is to move the staging database off the production environment and on to its own machine. However, that will not be doable for awhile.
Are there any other options for me to get this database rebuilt every night? Can I just do a merge of some sort to only update the changes that have been made throughout the day?
Thanks!