vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Backing up with Mysqldumper (https://vborg.vbsupport.ru/showthread.php?t=167634)

hitmann 01-13-2008 02:07 AM

Backing up with Mysqldumper
 
I'm trying to use Mysqldumper to backup my database, but it only makes a 8mb file everytime i run it, while my database is 40mb.

How do I make it do the full backup?

Dismounted 01-13-2008 09:34 AM

How are you backing up? Through the browser or crontab?

hitmann 01-14-2008 06:59 AM

Through the browser. I don't know how crontab works

Marco van Herwaarden 01-14-2008 07:10 AM

I suggest you ask at the support site for the software you are using.

Dismounted 01-14-2008 07:51 AM

Does the browser say dump finished when it finishes backing up (at the bottom of the page)?

hitmann 01-14-2008 06:08 PM

I can't see dump finished when the backup has ended. Here's what I get when it has finished:

Code:

http://i15.tinypic.com/8bqzfwh.gif

My database details:
139 Tables, 81737 Records, 42.29 MB


I haven't touched any of the default settings, apart from directory protection

snakes1100 01-14-2008 07:05 PM

You do realize that is a compressed file, uncompress the backup file and import it into a "NEW TEST DB" and compare it to your live site.

Dismounted 01-15-2008 04:14 AM

Yep, the dump should be complete. It's just compressed, that's why it's smaller.

hitmann 01-20-2008 05:15 AM

Alright, when I unzipped it, it went on the 40megs. Thanks guys.

I've got another problem though. The backup was made from a 3.6.8 live board and I've installed 3.7 b3 on my local machine. However, when I try to restore the database to the 3.7 installation from mysqldumper, I get some errors, like that:

Quote:

Error in Query:

INSERT INTO `vBcustomavatar` (`userid`,`filedata`,`dateline`,`filename`,`visibl e`,`filesize`,`width`,`height`,`importcustomavatar id`) VALUES etc...etc...
Followed by weird characters like that:
Quote:

��o����w\Z���|�F�:�7��㬰�<�$cr&�\'?c�+ a|Xlj��C\Zph!���LU� etc... etc...

Dismounted 01-21-2008 03:56 AM

Do your members post non-English characters?

Eikinskjaldi 01-21-2008 04:13 AM

The characters you are seeing are what happens when you do a dump of non text data from the database (in this case avatar pictures). There are a couple of solutions.

1) Toggle the settings in your ACP so that all images are stored on disk instead of in the database. This will remove the need for the avatar table altogether

2) I have never used mysqldumper, but the program it is based on (mysqldump) allows you to set --hexblob so that binary data is hex encoded (removing the weird characters, and most importantly the quotes). I assume mysqldumper will do the same.

hitmann 01-29-2008 04:17 PM

I've read in other posts on the forum that mysqldumper and other php backups will also cause this problem.
Apparently the best way to avoid this problem is to restore by SSH.

Would someone be kind enough to guide me through this process? I'm using Putty on XP Pro and want to restore the database on my local machine.

Dismounted 01-30-2008 05:17 AM

Backup:
http://www.vbulletin.com/docs/html/m...nce_ssh_backup

Restore:
http://www.vbulletin.com/docs/html/m...ce_ssh_restore


All times are GMT. The time now is 08:03 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.01078 seconds
  • Memory Usage 1,733KB
  • 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_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (13)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete