![]() |
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:
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. |
Quote:
|
Quote:
As for the DATE define it was replaced by a var, unless you spotted an old call to it that I missed? :) |
O I see the missed call, I will update the script in a few minutes.
|
Ok fixed that little error, also made the file name more readable (it will be month-day-year.sql now).
No version change, but the file in the first post has been updated. :) |
This is the name of my back up file now:
DUMP_DATE.tar.gz It didn't pass the date to it. When I add back this line: define('DUMP_DATE', $file_date); It works right. |
Quote:
This change is used to get the db_data directly from config.php without having this data in more scripts. Okay, here we go: step1: open your /includes/config.php file and find: PHP Code:
PHP Code:
Save and store config.php step2: now open your db_backup Script in /includes/cron folder. Should be named vbcron_db_backup_131.php and replace: PHP Code:
PHP Code:
now replace: PHP Code:
PHP Code:
now replace PHP Code:
PHP Code:
step5: upload config.php to /includes/ upload vbcron_db_backup_131.php to /includes/cron and look how it works ;) |
Quote:
Just search for PHP Code:
PHP Code:
|
There's something wrong because it isn't doing anything now. It says it made the backup, but it was alot quicker than normal and there is no file there. I followed your instructions exactly. :(
|
Boofo, you are right ;)
I was in a hurry while posting the changes and do a mistake in step3 ! Please do again step 3 and the change will work, I forgot to replace the old variables with the new one from config.php Sorry ! |
All times are GMT. The time now is 08:09 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|