"Ashley Sheridan" <ash@xxxxxxxxxxxxxxxxxxxx> schrieb im Newsbeitrag news:1263391167.5952.62.camel@xxxxxxxxxxxx > On Wed, 2010-01-13 at 14:57 +0100, Jens Geier wrote: > >> Hello Ashley, >> >> yes rsync is a good idea, but does this also work if there is only a >> internet conection to may SERVER ? >> >> Kind Regards >> Jens Geier >> >> "Ashley Sheridan" <ash@xxxxxxxxxxxxxxxxxxxx> schrieb im Newsbeitrag >> news:1263377397.5952.60.camel@xxxxxxxxxxxx >> > On Wed, 2010-01-13 at 10:53 +0100, Jens Geier wrote: >> > >> >> Hello, >> >> >> >> my idea is to make a backup of some paths of my laptop via PHP. >> >> >> >> I like to use a MySQL Datebase to trace which file was uploaded from >> >> which >> >> path and so on. >> >> >> >> Also it should be uses to look up it is nessasery to backup this file >> >> because it was changed since last time or not. >> >> >> >> All this files should be uploaded to the SERVER in a special folder >> >> where >> >> this files run to a tape backup machine. >> >> >> >> I hope some one can give me some ideas for this. >> >> >> >> Kind Regards >> >> Jens Geier >> > >> > There's a few ways to go about doing this, but I reckon you should do >> > something similar to the following: >> > >> > * schedule a cron job to run as often as you want the backup to be >> > done, and have the cron call a script >> > * the script can either be php and use your own code to create >> > copies of files and check file dates for backup purposes, or use >> > the rsync tool which pretty much does all of this for you >> > automatically >> > * update a database as you need. this can be done either from a >> > php script or directly via mysql on the console >> > >> > If you do use PHP for this, you'll want to code it as a CLI script >> > rather than a web page script. On the whole it won't make much of a >> > difference, but obviously some global variables will change a bit. >> > >> > Thanks, >> > Ash >> > http://www.ashleysheridan.co.uk >> > > > I don't understand what you mean? > > Ps, please try not to top-post. > > Thanks, > Ash > http://www.ashleysheridan.co.uk > Hello Ashley, i try to make a backup from some paths of my local laptop harddrive to a folder on my server. Even if i'm not in the company. If i'm outside (this time i'm in China) i have to copy it through the Internet that is using http or ftp transport protocol. The start of the copy is when the user clicks to a buttom and start the backup process. Kind Regards Jens Geier -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php