简体   繁体   中英

how to backup my sql from a remote server

I have My SQL running on my remote webserver.

What is the best way to back this up every night to my windows home server?

Thanks

  1. Create a mysql SQL script with the backup process most likely having mysqldump or SELECT .. INTO OUTIFLE commands.

  2. Create a .bat file to run the mysql script in step1 with command line. mysql -uuser -ppassword -host remoteserver.com database < script.sql

  3. Set up Windows jobs to execute the bat file daily.

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