Well, thanks for all the ideas. I will try to "communicate" with my
host, but I'm sure they will go like "...is not possible unless Cobalt
authorizes...". I also like the idea of making a hidden script that
visitors will activate...


> -----Original Message-----
> From: Richard Lynch [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, July 06, 2002 2:06 AM
> Subject: [PHP] Re: PHP Automatic Backup
> >I was reading the post by Pag called “MySQL backups” and I have the
> >question, but not the shell access. It came to my mind, that if will
> >very useful for me, and probably for many of us newbie’s, to be able
> >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
> >or uploading the MySQL files to another server. I noticed that this
> >could be done in PHPNuke, by clicking at “Backup Files”. ¿Is it
> >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.
> It *MIGHT* be possible for you to do:
> <?php
>   exec("/full/path/to/mysqldump -u USERNAME --password=PASSWORD
> $output, $error);
>   echo implode('', $output);
>   if ($error){
>     echo "OS Error: $error.  Check 'man errno', but it's almost always
> path/permissions.";
>   }
> ?>
> If not, and if you have shell access on *another* machine, you could
> that machine to POST to the other machine a request to push the
> Totally sucky way to do it, but you could.
> It might be easier to just ask your ISP to create a cron job for you
> dumps the database to a file you can FTP regularly.  It would take
> about 5 minutes to do this.
> If all else fails:  Just find another ISP that allows SSH access and
> switch
> hosts :-)
> --
> Like Music?  http://l-i-e.com/artists.htm
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to