vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Vbulletin Database Backup Pro (Cron Support) (https://vborg.vbsupport.ru/showthread.php?t=78486)

Trigunflame 04-20-2005 12:06 PM

Quote:

Originally Posted by jdsinclair
Just bumping this, if you can point me in the right direction of where I am going wrong here that would be great.

Thanks,

jd.

I've noticed problems with this particular code on a couple systems yesterday, will be updated soon.

1. open mysqlbackup.php
2. find $this->OPTIONS = unserialize(stripslashes($this->OPTIONS['data']));
3. replace it with :
$this->OPTIONS = unserialize($this->OPTIONS['data']);

See if u still get the fetch database options problem anymore.

Trigunflame 04-20-2005 12:07 PM

Quote:

Originally Posted by The Realist
What does this mean "An error occured during input of the source file for Compression"

Also if I turn compression off and run the cron I get this straight away?

"MySQL Backup was completed successfully with no errors"

And no files or error docs show in the backup dir?
Laters

It means it couldn't open the sql dump file for compression.

Trigunflame 04-20-2005 12:08 PM

Quote:

Originally Posted by Sportbikeworld
Great script! Running fine on 3.03

I have 2 ideas for future options...

#1 How about an option to backup our httpdocs / DOCUMENT_ROOT directory as well? Would be nice to be able to backup all of our forums php pages and attachments for those of us who keep them in the file system and not the database. The backup file can be placed below the DOCUMENT_ROOT so it will not keep making copies of itself. ;)

#2 Since a lot of VB forums also have ad-ons (Gallery etc...) how about being able to include a 2nd, 3rd or even 4th database for backup as well?

Thanks again for a great script!

Installed and voted for HOTM.

Noted, :)

Greebo 04-20-2005 01:25 PM

My backup file is getting to be over 100 MB, and unfortunately I can't use the shell option, I have to use the php option.

Last night, for the first time, the backup failed to return the forums to their online state. It did so again this morning when I ran it manually.

I suspect the size is an issue - first task on my part is probably going to be moving attachments out of the database (finally) and into the file system.

But - is there any way to guarantee that if the process fails, it doesn't keep my users locked out?

Trigunflame 04-20-2005 01:31 PM

Quote:

Originally Posted by Greebo
My backup file is getting to be over 100 MB, and unfortunately I can't use the shell option, I have to use the php option.

Last night, for the first time, the backup failed to return the forums to their online state. It did so again this morning when I ran it manually.

I suspect the size is an issue - first task on my part is probably going to be moving attachments out of the database (finally) and into the file system.

But - is there any way to guarantee that if the process fails, it doesn't keep my users locked out?

It's more of an issue on browser time, after helping a guy yesterday that had backup files of "1.1gb" timeouts were occuring during the backup, the problem being that for some reason you need to send data to the browser at some intervals to keep it from disconnecting.

Even though I have code that "supposedly" is supposed to ignore browser disconnection, I will need to make mods in version 2 that send updates to the browser..

possibly . . . . . etc..

May want to turn off forum shutdown for now, until the new version.

Greebo 04-20-2005 01:43 PM

Perhaps - but I moved my attachments out of the DB (something I've been meaning to do for a while now) and now the backup is 30mb instead of 130, and it doesn't time out anymore. :)

By the time we get big enough to hit that limit again, we'll have moved to new servers and I'll be able to have it go via shell.

ncangler 04-21-2005 08:35 PM

Trigunflame, This looks very impressive and may be very timely for me, so in advance...thank you!

My serverhost had indicated that they would do complete backups every night. Last night my site went down and they fessed up that they had not backed up for a week. I lost all posts and new users for the past week. Fortunately it is still a relatively new and small board (200+). My question is regarding optimum backup strategy. Since the server box and drives went down last night isn't it better to have a backup on another physical harddrive somewhere in addition to or in lieu of being on the same box that your site is on? Is there a data backup service that can be purchased where your script would ftp a complete site backup to another secure (hopefully mirrored) backup server?

I may be working through moving to another host soon (fear and dread) but want to choose the optimum backup strategy now. Any input is most appreciated. And I will install this on the first of three sites and let you know how it goes.

I continue to be amazed at the collaborative spirit of incredibly talented and gifted people like yourself. Thanks. :)

Robert Basil 04-21-2005 08:40 PM

We use 1and1 Internet (Dedicated servers).

They include nightly backups for all shared accounts and an FTP server account for backups for dedicated servers.

http://www.1and1.com

Trigunflame 04-21-2005 10:03 PM

Quote:

Originally Posted by Sportbikeworld
We use 1and1 Internet (Dedicated servers).

They include nightly backups for all shared accounts and an FTP server account for backups for dedicated servers.

http://www.1and1.com

Never mention 1&1 again, they are close to being the worst webhost that exist in modern times.

I know, ive had em. :disappointed:

Trigunflame 04-21-2005 10:06 PM

Quote:

Originally Posted by ncangler
Trigunflame, This looks very impressive and may be very timely for me, so in advance...thank you!

My serverhost had indicated that they would do complete backups every night. Last night my site went down and they fessed up that they had not backed up for a week. I lost all posts and new users for the past week. Fortunately it is still a relatively new and small board (200+). My question is regarding optimum backup strategy. Since the server box and drives went down last night isn't it better to have a backup on another physical harddrive somewhere in addition to or in lieu of being on the same box that your site is on? Is there a data backup service that can be purchased where your script would ftp a complete site backup to another secure (hopefully mirrored) backup server?

I may be working through moving to another host soon (fear and dread) but want to choose the optimum backup strategy now. Any input is most appreciated. And I will install this on the first of three sites and let you know how it goes.

I continue to be amazed at the collaborative spirit of incredibly talented and gifted people like yourself. Thanks. :)

FTP Support is in the current script, but just for transferring the backup.

In version 2, I am transforming the script into a "Forum Backup Script"; so it's reach will include that of backing up the entire forum, not just the SQL File itself.

Robert Basil 04-21-2005 10:09 PM

Quote:

Originally Posted by Trigunflame
Never mention 1&1 again, they are close to being the worst webhost that exist in modern times.

I know, ive had em. :disappointed:

Bummer you had a bad expierence with them. We've been with them for about a year now and no problems. We don't really use them for much as we have a root server with our own OS installed on it. None of that Control Panel B.S. ;)

Robert Basil 04-21-2005 10:10 PM

Quote:

Originally Posted by Trigunflame
In version 2, I am transforming the script into a "Forum Backup Script"; so it's reach will include that of backing up the entire forum, not just the SQL File itself.

WOO! HOO! :up: :up: :up: :up:

ncangler 04-22-2005 02:21 AM

I've installed and am able to run the backup successfully with no errors.

Question 1...does this backup only vBulletin MySQL tables or does it also backup vBadvanced, Photopost, etc. tables that populate a MySQL database? I'd love to have this back up the entire database if possible.

Question 2...
Quote:

$backup['TABLES'] = array('post','user');
If I use "vb_" as a vBulletin table prefix how do I designate that for all the tables? In your quote above is that I all I need to put a prefix in front of or do I have to list every table? Just want to make sure I do it right. :)

Thanks for a great addon!

ncangler 04-22-2005 02:37 AM

Oh one more question...I am executing the cronbackup and it says it is completed successfully with no errors. How can I open it to make sure everything is good? Thanks again!

Trigunflame 04-22-2005 03:01 AM

Quote:

Originally Posted by ncangler
Oh one more question...I am executing the cronbackup and it says it is completed successfully with no errors. How can I open it to make sure everything is good? Thanks again!

Please read the configuration.

By default all tables are backed up. Only if you change the option to a selective backup, is the array needed to specify particular tables.

ncangler 04-22-2005 03:21 AM

Sorry, I did read it but it makes sense now. As long as I chose "1" as the backup type, I'm backing up all tables. Very cool. Thank you!

Quote:

Originally Posted by Trigunflame
Please read the configuration.
By default all tables are backed up. Only if you change the option to a selective backup, is the array needed to specify particular tables.


Mosh 04-22-2005 08:54 AM

Quote:

Originally Posted by Trigunflame
I've noticed problems with this particular code on a couple systems yesterday, will be updated soon.

1. open mysqlbackup.php
2. find $this->OPTIONS = unserialize(stripslashes($this->OPTIONS['data']));
3. replace it with :
$this->OPTIONS = unserialize($this->OPTIONS['data']);

See if u still get the fetch database options problem anymore.

Thank you Trigunflame, that did the trick splendedly :up:

Now clicks install, already voted for HOTM last week :)

Jagged Tooth 04-25-2005 05:35 AM

Im getting an error message afer i try to run the scheduled task (Step 6 in the install file).

Error: Failover was initiated for MySQLDump Binary, but dump completed successfully.

MySQL Version: 4.1.10a-standard

PHP Version: 4.3.10

Any thing would be helpful

Mosh 04-25-2005 08:28 AM

Quote:

Originally Posted by Jagged Tooth
Im getting an error message afer i try to run the scheduled task (Step 6 in the install file).

Error: Failover was initiated for MySQLDump Binary, but dump completed successfully.

MySQL Version: 4.1.10a-standard

PHP Version: 4.3.10

Any thing would be helpful

Just quoting Trigunflame's answer below as I knew it was in this thread somewhere, hope this helps.
Quote:

Originally Posted by Trigunflame
It just means that you dont have access to the mysqldump binary via shell commands, probably because of safemode.

In this case, it is failing over into a manual PHP dump mode. As long as it is saving your dumps correctly, all is ok. But you might want to get safemode turned off if possible.


Jagged Tooth 04-25-2005 09:31 AM

Oh, ok thanks for that its working now.

Greebo 04-25-2005 01:17 PM

Upon review of the code, it appears that LOG_PATH, set in the config file, is not actually being *used*?

ImportPassion 04-25-2005 01:24 PM

the alert that shows at the top of the screen for admins that says the forum is turned off does not get removed even tho the site is on.

Greebo 04-25-2005 01:26 PM

Quote:

Originally Posted by 7thgenCivic.Com
the alert that shows at the top of the screen for admins that says the forum is turned off does not get removed even tho the site is on.

Um, no - it is off - your users are getting the FOrum Closed full screen notice. As an admin, you can still log in.

Go turn your site back on. :)

Trigunflame 04-25-2005 04:32 PM

Quote:

Originally Posted by Greebo
Upon review of the code, it appears that LOG_PATH, set in the config file, is not actually being *used*?

Yes.. need to fix that.

freedom2support 04-26-2005 02:22 PM

Hi, I keep getting this:

Failover was initiated for MySQLDump Binary but backup completed successfully.

What do I need to do? I had to take the lock option off as it was giving Invalid SQL when I did it.

Trigunflame 04-26-2005 08:42 PM

Quote:

Originally Posted by freedom2support
Hi, I keep getting this:

Failover was initiated for MySQLDump Binary but backup completed successfully.

What do I need to do? I had to take the lock option off as it was giving Invalid SQL when I did it.

Sir. Read The Message.

Failover was initiated for MySQLDump Binary
but backup completed successfully.

If the dump exist in its path, then its ok. That is just informing you that the backup could not use MySQLDump, and had to resort to PHPDump.

Kirk Y 04-28-2005 10:56 PM

Hey, I love this MOD, it's worked great...in fact I recently got a chance to test out its results. My forum was recently hacked and our database destroyed, we used a backup created by Database Backup Pro and restored the forum with no problems, except for an error when we tried to re-create a table named Hosted. It was used for an Image Uploader hack. We skipped the creation process of this table and the rest of the restore went fine, with no SQL Errors. After we'd completed the restore process, we opened up the forum and it appears to be stuck in a backup or something. We get the message saying that the forum is offline due to a backup in progress. The Admin Panel cannot be accessed, so I'm not sure what to do. Any help would be much appreciated.

Thanks in advance!
-acidburn0520

BTW: If you'd like to see the site it's URL is: http://www.socomcity.net/forum/index.php

Paul M 04-28-2005 11:43 PM

In what way can you not access the ACP - I can get the login screen up ok.

Lizard King 04-28-2005 11:47 PM

If he tries to login then it takes him again to database backup warning page ;) try to login with test test. P.s : i used it just for test it is probably not a regular forum user :P

By the way did you try to change settings in backup config file. Maybe if you change turn forum off setting and it may work then.

Razasharp 04-28-2005 11:53 PM

Just a thought, but did you restore in exactly the same dirtectory? or have you changed it?

for eg: is your forum at the same address such as:

yourwebsite.com/forumname

or has it changed to

yourwebsite.com/newforumname

?

Kirk Y 04-29-2005 01:06 AM

Quote:

Originally Posted by Razasharp
Just a thought, but did you restore in exactly the same dirtectory? or have you changed it?

for eg: is your forum at the same address such as:

yourwebsite.com/forumname

or has it changed to

yourwebsite.com/newforumname

?

Actually...you may have it there...I believe our previous directory was labeled "forums", would that have an adverse effect?

**Edit: I'm not sure if this problem is associated with the DB Backup or what...but whenever I try to login to the Admin Panel, I get a message saying: "This user has not registered and therefore does not have a profile to view."

Trigunflame 04-29-2005 03:40 AM

Yes that is possible. Also the reason the forum is locked into "Forum is down", is due to it being shutdown before the backup was initiated, which is it's intended purpose :)

As for that error message to do with profile, not sure what that would be, I will look into it after the release of Backup Pro version 2.

Razasharp 04-29-2005 11:08 AM

Yes it could well be.

It sounds like your cookie settings - if they were set for your old forum directory they will now stop working.

Try this:

> ftp to your site

> rename the directory of the forum to what it was AT THE TIME the backup was taken

> go to your site

> in your vB Admin Control Panel (ACP)

vBulletin Options > Cookies and HTTP Header Options > Path to Save Cookies

Make a note of the existing setting (for example mine is set to: /myforums/ )

Then change the setting to:

/

> click on SAVE

> ftp back to your site and name the directory to what you want it to be - for example you said it was: forums

> go back to your site and in your vB Admin Control Panel (ACP)

vBulletin Options > Cookies and HTTP Header Options > Path to Save Cookies

Then change the setting to:

/forums/ (or replace 'forums' with new directory name it is in)

> click on SAVE

----------------------

if that doesnt work let me know.

ImportPassion 04-29-2005 02:14 PM

Quote:

Originally Posted by Greebo
Um, no - it is off - your users are getting the FOrum Closed full screen notice. As an admin, you can still log in.

Go turn your site back on. :)

that's my point, it's not getting turned back on after the backup. this is killing my site. it was off from 4am-11am and the back up was long done. also, I even changed the option to NOT turn the forum off and it still turned it off.

ImportPassion 04-29-2005 03:33 PM

Quote:

Originally Posted by Trigunflame
It's more of an issue on browser time, after helping a guy yesterday that had backup files of "1.1gb" timeouts were occuring during the backup, the problem being that for some reason you need to send data to the browser at some intervals to keep it from disconnecting.

Even though I have code that "supposedly" is supposed to ignore browser disconnection, I will need to make mods in version 2 that send updates to the browser..

possibly . . . . . etc..

May want to turn off forum shutdown for now, until the new version.

this must be what is happening to me. too bad.

steadicamop 04-29-2005 05:11 PM

This is a cracking addition, although I've noticed if I backup using this, my DB backup file (uncompressed from the .gz file) is 8.43mb, and if I do a backup directly through VBB it's 10.86mb!! Any reason why the file is smaller? I looked through the raw file using Wordpad and looked at the post table, and it doesn't look like theres 1500 posts in it!!!

Kirk Y 04-29-2005 06:37 PM

Quote:

Originally Posted by Razasharp
Yes it could well be.

It sounds like your cookie settings - if they were set for your old forum directory they will now stop working.

Try this:

> ftp to your site

> rename the directory of the forum to what it was AT THE TIME the backup was taken

> go to your site

> in your vB Admin Control Panel (ACP)

vBulletin Options > Cookies and HTTP Header Options > Path to Save Cookies

Make a note of the existing setting (for example mine is set to: /myforums/ )

Then change the setting to:

/

> click on SAVE

> ftp back to your site and name the directory to what you want it to be - for example you said it was: forums

> go back to your site and in your vB Admin Control Panel (ACP)

vBulletin Options > Cookies and HTTP Header Options > Path to Save Cookies

Then change the setting to:

/forums/ (or replace 'forums' with new directory name it is in)

> click on SAVE


----------------------

if that doesnt work let me know.


After further investigation, I discovered that our directory name was "forum" before we were hacked and is "forum" now. As of this moment, I cannot login to the Administration Panel nor can I login as a User...I'm totally shut out. Whenever I attempt to login I receive an error message stating: "This user has not registered and therefore does not have a profile to view." Could this be associated with an improper vbulletin restore? This was my first time having to attempt to restore vBulletin, I assumed that simply putting all the tables back into the database would bring it back to normal...but it's been quite the opposite.

Razasharp 04-29-2005 07:06 PM

how were you hacked? via your vB admin panel? via your host account?

I guess you'll need to ascertain whether or not any other damage was done and for how long it was going on (u might need an earlier restore)

Trigunflame 04-29-2005 07:17 PM

Quote:

Originally Posted by JasonWilliams
This is a cracking addition, although I've noticed if I backup using this, my DB backup file (uncompressed from the .gz file) is 8.43mb, and if I do a backup directly through VBB it's 10.86mb!! Any reason why the file is smaller? I looked through the raw file using Wordpad and looked at the post table, and it doesn't look like theres 1500 posts in it!!!

Make sure you can use mysqldump from php, make sure safemode is off, wait just a bit until version 2.

steadicamop 04-29-2005 08:36 PM

Thanks, safe mode is definately off, how would I find out about the mysqldump? I have phpMyAdmin installed if anything can be found there.....


All times are GMT. The time now is 01:06 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.02399 seconds
  • Memory Usage 1,859KB
  • 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
  • (22)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