Re: PHP Automatic Backup

From: Date: Fri, 05 Jul 2002 09:37:12 +0000
Subject: Re: PHP Automatic Backup
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-105604@lists.php.net to get a copy of this message
César Aracena wrote:
Hi all. I was reading the post by Pag called “MySQL backups” and I have the same question, but not the shell access. It came to my mind, that if will be very useful for me, and probably for many of us newbie’s, to be able to build an automated PHP system that could make backups by itself at a specified time… let’s say maybe every morning at 6 am, by transferring or uploading the MySQL files to another server. I noticed that this could be done in PHPNuke, by clicking at “Backup Files”. ¿Is it possible to build this kind of unattended scripts with PHP or will it always require a magical “click” from the administrator? I guess that it shouldn’t be possible, but it’s worth a shot.
Ola! Nope, not possible. You need to set something in chron function in order to do that, which is impossible without a *good* shell access. And nobody in his mind would let such privileges to remote users. All you can do is to extract the backup functions from whatever PHP manager you choose, build a script with them, then have a local machine calling the script at regular time intervals. But this also requires that your local machine will be connected at the time this call happens. Alberto Kiev -- @-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@ LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu? lOrD i'M sHiNiNg... YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE tHe TeSt, YeS iT iS ThE tEsT, yEs It Is tHe TeSt, YeS iT iS ThE tEsT, yEs It Is.......

« previous php.general (#105604) next »