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

MCAlexandre 09-08-2008 05:38 PM

Quote:

Originally Posted by Paul M (Post 1617503)
It might help to post what path you have actually set. :)

x_x'

I tried those up there, but now I have this path: "includes/cron/cronbackup.php"

Mr. Hoddz 09-08-2008 06:11 PM

So I use this to backup a table, and then import that into phpmyadmin if I make a new database? Would that work?

Not clicked install yet as I'm asking before =D

Paul M 09-08-2008 07:08 PM

Quote:

Originally Posted by MCAlexandre (Post 1617595)
x_x'

I tried those up there, but now I have this path: "includes/cron/cronbackup.php"

Umm, I mean your backup path.

MCAlexandre 09-09-2008 10:16 AM

Quote:

Originally Posted by Paul M (Post 1617640)
Umm, I mean your backup path.

That's... I don't know how to set it. Please tell me and I'll see if the errors continues showing up. Sorry for being a noob.

Paul M 09-10-2008 08:55 AM

Its set in the mods config file, with all the other options that come with the mod.

ntrance 09-10-2008 04:26 PM

Had a few issues with the install then managed to get it working using the relative path.
It wouldn't work inside the public_html folder. It works one dir above nicely ! i.e ROOT

Excellent mod !

Al

aciurczak 09-10-2008 05:08 PM

Are there step-by-step instructions somewhere about how to restore a vB database using a backup made with this mod? I'm assuming it's something like: load the txt file back up to the server to an area where phpmysql can see it, and point phpmysql to the file to rebuild the DB. But if someone could put together a list of:

- here's what you do (including actual sql commands) to restore the db if it all of the tables in one large combined file
- here's what you do to restore the db if the backup is in individual files by table

it might help folks out and make the overall use of this mod a bit more clear.

Paul M 09-10-2008 07:20 PM

If someone has the time to write one, they are free to do so, Im afraid I dont. :)

woostar 09-12-2008 05:18 PM

At the moment I have a cron setup to do backups, but this causes a 1 - 2 minute lag. Does this use a sleep function to resolve resource hogging on larger databases?

PHILIPS-08 09-13-2008 05:20 AM

thanx for the work mate good mod

1quick1 09-15-2008 08:08 PM

Hey everyone. I've been using this Mod for a while now and haven't had a single issue until now. This last week or so I get this error message now when it runs and it causes my forum to be shut off until I go in and turn it off and on again. I haven't changed anything so I'm not sure what the problem is and why this just started happening.

Database error in vBulletin 3.7.0:

Invalid SQL:
SHOW CREATE TABLE `postedithistory`;

MySQL Error : MySQL server has gone away
Error Number : 2006
Request Date : Monday, September 15th 2008 @ 04:01:51 PM
Error Date : Monday, September 15th 2008 @ 04:02:02 PM
Script : http://www.extremebodybuilding.net/f...cron&cronid=35
Referrer : http://www.extremebodybuilding.net/f....php?do=modify

Paul M 09-15-2008 09:45 PM

Perhaps you have a low mysql timeout value.

1quick1 09-15-2008 09:50 PM

Quote:

Originally Posted by Paul M (Post 1622909)
Perhaps you have a low mysql timeout value.

I'm on a shared server so I don't get to mess wtih any of those settings (at least I don't think). It's weird cause I haven't had an issue with this mod, even when I used the old one on 3.6.x

My site is pretty small so the backup usually completes really fast. Like 5,000 threads, 50,000 posts, and 3000 members

Stryker412 09-16-2008 12:44 PM

Stupid question but I want this mod to do backups just like vbulletin does. So I would set combine all tables to one file to yes right?

Paul M 09-16-2008 12:46 PM

If thats what vb does then yes.

Stryker412 09-16-2008 01:08 PM

Got it working, thanks.

TsirhCitna 09-27-2008 04:55 PM

I've had a couple of occasions where the board did not get reopened after the backup.

forsanelhaq 09-29-2008 01:30 AM

i want it back up to ftp

where can i find that

PAKIDIL 09-30-2008 09:59 PM

finally i got it working .i was having this erorr : An error occured during the Backup : Could not open Destination SQL file for writing. even i gave my backup folder 777 and also providing the correct path . i have found that the problem was i changed

"Y-m-d"
in to
2008-10-01
Do not Change "Y-m-d" until u get it working for ya

that's why it was showing me this erorr
An error occured during the Backup : Could not open Destination SQL file for writing

Strange . So may be few guyz having this problem due to this edit "Y-m-d".

Installed Now. one thing if any one could tell me how to compress the backup in to zip or gzip ? thanks

Chadi 09-30-2008 10:02 PM

Quote:

Originally Posted by chadi (Post 1531194)
Could you possibly add this feature to automatically prune backups older than x amount of days? That would be great.

Would be great if you can add this feature please. Thanks.

Paul M 09-30-2008 11:30 PM

Quote:

Originally Posted by PAKIDIL (Post 1634241)
"Y-m-d"
in to
2008-10-01
Do not Change "Y-m-d" until u get it working for ya

Do not change that at all unless you understand what you are doing. Its a generic date format, not something you set to specific dates.

Quote:

Originally Posted by PAKIDIL (Post 1634241)
one thing if any one could tell me how to compress the backup in to zip or gzip ? thanks

You cant, at least not with this mod.

Quote:

Originally Posted by chadi (Post 1634242)
Would be great if you can add this feature please. Thanks.

Sorry, nothing new will be added to this.

PAKIDIL 10-01-2008 01:39 AM

one thing i want to ask its making new folders every time it runs so how can overwrite on the same backup ?

desirulez 10-08-2008 03:02 AM

i dont know how to set the settings :(

i want a daily backup settings

Paul M 10-08-2008 02:17 PM

Quote:

Originally Posted by PAKIDIL (Post 1634374)
one thing i want to ask its making new folders every time it runs so how can overwrite on the same backup ?

You could do what I do and change the time format to this ;

PHP Code:

$backup['DATE'] = 'l'// Lowercase 'L' 

This creates a folder for each day (i.e. Monday, Tuesday etc) and they get overwritten each week.

Quote:

Originally Posted by desirulez (Post 1639929)
i dont know how to set the settings :(

i want a daily backup settings

It runs daily by default.

Markos 10-10-2008 10:07 PM

dose it run daily at 4 every day then and can u make it run you're self to test it ??

Paul M 10-11-2008 03:55 PM

You can run any vb cron via the schedules area of the ACP.

Suenee 10-21-2008 03:03 AM

Ok I am completely new at this and do not know code at all. I know from reading these post that this is nothing new to you. However if you will humor my ignorance and give me some suggestions as to how to make this mod work it would be greatly appreciated. I set the path to:

// File Saving Information
$backup['DATE'] = 'Y-M-d'; // Backup file date format (See http://uk.php.net/date)
$backup['PREFIX'] = 'Forum-'; // Backup file prefix, applied to all files
$backup['DUMP_PATH'] = '/home/www.mywebsite.com/backups/'; // Path to backups folder, must have a trailing slash


This is the best I could interpret it from this thread. I loaded the includes folder into the home directory. When I ran the task I get an error message that reads this:


Automatic Database Backup for vBulletin 3.7

Warning: include_once([path]/./includes/cron/cronbackup.php) [function.include-once]: failed to open stream: No such file or directory in [path]/admincp/cronadmin.php on line 113

Warning: include_once() [function.include]: Failed opening '[path]/./includes/cron/cronbackup.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in [path]/admincp/cronadmin.php on line 113


Can one of you please tell me what I need to do to correct this situation to make this work?:confused:

Thank you in advance:)
Suenee

Paul M 10-21-2008 07:01 AM

That is basically saying that the file cronbackup.php is not uploaded (to the correct place ?).

Suenee 10-21-2008 07:14 AM

Quote:

Originally Posted by Paul M (Post 1649520)
That is basically saying that the file cronbackup.php is not uploaded (to the correct place ?).

that I can fix can you tell me which file it should be in?

Thug 10-28-2008 01:49 PM

awsome worked a charm :)

gedr80 10-30-2008 09:46 PM

great hack thx

static-skillz 10-30-2008 10:45 PM

I downloaded this and it was Y-M-d in the config, just an fyi.

elrafei 11-02-2008 01:00 PM

thanks

but i have this error

Quote:

An error occured during the Backup : Could not open Destination SQL file for writing.
what can i do ?

seax19 11-03-2008 03:00 AM

Quote:

Originally Posted by elrafei (Post 1657815)
thanks

but i have this error

what can i do ?

It is mentioned a bunch of times in this thread that this means either the path you put in config file is not being found, has not got write (777) permission or theres a permission issue at the server/host end. I set this up for a test run on my system and got that error many times, it was finally solved by using absolute path to the backup folder instead of relative as was suggested previously. It is working now and I think I'm probably going to keep it :)

elrafei 11-03-2008 05:38 PM

Quote:

Originally Posted by seax19 (Post 1658283)
It is mentioned a bunch of times in this thread that this means either the path you put in config file is not being found, has not got write (777) permission or theres a permission issue at the server/host end. I set this up for a test run on my system and got that error many times, it was finally solved by using absolute path to the backup folder instead of relative as was suggested previously. It is working now and I think I'm probably going to keep it :)


thanks seax19

i did this

have got write (777) permission to folder backups in my www

this folder on

/home/myuser/public_html/backups/


but nothing happen

the error still appear

i change it to

mysite/backups/

but the error still appear too ..

kevcj 11-05-2008 11:47 PM

Thank you Paul, yet another A+ modification.

megatop78 11-08-2008 05:22 AM

i installed this and gave the directory permissions. Everything works fine.. it even shows "The Backup was completed successfully", but when the backup is completed and i browse to the backup directory. I find nothing inside it. Can you tell me where i am going wrong ??

BigJohnny 11-09-2008 02:58 AM

im having a problem with it not running automatically, unless i missed a setting somewhere to set how often it backs up, but according to the cron script it should be every day.

alkank 11-19-2008 10:50 AM

I installed as shown here but I have no idea about where the output will be? and how will we restore when the forum crashes?

thank you.

GlamRockTalk 11-20-2008 06:51 PM

This mod ROCKS! :D

Another clutch mod by Paul. Thanks!


All times are GMT. The time now is 11:33 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.01562 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
  • (1)bbcode_php_printable
  • (14)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