![]() |
vB Database Backup Pro (Lite) for vb 3.6
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. |
Install!!
Thanks Paul~~^^ |
thanks so muchhhhhhhhh
awesome plugins. |
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 Code:
$backup['DUMP_PATH'] = DIR.'/../../backups/'; // Path ( With trailing '/' ) Code:
= DIR.'/../../forums/mydbbackup/ Or is it sommat else i forgot, sorry m8 but me aint 100% clued up on stuff like this yet!! :o |
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. |
Thanks
|
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? |
Will this work on large boards? (300,000 posts)
|
Quote:
Quote:
|
Is there any option for upload the file automaticly via ftp
|
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/" |
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. |
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 |
no i meant chmod the directory and not the file. let me know if that works or not.
|
Yes the directory is chmod to 777, as I normally do a manual backup.
Weird, useful mod this too. |
Thanks for this. Sounds interesting but do you have any screenshots?
|
Nevermind. Found one in the old thread.
|
Paul ,
Sorry to ask you, My forum path is /home/user/public_html/forum I want it to store the backup in this DIR /home/user/packups can you help me please ? |
This works very well, but I have a problem which I think isn't solveable - I think the php execution time is set at around 30 seconds, which often times out when it's backing up a table, and will only ever reach postindex before it ends, never carrying out a full backup - is there any way around this? I really would like this as it's damn handy to have daily backups!!!
Plus as I've just discovered, it leaves the forum offline! |
Thanks Paul:)
|
Is doing that safe though? Could it not be "found" by spiders and what not?
|
There seems to be a lot of confusion about this line ;
PHP Code:
For example (in windows) it might be "d:/wwwroot/forum" - it has NO trailing '/' at the end, so the rest of the path definition adds one - so in this example the path defined above is "d:/wwwroot/forum/../../backups/" - which with the two '../' translates into "d:/backups/" a folder outside your public html folder. That backups folder must be writable by the webserver. If you just want to specify a direct path then do so - e.g. PHP Code:
Quote:
Quote:
|
Great Hack, thanks!
FWIW, the DIR thing made me go DOH too. So I opted to take the junior path and hard-code the backup directory:" $backup['DUMP_PATH'] = '/home/electr/www/backups/'; // Path ( With trailing '/' ) Works great, less filling! :rolleyes: |
Quote:
|
How can I restore my backups?
|
nice hank, thank you!
|
I think the backup needs to be gziped before will be better ;-)
|
I have a question. Does this mod backups up the database the way that phpMyAdmin does?
|
I've been waiting for this since 3.0. Thanks for porting it Paul, you rock! :cool:
|
Quote:
Quote:
Quote:
|
Quote:
Thanks! Jason |
In the vbulletin options menu there should be two links - one for the options, and one for search type.
|
Hi Paul, yeah i know what ya said m8 but the actual file says, with trailing /, bit misleadin if your saying without trailing /
Thats what im on about m8 Code:
$backup['DUMP_PATH'] = DIR.'/folder/forums/and/so/on'; // Path ( With trailing '/' ) Quote:
|
There is nothing misleading, you are not reading it correctly - as already explained elsewhere, DIR is a constant defined by vbulletin, it has no trailing '/' in it. If you still don't understand then please PM me, not clutter up this thread.
|
Quote:
I cleared out the postindex table, but again, it doesn't complete a full back up, it just gets further down the tables (it doesn't actually reach the user table). This is a little frustrating, I'm beginning to think my host is the issue here, I've had backup problems before. Thanks, Jason |
I think you are looking in the wrong place for the search option, see screenshot.
|
<font color="Navy">*puts glasses back on, squints</font> -- aaaah yes I'm so stupid to miss it there!!!
Thanks, done that, but I am still having that issue with it not completing a full back up, I do have a few extra tables in the database, but it's only around 20mb or so, I just can't understand why it never backs up completely :ermm: :ermm: |
Does this add-on allow for a partial backup? If I wanted to just backup a part of the database related to user accounts, would that allow me to do so?
|
Quote:
Also, the path /some/path/ .. is that inluding your root? Or is that the path of the folder you're currently in? For example, say I wanted to install it in includes/ folder, I would put "e:/includes/mybackups" ? Thanks |
Thanks a lot paul, sorted now and working well, your explanation help no end, Sorry for being a bit thick :o
Quote:
|
All times are GMT. The time now is 07:13 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|