I have set up the Sync Script for our project and wanted to copy the production DB over to our staging.
It did run successfully before but this time around I noticed that the production server gets completely unresponsive when synching…
That’s probably also due to the fact that we’re handling a rather big DB but ideally that shouldn’t be an issue.
So I was wondering if anyone has encountered something similar before and how you tackled it?
I could re-work the whole script to not use the STDOUT-export mechanism which (if I understand correctly) imports the remote (= prodcution) database locally and then re-uploads to my other remote (= staging) database.
That though stresses the server so much that nothing else gets through, I cannot access the backend or perform any task like adding a product to the shopping cart whilst the sync is in progress.
We tested with different machines to rule out any isolated local aspects and could confirm that the server is not responsive regardless of whom is trying to access it…
What are the main reasons for using this “on the fly via local”-approach vs. exporting to a file, rsync-ing between remote servers and then importing over at the target server?
Thanks & regards Henning
P.S.: Pinging @ben as you created the script and maybe have some deeper insight here…?