Posted 06 March 2003 - 07:08 PM
Thanks in advance for any help!
Posted 09 March 2003 - 12:09 PM
Alternatively, I would create a PHP script to do this.
Something like this:
$filename = \"mysqldb\".time().\".sql\";
passthru(\"mysqldump -u (username) -p(password) --opt (database_name) > /my/backup/directory/$filename\");
Then using my PHP CRON Tutorial, you can set it up on a CRON TAB.
Posted 09 March 2003 - 06:39 PM
$filename = \\\"mysqldb\\\".time().\\\".sql\\\";
passthru(\\\"mysqldump -u (username) -p(password) --opt (database_name) > /my/backup/directory/$filename\\\");
Do i replace the /my/backup/directory with my full server path to a folder I would like the backups put into??
And also do i jsut do a wget fucntion in the cron tab command?
Posted 09 March 2003 - 09:09 PM
Also, please read the tutorial for the cron tab. It tells you how to use a CGI version of PHP as well as lynx to access your php script.
Posted 10 March 2003 - 07:36 PM
I have a cron tab set to wrok at midnight
the cron command is
php /home/dwog/public_html/*****/dbsender.php > dev/nul
I am asking for it to email me the fille, I have chmod the directory but still no luck.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users