vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Administrative and Maintenance Tools - vB Database Backup Pro (Lite) for vb 3.6 (https://vborg.vbsupport.ru/showthread.php?t=126925)

da420 10-08-2006 10:57 PM

Thanks Paul,
Works perfectly.

One question. What's the benefit/advantages of saving the MySQL backup in seperate files for each table? And, that of saving them all as one file?

Thanks again...

Paul M 10-09-2006 12:29 AM

It makes it easier to restore just one table if you need to. If you need to restore all tables then one simple copy command will join all the files into one.

Barakat 10-10-2006 03:34 AM

Quote:

$backup['DUMP_PATH'] = '/home/barakat/public_html/gti/****/'; // Path ( With trailing '/' )
works finally in that way

da420 10-10-2006 03:15 PM

Paul,

It shows that this hack has been updated since I installed when I look at the thread from the forum. I have 2.12. Is there an update that you added that you forgot to tell us about in this thread or am I just dilusional?

Paul M 10-10-2006 04:48 PM

Nothing to worry about - I simply updated some comments in the config file to (hopefully) eliminate some of the repeating questions.

jgommel 10-16-2006 12:05 AM

I just installed this in my site -- I made a few config changes and ran my first backup. All went well...or so I thought. When the script is done running, it doesn't re-activate the forums? My forums are still closed.

If I go into vBulletin's Admin-CP to turn the forums back on, they are listed as already being on. To "Truly" reactivate the forums, I just click on "yes" again and save.

Refresh the forums, and all is well.

Is there a fix/way to get the forums to turn back on after the backup?

Thanks!

Paul M 10-16-2006 12:29 AM

If your backup completes okay then the forums will turn themselves back on, so I would guess your backup didn't complete ok.

jgommel 10-16-2006 12:42 AM

Quote:

Originally Posted by Paul M
If your backup completes okay then the forums will turn themselves back on, so I would guess your backup didn't complete ok.

Well, I didn't get any errors, I have a very large .sql file in my backup directory (changed my config to create one large file vs. multiple tables). Short of wiping out my database and uploading the backup from your application -- I'd say it worked just fine.

The same thing happened with prior releases as well -- I just never said anything. I figure it would get fixed in later releases.

Paul M 10-16-2006 11:14 AM

I can't fix something that afaik works. If the backup completes okay then the last step turns the forum on, does your cron job actually log a completed ok message ?

I assume you know you can disable the option to close the forum if you want, it's not necessary for it to be closed.

Deimos 10-16-2006 11:26 PM

Is it possible someone could modify this script to compress the forum backups?

It's an awesome script, but after a week of 100mb backups, it takes up ALOT of space

It's either 100mb per backup without compression, or 21mb with

Would it be ok for someone to do that Paul M?

Paul M 10-17-2006 01:24 AM

Sorry, I won't support that - the problem with compression is that there isn't a common method that will work across all platforms - some servers will use gzip, others winzip. That's why it's not part of this lite version. (JFYI - My [daily] backups are 600MB).

Deimos 10-17-2006 01:39 AM

Heh is that on the cable forum? I post there as AdamD

Yea, I can understand that.

Will you be bringing out a "non lite" version?
I'd pay for that, heh

Paul M 10-17-2006 11:54 AM

Quote:

Originally Posted by Deimos
Heh is that on the cable forum? I post there as AdamD

Yea, I can understand that.

Will you be bringing out a "non lite" version?
I'd pay for that, heh

Yes, that's CF's backups. :)

Nope, I won't be doing a non lite version. I don't have the time to write/support paid modifications.

aciurczak 10-20-2006 11:26 AM

I'm having the same error as the earlier poster. The backup appears to be completed ok (no error messages in log), yet my forums are not turned back on afterwards. Forums are giving out a "forum closed" message to any non-administrators, but when I look in the admincp, the forums are already listed as "on". By just resaving with that setting, forums pop back on and all is well.

FWIW, it was working fine for a week or two (backups each morning) until I noticed this behavior for the first time yesterday morning (when my page-monitoring service started to squawk at me every 5 minutes).

I know I can disable the forums being turned off, but nevertheless it appears that there may be some issue with the current code, at least as applied to my own forum.

Paul M 10-20-2006 04:23 PM

Code cannot work, and then not work, something must have changed.

Also, same question as I asked the other person - does your cron job actually log a completed ok message ?

Mentch 10-22-2006 06:21 PM

Installed!

Thank you, I lost my database not too long ago due to a hosting problem. And I had no relevant backup that worked.

Works great. :)

Deimos 10-25-2006 09:23 AM

I'm getting the same thing as well, it finishes, but leaves the forum closed, even though the admin panel says "on"

The log says

37074 Database Backup 11:04, 24th Oct 2006 MySQL Backup was completed successfully with no errors.

Paul M 10-25-2006 05:54 PM

Sorry, but it works fine for me, I cannot replicate such an occurance, nor can I see any way for it to happen. I suggest you just don't use that option.

smoknz28 10-25-2006 06:09 PM

Thanks Paul. Installed and working great! ;)

Necrosaro420 10-26-2006 12:06 AM

Any ideas why I get this message every time I run it? Plus I dont have an option in the control panel anywhere for some reason to set my options, I have installed it correctly. Thanks

Error:

An error occured during the MySQL backup. Details (Could not open Destination SQL file for writing.)

Paul M 10-26-2006 03:06 AM

The message means either you have set the backup folder incorrectly, or the permissions on it are wrong. There are no ACP options for this, just the supplied config file.

Necrosaro420 10-27-2006 12:39 AM

Quote:

Originally Posted by Paul M
The message means either you have set the backup folder incorrectly, or the permissions on it are wrong. There are no ACP options for this, just the supplied config file.


How do I know where it is trying to back up to then? I dont see an option anywhere stating where it would go, so I can check the permissions =) Thanks

Paul M 10-27-2006 12:49 AM

The setting is in the [supplied] config file.

Necrosaro420 10-27-2006 03:07 AM

Any other ideas? I edited the correct backup directory, and I still get the same message...The DIR is also chmod 777

I tried

/domains/MYWEBSITE.net/public_html/backup/nightly/

as well as

/backup/nightly/

Paul M 10-27-2006 03:14 AM

Try using a relative path, like ../backup/nightly/

Necrosaro420 10-27-2006 01:15 PM

Quote:

Originally Posted by Paul M
Try using a relative path, like ../backup/nightly/

Tried that as well, chmod to 777, still the same result

exilera 10-28-2006 12:01 PM

Hey Paul, I'm getting this error when I try to run a backup manually.

Database Backup

Processing access : Total Rows = 0
Processing adminhelp : Total Rows = 1394

Fatal error: Call to undefined function mysqli_unbuffered_query() in /home/horizon/public_html/includes/class_core.php on line 1066


Any suggestions? :) Thanks a lot.
David

Edit: I see it also didn't turn the forum back on either.

Paul M 10-28-2006 02:21 PM

That's a bug in vbulletin.

There is no such php function as mysqli_unbuffered_query().

The only thing you can do is use mysql, not mysqli.

It didn't turn the forum on because it failed.

exilera 10-28-2006 02:39 PM

Hi Paul,

How can I use MySQL instead of MySQLi if I already specified MySQLi in the vBulletin config file when I setup vB?

Paul M 10-28-2006 02:40 PM

Just change (edit) the config file.

exilera 10-28-2006 02:47 PM

Hmm I went into config.php in the includes folder and changed mysqli (first option) to mysql, saved and now when I load the board, I just get a completely blank white page...

Any idea how I can fix this?

Thanks Paul,

David

Paul M 10-28-2006 03:27 PM

Sounds to me like you may have made an editing error, so the config file isn't loading.

exilera 10-28-2006 04:26 PM

I just changed mysqli to mysql. I changed it back to mysqli and everything came up normally.

Is there anything I have to do aside from changing mysqli to mysql?

gedsta 10-28-2006 06:19 PM

Sorry to be a noob

i have a windows server and have created a folder called backups

c:\backups

what would the path be needed to save in this folde and not the forum folder

tia

Paul M 10-28-2006 06:50 PM

"c:\backups\"

However, php may not have permission to write to it.

Necrosaro420 10-30-2006 10:49 PM

Quote:

Originally Posted by Necrosaro420
Tried that as well, chmod to 777, still the same result

Any more ideas on this? It still will not work =( Thanks

Paul M 10-31-2006 03:50 AM

Sorry, I can't help you with permission problems on your server. Speak to your host.

GoTTi 10-31-2006 03:50 AM

An error occured during the MySQL backup. Details (Could not open Destination SQL file for writing.)

Paul M 10-31-2006 01:17 PM

Refer to post 117

Necrosaro420 10-31-2006 07:03 PM

I got it working. For some reason it had to have a . in front of /backup/nightly, like ./backup/nightly/ no clue what the . means but it worked


All times are GMT. The time now is 12:54 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
  • Page Generation 0.01746 seconds
  • Memory Usage 1,810KB
  • 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
  • (6)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
  • (40)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