Quote:
Originally Posted by Brad.loo
This is a vbcron script that will backup your database to a .sql file on your server.
You need MySQLdump for this to work, also a folder chmoded to 775 (or 777).
You will need to change the information here for it to work correctly on your server:
PHP Code:
// Set these vars up to to suit your server
define('DB_HOST', 'localhost'); // database host
define('DB_USER', 'user'); // database username
define('DB_PASSWORD', 'db_pass'); // database password
define('DB_NAME', 'vbulletin'); // vbulletins database name
define('DUMP_PATH', '/path/to/dump/folder'); // path to where db backup will be stored
define('DUMP_MAKE_TAR', 1); // set this to 1 for the backup to be compressed in a .tar.gz file
// end changes
Remember to upload this script to /vbroot/includes/cron!!
|
Does not work for me:-( Get:
MySQL backup
All Done
vBulletin v3.0.0 Release Candidate 3, Copyright ?2000-2004, Jelsoft Enterprises Ltd.
Fatal error: Call to undefined function: query() in /home/mywebiste/www/forum/includes/functions.php on line 501
But no backup is made:-(