Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
4 registered (Dj Aero, capnbob, Morgan, id242), 46 Guests and 16 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 04/12/04
Posts: 154
Top Posters (30 Days)
Ruben 49
DennyP 24
Gizmo 23
Dunny 18
SteveS 14
AllenAyres 12
dbremer 10
drkknght00 9
SD 9
driv 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Page 1 of 2 1 2 >
Topic Options
#177930 - 02/07/07 04:49 PM There may be a bug with table backup
luket Offline
member
Registered: 11/09/04
Posts: 191
I must not understand how this works, but I would assume all data would be backed up such that you can backup and restore your complete message board.

My classic board had 477K posts and the size on disk of all the forums was ~300 meg

When I backup from the UBBT.7 Control Panel / Database Tools, and backup all tables.. the result is relative puny; about 5.5 meg.

I would assume this is just the schemas and that the actual data is elsewhere?
Do I have this right?



Edited by luket (02/07/07 08:10 PM)
_________________________
Member since November 2004
Gold Member since Feb 2008
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#177934 - 02/07/07 05:56 PM Re: Not sure I understand how to backup my boards. [Re: luket]
Gizmo Online   cat

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
I don't recommend backing up via the forum, it's going to take way longer than how it would be if you where to do it via MySQL directly through the command line (via SSH for example).

Also, all the data is would be text, so if you have it compressed (tar or gz for example) it will be tiny.

The command to create a backup of a mysql database:
MySQL Export: mysqldump -uuser -ppass db > db.sql
MySQL Import: mysql -h localhost -uuser -ppass db < db.sql

Please note that the -u -p and -h are required and that you must add in your username password and database name.
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#177954 - 02/07/07 06:49 PM Re: Not sure I understand how to backup my boards. [Re: Gizmo]
luket Offline
member
Registered: 11/09/04
Posts: 191
So you are saying "yes, all of the forum data would be in these backup files" ...

Then I'm wondering if there isn't a bug.
There is no way to compress 300 meg to 5 ..
I ran a test and compressed my Fourm28:
It's 19K files and 172 meg. It Zip'ed to 41 meg.

I may know what happened then.
When I was running the backup from the control panel (even though you do not recommend doing this :p) I DID notice something very strange… I saw one of the .sql files changing size! I'm sorry, I do not remember the name, but let's say it was ubbt_foo.sql …
As I watched the directory during the backup, this file would change to 200K, then 300K, then 200K, then 400K, then 200K… and it kept doing this until the backup finished.

Theory: Each forum was backed up to a single output file, overwriting the output from the forum before it. I speculate that the backup is everything + 1 forum (the last one backed-up.)
_________________________
Member since November 2004
Gold Member since Feb 2008
Top
#177965 - 02/07/07 08:17 PM Re: Not sure I understand how to backup my boards. [Re: luket]
Gizmo Online   cat

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
If your backup was downloaded as a tar or a tgz file using the compression of the script you made the backup with; yes. If you have a .sql file, it is not likely, and is more likely that the script you used to generate the backup choked and fed you what it had recieved.

Also, ZIP is a way differant algoritm than Tar or Global Zip; or Tar and Global Zip togethre.

And it's quite odd that the file would change size like that, possibly a bug or something :shrug: I don't use scripts to make backups as you end up with either many files, lots of lag, or things that just doont' work properly ;\)
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#177967 - 02/07/07 08:38 PM Re: Not sure I understand how to backup my boards. [Re: Gizmo]
luket Offline
member
Registered: 11/09/04
Posts: 191
I must not be describing my problem clearly, sorry.

1. I did a backup using the Control Panel / Database tools / Backup all tables.

2. I have 488K posts and a file footprint in classic of 300 megabytes

3. The backup generated by UBB.T7 was like 51 .sql files with a total size of about 5 meg.

I am saying there is no way my 488K posts are represented in those 51 .sql files totaling 5 meg.

If my entire board should be represented in those 51 files, then there is a bug as described above.
_________________________
Member since November 2004
Gold Member since Feb 2008
Top
#177968 - 02/07/07 08:50 PM Re: Not sure I understand how to backup my boards. [Re: luket]
Gizmo Online   cat

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
Well, keep in mind that this isn't classic; posts aren't stored in files which repeat the same data over and over only with posts included; so it is actually possible.

Let me run a test for an example, brb
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#177969 - 02/07/07 08:52 PM Re: Not sure I understand how to backup my boards. [Re: Gizmo]
luket Offline
member
Registered: 11/09/04
Posts: 191
please ;\)

*waits patiently*
_________________________
Member since November 2004
Gold Member since Feb 2008
Top
#177970 - 02/07/07 08:53 PM Re: Not sure I understand how to backup my boards. [Re: Gizmo]
Gizmo Online   cat

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
Ok, a good example is this, I have probably 1gb of stuff in my database, my backup of my database's size is 37mb.

Let me check just mymain site though
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#177971 - 02/07/07 08:56 PM Re: Not sure I understand how to backup my boards. [Re: Gizmo]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
In the 7.0.x versions there is a bug in the backup where it's not backing up some of the tables on some servers. This got a bit of an overhaul for 7.1 to fix this.
Top
#177972 - 02/07/07 08:57 PM Re: Not sure I understand how to backup my boards. [Re: Gizmo]
Gizmo Online   cat

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
 Code:
[root@server blah]# mysqldump -uuser -ppass db > db.sql
Enter password: 
[root@server blah]# ls -hal
total 56M
drwxr-xr-x   2 root root 4.0K Feb  7 17:54 .
drwxr-x---  11 root root 4.0K Feb  7 17:54 ..
-rw-r--r--   1 root root  55M Feb  7 17:55 ubb.sql
[root@server blah]# tar -cvpzf db.tgz ubb.sql 
ubb.sql
[root@server blah]# ls -hal
total 67M
drwxr-xr-x   2 root root 4.0K Feb  7 17:55 .
drwxr-x---  11 root root 4.0K Feb  7 17:54 ..
-rw-r--r--   1 root root  12M Feb  7 17:56 db.tgz
-rw-r--r--   1 root root  55M Feb  7 17:55 ubb.sql


Well my 58mb database has shrank to 12mb with the compression; my UBB.Classic files where over 800mb though, as an example to how text compresses down when it's just text.
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#177973 - 02/07/07 09:00 PM Re: Not sure I understand how to backup my boards. [Re: Rick]
luket Offline
member
Registered: 11/09/04
Posts: 191
Ah, good to know...

By the way.. I *think* all of my forums were backed up to the same .sql file .. I watched as it changed sizes as though it was being overwritten by each forum.
_________________________
Member since November 2004
Gold Member since Feb 2008
Top
#177974 - 02/07/07 09:01 PM Re: Not sure I understand how to backup my boards. [Re: Rick]
Gizmo Online   cat

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
 Originally Posted By: Rick
In the 7.0.x versions there is a bug in the backup where it's not backing up some of the tables on some servers. This got a bit of an overhaul for 7.1 to fix this.
bad boy, bad bad boy
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#177999 - 02/08/07 01:23 PM Re: Not sure I understand how to backup my boards. [Re: Gizmo]
luket Offline
member
Registered: 11/09/04
Posts: 191
BTW, and FWIW; I'm running Windows Server 2003 and MySQL 4.1.12-nt.
_________________________
Member since November 2004
Gold Member since Feb 2008
Top
#178009 - 02/08/07 05:24 PM Re: Not sure I understand how to backup my boards. [Re: luket]
Gizmo Online   cat

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
ahh so you won't have any of the nifty command line tools I mention, because you're not running a command line ;\) hehe
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#178014 - 02/08/07 06:47 PM Re: Not sure I understand how to backup my boards. [Re: Gizmo]
luket Offline
member
Registered: 11/09/04
Posts: 191
Yeah, MySQL ships ( even on Windows \:p ) with a command shell, so we're all good there.
_________________________
Member since November 2004
Gold Member since Feb 2008
Top
#178015 - 02/08/07 06:51 PM Re: Not sure I understand how to backup my boards. [Re: luket]
luket Offline
member
Registered: 11/09/04
Posts: 191
Also, and more importantly...

<--- this 'tongue sticking out' emote is all wrong!
It should be like "Haha! neener neener!" .. but is instead more like "I feel ill"
_________________________
Member since November 2004
Gold Member since Feb 2008
Top
#178016 - 02/08/07 06:55 PM Re: Not sure I understand how to backup my boards. [Re: luket]
luket Offline
member
Registered: 11/09/04
Posts: 191
I still like this one!
_________________________
Member since November 2004
Gold Member since Feb 2008
Top
#178017 - 02/08/07 07:43 PM Re: Not sure I understand how to backup my boards. [Re: luket]
Gizmo Online   cat

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
well, when I post most commands it's for the linux cli vs the MySQL cli ;)... Though I'm sure most of the things could probably be done through cmd im not entirely sure of the proper queries lol
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#178021 - 02/08/07 08:28 PM Re: Not sure I understand how to backup my boards. [Re: luket]
jgeoff Offline
Pooh-Bah
Registered: 08/08/06
Posts: 1922
Loc: NJ
 Originally Posted By: luket
I still like this one!


I kept a couple of the new ones, but use all my old Classic smilies on my new board.

And I REALLY miss the :/ one on this board!  
_________________________
GangsterBB.NET (Ver. 7.5.6)
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Browsers: Chrome, Firefox, & Safari (Win7 and iPhone); No IE, ever!
Top
#178028 - 02/08/07 10:38 PM Re: Not sure I understand how to backup my boards. [Re: jgeoff]
Gizmo Online   cat

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
I vote for inclusion of :/
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
Page 1 of 2 1 2 >



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Custom forum permissions
by ntdoc
05/18/12 02:07 PM
Forum Stats
10489 Members
36 Forums
33841 Topics
181698 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image