简体   繁体   中英

Automated MySQL DB backup and restore on local server

I have several websites on several hosting packages utilizing several MySQL DBs. What I want is to get daily instances of ALL these databases and restore them on a local server. So I will have all my databases locally updated from the online ones. Which is the best way to achieve this. Thank you.

I am facing the same issue. My plan is to automate fetching the database backup from a sftp location and then restoring the database in the next location. There are probably several intermediate steps to make sure this happens, like drop database if exists, etc. But I think it will work. I, like you, don't need database synchronisation. My purposes are for data warehousing. The external database is from an external vendor who is willing to share database dumps with me weekly.

Hope that helps, your question is quite old now. :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM