Skip to main content

Replicate database to another account automatically?

Comments

4 comments

  • GOT
    You could bash script it. Set up a cron on the source server to dump the database to a file. Then on the destination server you set up a cron to copy that SQL file over and then use the mysql command to restore that database.
    0
  • GOT
    You could also set up mysql replication but that gets tricky if the destination server is hosting other live databases.
    0
  • David Mason
    Hi Thanks for the quick reply. I will have a look in to the script option.
    0
  • cPanelLauren
    There isn't anything built in to cPanel will perform this function but the script idea that @GOT suggested may be the way to go albeit depending on the size of the database could be resource intensive
    0

Please sign in to leave a comment.