Quote:
Originally Posted by Onkel_Tom
another question.
What about to include /includes/config.php in your db_backup script and just add the two lines to the config.php
PHP Code:
$DUMP_PATH = '/path/to/dump/folder'; // path to where db backup will be stored
$DUMP_MAKE_TAR = '1'; // set this to 1 for the backup to be compressed in a .tar.gz file
then change in your db_backup script DUMP_PATH with $DUMP_PATH and DUMP_MAKE_TAR with $DUMP_MAKE_TAR
This will reduce the time for implement this script to another vB and also the paramters for the DB are centralized in the config.php and not twice in your script too.
I didn't try it right now, but I think this will work.
|
It is set up this way to allow you to have multiple copies to back up multiple databases, even ones that arent associated with vBulletin.
As for the DATE define it was replaced by a var, unless you spotted an old call to it that I missed?