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 (Lite) (https://vborg.vbsupport.ru/showthread.php?t=201319)

slowphantom 02-06-2010 08:01 PM

Thanks Paul for answering
i change it on my php.ini to 120 sec and i got
Database error

Quote:

Invalid SQL:
SHOW CREATE TABLE `postlog
but on the v3.8.001 : First version for vB 3.8. i never had error
and the execution time was 30 sec too

Paul M 02-07-2010 10:52 AM

Please post the full sql error message.

slowphantom 02-07-2010 12:45 PM

hello paul
here is it
Quote:

Database error in vBulletin 3.8.4:

Invalid SQL:
SHOW CREATE TABLE `postlog`;

MySQL Error : MySQL server has gone away
Error Number : 2006
Request Date : Sunday, February 7th 2010 @ 07:35:55 AM
Error Date : Sunday, February 7th 2010 @ 07:38:55 AM
Script : http://www.mawane.com/vb/XxxX/cronad...cron&cronid=82
Referrer : http://www.mawane.com/vb/XxxX/index....3Fdo%3Dproduct
IP Address : XxxX
Username : XxxX
Classname : vB_Database
MySQL Version :
Thank You

slowphantom 02-07-2010 01:15 PM

Thank you paul
its working now

after i change the search option to full text search

so it seem that it cant backup when the the forum use the database serach option

Paul M 02-07-2010 07:40 PM

That error means your mysql connection timed out - you probably have a very low timeout value.

slowphantom 02-08-2010 12:27 PM

heu paul
Thank you again
do u mean
mysql.connect_timeout ?
cz i have it -1 means no limit

Paul M 02-08-2010 06:44 PM

No, mysql wait_timeout.

slowphantom 02-10-2010 07:12 AM

oh i dont think this is in php.ini
i think its the host thing

Thanks for replaying paul

have a nice day

SilabGarza 02-14-2010 11:47 PM

how do i make it so only i can access my backup?

Paul M 02-15-2010 08:34 AM

Store them in a place only you can access.

SilabGarza 02-15-2010 06:27 PM

for example?

like right now i have the folder set to 777, which means anyone can access it........ >.> that doesn't seem safe to me
how do i make it so only some1 with the password can access it? (or shuld i just make it into a random directory like....

public_html/alkjal3oo3dDDDie3/backups/
?

Paul M 02-15-2010 07:31 PM

No, you use a directory outside of public_html.

SilabGarza 02-15-2010 08:33 PM

how would i do that?

right now i have it set to this
./backups/

hmmm?

SilabGarza 02-16-2010 07:03 PM

still waiting? would the directory be something like....

home/silabgar(my host name)/backups
???

Paul M 02-16-2010 07:55 PM

I cannot generally answer server specific questions. Normally you would create a backups folder in the same location that your public_html is located, and reference it by ../../backups (which is the default setting).

SilabGarza 02-16-2010 08:42 PM

Quote:

No, you use a directory outside of public_html.
u said that, how would i do that

Blue91 02-27-2010 04:18 PM

Paul,

I installed this. I have a backups folder in the same level as my public folder (in which my forums reside). It has correct write permissions.

I tried running this and get :
Quote:

An error occured during the Backup :
It has no actual error message and I made no changes to anything in your files.

Can you provide any help?

*edit* - fixed per post 318.

Regards,

melbo 03-03-2010 04:38 AM

From a restore standpoint, is it better to backup with your default separate tables or lump them into one? I've only restored with a xxxxx.sql.gz previously and was wondering what was the better way when using your method? I do have to untick 'extended inserts' when backing up manually and restoring via 'bigdump'.

Does this backup include extended inserts?

Paul M 03-03-2010 10:55 AM

No, this does not use extended inserts.

Personally I prefer to backup one file per table, so that if I need to restore one table I can do it easily.

If I need to restore them all then its easy enough to combine them all into one file first.

melbo 03-03-2010 02:11 PM

Excellent. Thanks a lot

silentdub 04-08-2010 10:10 AM

I installed it, I did not modify the config files.

I created a backups directory under the /public_html
I set the permissions to 777

When I click "Run Now" I get the following error:

I set the permissions to 777

Automatic Database Backup for vBulletin

An error occured during the Backup :

I changed the path to ././backups/ as defined in a previous post and still get the same error.

I do have the backups directory right under public_html Do I need to specify the entire path?

I know I am screwing something up, not sure what though.

Paul M 04-08-2010 04:46 PM

The path would depend on what path your forum is - but on a typical setup, from the info you have given, I would suggest you try ../backups/

silentdub 04-08-2010 07:37 PM

Quote:

Originally Posted by Paul M (Post 2017987)
The path would depend on what path your forum is - but on a typical setup, from the info you have given, I would suggest you try ../backups/

Thanks, the forum is located under /public_html/forums

So should I create the directory under forums or public_html?

silentdub 04-08-2010 08:16 PM

Quote:

Originally Posted by silentdub (Post 2018048)
Thanks, the forum is located under /public_html/forums

So should I create the directory under forums or public_html?


Thanks man, I got it working.

the backups directory needs to be under the forums directory when you use the ../backups/

Thanks again!

MonkYZ 05-24-2010 01:43 AM

Great mod ! Btw, how can i set it up so it doesn't keep anything but last 3 backups or so ? The database is really big and if i forget about backups, it takes too much space :) Thx in advance !

romeo12 05-24-2010 05:10 AM

Using the vB default "database backup" causes error frequently. Does this hack also ends up in error or this is safe to use?

MonkYZ 06-25-2010 10:58 AM

Quote:

Originally Posted by MonkYZ (Post 2042478)
Great mod ! Btw, how can i set it up so it doesn't keep anything but last 3 backups or so ? The database is really big and if i forget about backups, it takes too much space :) Thx in advance !

We really need a way to change how many backups to be kept on server. I just got my drive full... and when i checked, it was filled with sql files made by vB Database Backup... Please, can you find a way for this ?

Paul M 06-25-2010 05:25 PM

This has already been posted before - but you can change the backup date options to limit the number of files - for instance I use a lowercase L, which means they are called Monday, Tuesday etc, so you only ever have 7 files - after that they overwrite each other. You can use other options (such as the day of the month).

MonkYZ 06-26-2010 09:26 AM

Quote:

Originally Posted by Paul M (Post 2059486)
This has already been posted before - but you can change the backup date options to limit the number of files - for instance I use a lowercase L, which means they are called Monday, Tuesday etc, so you only ever have 7 files - after that they overwrite each other. You can use other options (such as the day of the month).

I don't understand what you mean. If i go in my Scheduled Task Manager and look for Automatic Database Backup for vBulletin i can only set what day of the week, day of the month and hour i want to backup. I don't understand how can i limit the number of files (what lowercase L means ? where do i find that ?)...

Simon Lloyd 06-26-2010 05:28 PM

Quote:

Originally Posted by Paul M (Post 2059486)
This has already been posted before - but you can change the backup date options to limit the number of files - for instance I use a lowercase L, which means they are called Monday, Tuesday etc, so you only ever have 7 files - after that they overwrite each other. You can use other options (such as the day of the month).

Paul, i'm also interested in doing this, i have my cron job set to every sunday, how do i get it to overwrite the previous weeks entry?

Paul M 06-26-2010 08:34 PM

Quote:

Originally Posted by MonkYZ (Post 2059786)
I don't understand what you mean. If i go in my Scheduled Task Manager and look for Automatic Database Backup for vBulletin i can only set what day of the week, day of the month and hour i want to backup. I don't understand how can i limit the number of files (what lowercase L means ? where do i find that ?)...

vBulletin Options > vBulletin Automatic Backup > Date Format

(Setting for Backup file date format ).

Quote:

Originally Posted by Simon Lloyd (Post 2059960)
Paul, i'm also interested in doing this, i have my cron job set to every sunday, how do i get it to overwrite the previous weeks entry?

As above - if the generated filename is/are the same, it will simply replace the existing file(s).

Simon Lloyd 07-25-2010 02:15 PM

Quote:

Originally Posted by Paul M (Post 2060059)
vBulletin Options > vBulletin Automatic Backup > Date Format

(Setting for Backup file date format ).


As above - if the generated filename is/are the same, it will simply replace the existing file(s).

Hi paul, i currently use this mod and it's already saved me a nightmare!, however i wanted the back-up performed every Sunday, you kindly gave the solution of using a lowercase L, i do now get a backup every sunday but it's a single file where the ones before gave me a dated folder with each component backed up separately, how do i get back to having each element backed up as before but just on a sunday?

Zylantex 07-25-2010 04:23 PM

Great add-on. Thanks OP.

Paul M 07-25-2010 04:40 PM

Quote:

Originally Posted by Simon Lloyd (Post 2074273)
Hi paul, i currently use this mod and it's already saved me a nightmare!, however i wanted the back-up performed every Sunday, you kindly gave the solution of using a lowercase L, i do now get a backup every sunday but it's a single file where the ones before gave me a dated folder with each component backed up separately, how do i get back to having each element backed up as before but just on a sunday?

Just set the vb cron job to run once a week (on Sunday) using the standard date format.

GoTTi 08-23-2010 04:46 AM

getting this error:

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

Zylantex 08-23-2010 09:51 AM

Suggestion:

Daily backups are great but unless I download the backups and delete them promptly they eat up my disk space allowance on my host. The ability to do a backup on multiple selected days of the week would be really useful. It would let users back up weekly or twice a week, say Monday and Thursday, or any other combination of days that suits.

At the moment the only alternative to daily seems to be monthly and thats a bit risky imho.

melbo 09-20-2010 06:23 PM

Thanks for the update with gzip. I also just set my date code to 'l'. I used to go in weekly and delete all but 2 backups and now I don't have to anymore. Truly automatic! It does take up ~ 2.5 GB buts that's a small price to pay

Simon Lloyd 09-20-2010 11:18 PM

Paul, i love this mod and couldn't live without it now but i do experience a small problem more often than not, when using the option to close forum during back up i'll find that i sign on the next day and find that the forums are still closed, i then have to turn off your mod, CLOSE the forums in vboptions (yes i know its already closed) then open the forum again and reinstate your mod, any idea what could be causing the lock up, is there some way of adding an extra check to see if the back up activity has stopped then make the forum closed status time out?

Right now i leave the option off but it could spell disaster eventually as my database is over 2gb.

Paul M 09-21-2010 07:41 AM

That option has always had issues, and as I didnt write it, ive never had the time to look into why.

I suggest you simply dont use it (I dont). It was removed from the 4.0 version.

You can always use the lock tables option, but only do it at a very quiet period as visitors will experince the forum hanging while you do, and eventually you will start to get "too many connections" errors as the mysql process queue backs up waiting for write access.

Simon Lloyd 09-22-2010 05:29 AM

Thanks for coming back to me, i've also turned off the lock tables too now as i don't want to get a barrage of database error emails :)


All times are GMT. The time now is 07:31 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.01659 seconds
  • Memory Usage 1,825KB
  • 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
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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