vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Vbulletin Database Backup Pro (Cron Support) (https://vborg.vbsupport.ru/showthread.php?t=78486)

Trigunflame 03-21-2005 05:01 PM

Quote:

Originally Posted by tmhall
Thanks, this looks great! I'm going to remove brad.loo's (a year later and still waiting for version 2.0 :p) and install this now.

One nitpick: Any reason you don't pull the db config info from includes/config.php?

Because I have a lot of commentary in the mysqldump configuration file, and see no point in cluttering up vbulletins primary config file.

zetetic 03-21-2005 05:10 PM

Quote:

Originally Posted by Trigunflame
Because I have a lot of commentary in the mysqldump configuration file, and see no point in cluttering up vbulletins primary config file.

Sorry - I'm not a coder but do you have to modify the primary config file to get the db info out of it? Can't you just require ./includes/config.php in mysqlbackupconfig.php instead of putting the db login info in there?

I'm just thinking it's best to limit the number of places where your db login info is.

Trigunflame 03-21-2005 05:22 PM

Quote:

Originally Posted by tmhall
Sorry - I'm not a coder but do you have to modify the primary config file to get the db info out of it? Can't you just require ./includes/config.php in mysqlbackupconfig.php instead of putting the db login info in there?

I'm just thinking it's best to limit the number of places where your db login info is.

Im using my own settings array to store the info, I could include the primary config file, but I would still have to reference the specified variables.

As they are PHP files, and are simply for configurion having no functions for direct output, it's not gonna hurt anything.

zetetic 03-21-2005 05:26 PM

Okay cool, thanks for explaining. I just ran the backup and it worked great. Thanks. :)

Trigunflame 03-21-2005 06:09 PM

Update:

Version 1.4, included backupRotate support to prune old backups, and keep a limited amount of backups at any one time.

paratek 03-21-2005 11:45 PM

I keep getting mysql error: Access denied. I am using the same username and password that i use in my VB config.

paratek

neocorteqz 03-22-2005 12:46 AM

Quote:

Originally Posted by Trigunflame
Edit:

I ran this on my test linux system AND windows system, and cannot reproduce this error.. it may be a problem with your current setup. The merge arrays sounds like something have to do with the cache templates.. and that error I believe is unique to PHP5.

Well if it is, then you figured it out then, I'm running php 5.0.3.

kall 03-22-2005 03:46 AM

How about this error?

Quote:

mysql error: Table 'datastore' was not locked with LOCK TABLES

mysql error number: 1100

Carl Anderson 03-22-2005 04:48 AM

Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `'{'' or `'$'' in /home/goldis/public_html/forums/includes/mysqlbackup.php(1414) : eval()'d code on line 1

Thanks Carl

Great job I hope I can get this going...

Trigunflame 03-22-2005 06:31 AM

Quote:

Originally Posted by paratek
I keep getting mysql error: Access denied. I am using the same username and password that i use in my VB config.

paratek

Can you paste the error directly as it shows?

Quote:

Originally Posted by kall
How about this error?

What MySQL Version?

Quote:

Originally Posted by neocorteqz
Well if it is, then you figured it out then, I'm running php 5.0.3.

That would be an error with VB's templates, the MySQL Backup script does not use them. I may know a small fix for it tho.

Quote:

Originally Posted by Carl Anderson
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `'{'' or `'$'' in /home/goldis/public_html/forums/includes/mysqlbackup.php(1414) : eval()'d code on line 1

Thanks Carl

Great job I hope I can get this going...

Eval's will only give that error, if you've messed up something its trying to evaluate. In other words, you probably messed some part of the configuration file up.


All times are GMT. The time now is 07:44 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01577 seconds
  • Memory Usage 1,744KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete