needs_upgrade Posted April 20, 2010 Share Posted April 20, 2010 Hello guys! How can I make a CRON job where it will work every midnight and connect to a remote database and copy it's rows to localhost? I mean, the script will work by itself even if no user is logged in. And how can i make the cron stop only when every record has been copied into the localhost? Thanks so much guys! Link to comment https://forums.phpfreaks.com/topic/199091-how-to-design-my-cron/ Share on other sites More sharing options...
Pikachu2000 Posted April 20, 2010 Share Posted April 20, 2010 I think what you're looking for is database replication. Link to comment https://forums.phpfreaks.com/topic/199091-how-to-design-my-cron/#findComment-1044980 Share on other sites More sharing options...
needs_upgrade Posted April 20, 2010 Author Share Posted April 20, 2010 Actually no. I am going to filter only important records and copy them into localhost for report purposes. Thanks Link to comment https://forums.phpfreaks.com/topic/199091-how-to-design-my-cron/#findComment-1044983 Share on other sites More sharing options...
havenpets Posted April 20, 2010 Share Posted April 20, 2010 Eeek best of luck on this. I host with Dreamhost and they allow me to set them up VIA their admin panel. Sorry. Link to comment https://forums.phpfreaks.com/topic/199091-how-to-design-my-cron/#findComment-1044986 Share on other sites More sharing options...
trq Posted April 20, 2010 Share Posted April 20, 2010 Is your question how to setup the cron job? If so, it has nothing to do with php and should be posted in the Linux board. Otherwise, is the question how to write the script? Your post is VERY unclear. Link to comment https://forums.phpfreaks.com/topic/199091-how-to-design-my-cron/#findComment-1045004 Share on other sites More sharing options...
needs_upgrade Posted April 20, 2010 Author Share Posted April 20, 2010 Im so sorry. I mean how to write the script. thnx. Link to comment https://forums.phpfreaks.com/topic/199091-how-to-design-my-cron/#findComment-1045012 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.