vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=126925

vB Database Backup Pro (Lite) for vb 3.6
by Paul M
18 Sep 2006 13:53

2 Attachment(s)
This modification is no longer available or supported.

When vb 3.5 first came out I was using this backup system on my vb 3.0 - and having nothing better to use - I converted it to work on vb 3.5 (here) and since then I have cut it down and adapted it for vb 3.6.

The original version was by Trigunflame and the rights to the code were bought by Zoints (D.Chapman) in January. A while ago David gave me permission to release my adaption, but until now I haven't got round to it. Trigunflame did mention a few months ago he was working on a new version, but nothing ever appeared.

I have stripped out much of the extra stuff that I do not use (or indeed, could not get to work). This is a simple (lite) version that does a php based dump of your database either as one file, or one file per table. It's been in use on our forum since the day 3.6 was installed.

Notes:
* I will not add anything new to this, or spend vast amounts of time supporting it.
* This is a Lite version to allow people to use the basic 3.0 backup functionality on 3.6.


History:

v2.10 : First internal version.
v2.11 : Bug fixes, some code changes.
v2.12 : Initial Public Release.


rainyleaves 18 Sep 2006 15:03

Install!!
Thanks Paul~~^^

rezapci 18 Sep 2006 15:15

thanks so muchhhhhhhhh

awesome plugins.

bashy 18 Sep 2006 16:00

Hi m8, just installed this version seen as the other version stopped working..

I get this error when i run it manually to check it...

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

What have i forgotten please

I take it

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Is what we need to edit, if so would this be right, e.g.

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

or have i got it totaly wrong?

Or is it sommat else i forgot, sorry m8 but me aint 100% clued up on stuff like this yet!! :o

Paul M 18 Sep 2006 16:15

Only you know where on your server you are going to store the backups.

DIR is the path to your forum root folder (without the trailing '/') - so what you have is probably wrong, I would guess you are trying to use a folder called mydbbackup in your forum folder, so it would be DIR.'/mydbbackup/' .

JFYI - Storing backups in your forum folder is a very bad idea, as anyone could download them.

seany1 18 Sep 2006 17:11

Thanks

bashy 18 Sep 2006 17:17

nah its ok m8 that was just an example so that i i had an idea as to what to put...its not gonna be in my forum folder, its actually going in the root :)

Thanks again

Ps you said without the trailing, yet you added a trailing in ya post, also the config file says with trailing as well
Which is it please?

voteforbird 18 Sep 2006 17:48

Will this work on large boards? (300,000 posts)

Paul M 18 Sep 2006 17:52

Quote:

Originally Posted by bashy
Ps you said without the trailing, yet you added a trailing in ya post, also the config file says with trailing as well
Which is it please?

I suggest you read it again. I said DIR is the path to your forum, with no trailing '/' in it.

Quote:

Originally Posted by voteforbird
Will this work on large boards? (300,000 posts)

We have over 3/4 million posts.

KoC 18 Sep 2006 18:06

Is there any option for upload the file automaticly via ftp

Neal-UK 18 Sep 2006 18:10

I have my backup off the root, but when I enter the same settings as when I do a manual backup I get the same error bashy gets.

In the config file, it does say DIR for the backup with trailing "/"

I've entered it like "/site/user/whatever/isit/dbbackup/"

phpdevrus 18 Sep 2006 18:17

you just need to chmod the directory to make it writable. ;-) also remember to keep it out of public_html so that it is not viewable to the web.

also keep the directory within your sites dirs and not off of / but rather a local dir for that particular site ie. /site/user/what/backups/ or /home/whatever/backups.

your script will run as the user nobody or your account user, which will not allow it to write files off of root ie. /dbbackups

hope that helps.


----


i forgot to mention... nice... :-) works fine for me and i have 900k post. it might cause a load issue but it seems the same compared to when i run mysqldump from ssh.

Neal-UK 18 Sep 2006 18:21

It's all set right then, the directory is chmod to 777 as i normally do a manual backup. It's one above public_html also for security reasons.

Can't get it to work.

EDIT: Replaced file with directory

phpdevrus 18 Sep 2006 18:22

no i meant chmod the directory and not the file. let me know if that works or not.

Neal-UK 18 Sep 2006 18:28

Yes the directory is chmod to 777, as I normally do a manual backup.

Weird, useful mod this too.


All times are GMT. The time now is 00:35.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.