Jump to content

Recommended Posts

Hello,

 

Ive got a fairly successful website and im looking at cloning it, I want to set up a cron to check the main site if there are any new posts and if there are insert it into the DB.

 

Ive got them on 2 separate hosts so i don't want to just read from the DB increase the main site goes down and brings the whole 2nd site down.

 

What would be the easiest way to do it? Not looking for people to give code, Just their suggestions.

 

Cheers

Link to comment
https://forums.phpfreaks.com/topic/262531-script-to-auto-update-my-site/
Share on other sites

Hi,

 

I didn't really describe it well in the first post, Basically i have 2 identical tables, I want to copy all the data from one table on one server over to the other server but i dont want to get duplicates, So i basically want to run a cron to automatically copy all the new posts from DB 1 and put it into DB 2 which are on different servers.

 

Cheers.

I got that much, but what is going on beyond what you've described? Does the cloned table need to look exactly the same as the "master" table, or you do only want to import information from it? Could the two tables every look different in the slightest?

Oh, and are they on the same database server?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.