Re: Script updating secondary server

From: Date: Wed, 22 Feb 2006 04:17:51 +0000
Subject: Re: Script updating secondary server
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-230869@lists.php.net to get a copy of this message
On Wed, Feb 22, 2006 at 01:02:29PM +1100, Chris wrote: > > > > >I want to write a PHP script that does this for me: > >1. Once a day copies the files on the USA server to the Thai server and put > >them in the web folder > >2. Once a day copy the database in USA (dump) and then empty the Thai > >database and insert the USA content (inserts) > > > >Maybe PHP is not the right way? Do you know any code that already do this > >(PHP)? I would like to do this in PHP, because I am in the learning process > >of this great language. > > To be honest you're better off using tools other than php. > > rsync will copy files quite efficiently (http://rsync.samba.org) and > will only copy *changed files* - so a copy each day won't take much time > at all. Not to mention they'd be copy securely and may be sent compressed as well. Curt. -- cat .signature: No such file or directory

« previous php.general (#230869) next »