vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   *.sql vs *.gz (https://vborg.vbsupport.ru/showthread.php?t=60625)

DJ RRebel 01-23-2004 12:29 PM

*.sql vs *.gz
 
ok ... first let me state the obvious in that although I understand some concepts of SQL, I'm far from being an expert.

My problem lies in that my vB database is way too big to back-up through vB, and everytime i want to do a back-up, I have to call my host's tech and get them to do a manual 'MySQL dump on the command line'.

Usually this is fine ... but sometimes they do it in *.gz format (even if I specifically ask for it in *.sql).

I've noticed that when I uncompress the *.gz file (which results in a *.sql file), the *.sql is about 2% to 4% smaller than than the corresponding *.sql file that was originally a *.sql file (never compressed).

Considering my *.sql files are about 300 megs for a complete back-up, having a difference of over 5 megs is both perplexing and worrysome.

It seems saving to *.gz seems to be much simpler for them to do, but I can't have the peace of mind I get from a *.sql (never compressed) back-up when it is done via *.gz ...


Could someone please give me a quick explanation of *.gz files, and any potential reasons why the *.sql file uncompressed from a *.gz file is not the same size as the *.sql file that was never compressed ???

Also ... considering what I've mentioned above, what would you recommend I do from now on ??? Get them to do it in *.sql format? Or get it done as a *.gz (which I think I can actually do myself through cPanel5's backup ['download a SQL DB Backup'])


Finally ... is the cpanel backup *.gz file a non-live back-up done automatically once every X hours or X days), or is it created when I attempt the download ... is this feature reliable?

So ... to summorise:

1- Why is a *.sql from a *.gz smaller than a *.sql that was never compressed?

2- How should I back things up in the future (*.gz or *.sql)?

3- How reliable is cPanel5's back-up feature, and is it a 'live' back-up, or simply a file that is saved every X amount of time ???


I really want to start getting more involved in tweeks and hacks ... but I really think the best first step in getting there is actually being able to successfully back-up my data ... lol ... or at the very least ... know when I have a reliable back-up (rather than just hoping my host's tech sent me a complete back-up or not).


Anyhow ... Thanks tons for your feedback and help !!! :)

Xenon 01-23-2004 01:37 PM

well it's easy to answer.

the sql file they zipped was not like the one you have.

for example if you get the sql file out of php-myadmin there are comments in it (what table do work with now...)
and i'd say they compressed an pure sql file without the comments.


All times are GMT. The time now is 10:18 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.01076 seconds
  • Memory Usage 1,708KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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