Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-05-2005, 12:58 AM
hurrican hurrican is offline
 
Join Date: Feb 2004
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Backup of Database not getting everything

Hello Everyone,

I was runnig MySQL v3.23 previously, and my db dumps worked fine .. However, I have since upgraded to v4.1.8a-log and I am having problems getting completed (or non corrupt) backups.. The problem is pretty big..

My Original Backup of the DB using 3.23 was 208MB --- When I upgraded to 4.18 the backup is only 138MB ... My users Avatar's, all attachments, etc are totally whacked out. Does anyone have any insight on what is causing this, and how to fix it? Any help is appreciated.. I need a new good backup desperately


This is from my corrupted DB:


This is supposed to be the actual avatar:


My original install was w/ an RPM from the Redhat Network, I uninstalled all RPM's associated w/ MySQL, Apache, and PHP and downloaded the latest of everything and compiled it. After I did an updatedb on my box, I searched for "mysqldump" and "mysql" to confirm it was gone -- nothing was found, except for the stuff in webmin (I don't use webmin to backup)

The command I had typed to backup my DB is as suggested in the Support Documentations on this site.

mysqldump --opt -Q -u <user> -p 3avBu > /backup/forumbackup-01-03-2005.sql

./mysqldump Ver 10.9 Distrib 4.1.8a, for redhat-linux-gnu (i686)
Reply With Quote
  #2  
Old 09-11-2005, 11:49 AM
baconzoo baconzoo is offline
 
Join Date: Jul 2005
Location: New York
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My similar question:

Using the Admin CP to save the backup or to upload avatars sets the files user as Apache which needs to be different so I can access or backup these files. I looked into config.php but I don't see where I can specify a specific user name for the php to use when uploading or backing up.

Any solutions for this Nubie?
Reply With Quote
  #3  
Old 09-15-2005, 02:16 AM
baconzoo baconzoo is offline
 
Join Date: Jul 2005
Location: New York
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Let me try to explain:
If a member uploads an avatar or profile pic,
If I use the admincp to upload avatars,
If I use backupDB to create a SQL file on my server.

My server is setting those files to Apache as the group and User when it needs to specify my Username and group.
The file permissions are wrong as well
rw - - instead of
rw r- r-

The lame part about this is when I try to backup those files I get a permissions error because I'm not Apache. I have to resave those files localy and re-upload them useing FTP and reset their permissions. LAME, this shouldn't be...
Reply With Quote
  #4  
Old 09-15-2005, 04:54 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What are the permissions of the directory in which the files are saved?
Reply With Quote
  #5  
Old 09-15-2005, 06:04 AM
baconzoo baconzoo is offline
 
Join Date: Jul 2005
Location: New York
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarcoH64
What are the permissions of the directory in which the files are saved?
777 or RWX RWX RWX
Reply With Quote
  #6  
Old 10-05-2005, 01:46 AM
baconzoo baconzoo is offline
 
Join Date: Jul 2005
Location: New York
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

All my attachments and uploaded avatars have this problem:



The PHP is setting the permissions wrong. (apache) It should be my username: holidayv
So I cant back up that file!

My work around is to browse to the Members Page copy the image. Delete the apache file through my servers file manager and re-upload the file through FTP. Lame! Lame! Lame!
How in the world am I gonna fix all the attachments that way in order to back them up?
This problem makes it so I can't even do anything via FTP with the apache files.

I've tried the
Safe Mode On/Off
Temporary Directory tmp/ and CHMOD 777 fix but still no joy.
Reply With Quote
  #7  
Old 10-05-2005, 06:21 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You should ask your host to fix the apache/php settings for you.

Are you on a shared or a dedicated host?
Reply With Quote
  #8  
Old 10-05-2005, 06:38 PM
baconzoo baconzoo is offline
 
Join Date: Jul 2005
Location: New York
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Shared host.
I have a 4images site on the same server. I just noticed the same thing with the files it uploaded through the php but those files have a permission of RW RW RW

Where in the whole process does Vbulletin tell an Apache server what permission to make the uploaded file? Is it something I could edit in a config or php file?

Both websites have safe mode off.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:36 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.02125 seconds
  • Memory Usage 2,222KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete