mysql - Backup SQL database from secondary linux server -


i took on website @ less-than-optimal hoster no backups yet. have ftp-access , know database access parameters of installed web-app mysql server, don't have access mysql interface or underlying server.

i automated backup linux server under control.

i can download data via ftp, zip , store on backed storage.

how database? initial solution installed phpmyadmin , did manual backup, automate process.

you can use mysqldump remote mysql database.

suppose mysql database on host called "dbhost". can reach host on network new linux host.

run command on new linux host:

$ mysqldump --single-transaction --all-databases --host dbhost > datadump.sql 

(you might need add --user , --password options.)

you can automate command can run @ command-line. put in shell script. invoke script example cron.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -