PHP Database copy

  • techwiz
  • Beginner
  • Beginner
  • User avatar
  • Posts: 46

Post 3+ Months Ago


I admin two servers, they exist in two different physical locations, I want to use php to copy the records from one database into a backup database. The backup database will run a clone of the site.

Does anyone know how one could do this?

  • righteous_trespasser
  • Scuffle
  • Genius
  • User avatar
  • Posts: 6228
  • Loc: South-Africa

Post 3+ Months Ago

Do you want to do this every day or is this a once-off thing?

If it is a once-off thing, I think "mysqldump" will be your best answer. This must be run from the command-line so it can't be done through PHP as I understand, I could be wrong though.

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 23 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum

© 1998-2017. Ozzu® is a registered trademark of Unmelted, LLC.