Members: 16,996
Threads: 38,846
Posts: 159,391
Online: 21

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse

Go Back   Mambers.com > Archive > Mambo 4.5 > Mambo 4.5 'How Do I' Questions

 
 
LinkBack Thread Tools Display Modes
Old 19.07.2004, 09:41   #1 (permalink)
Mamber
 
Join Date: Jul 2004
Posts: 57
sacr0 is on a distinguished road
Exclamation Large Database Restore / Backup - Workaround

As I have had to move a site to other hosting I have had to overcome the backup / restore problem that mambo has, and for that matter phpAdmin.
This thread assumes that you can access your 'Administration Area' of your Mambo and you understand a little Sql.

My database is 12mb. 11.9mb of that is the table 'mos_content'. Backing this up from mambo is impossible and restoring via Mambo or phpAdmin times me out or errors or both :P

Via phpAdmin, backup the table 'mos_content' to a your hard drive as mos_content.sql

Via phpAdmin backup the rest of the tables to your hard drive. Yes as sql as well.

upload the backup of the rest of the tables to your new mambo '/administrator/backups/'

open 'mos_content.sql' in notepad. using notepad create 2 more text files called 'mos_content-x' and 'mos_content-y'

Copy half to each text file with the first half in x and the second in y.

Rename both with sql extensions and upload them to the new mambo '/administrator/backups/' folder.

Now you can restore your db's from the 'System -> Restore' area of your Administration Area in Mambo.

This worked for me with the 'mos_content' table split into 2 (approx 6mb) pieces. If you still have problems try smaller pieces. Around 4mb.
Maybe this workaround will give developers some ideas on somehow possibly splitting the backups into 4->5mb chunks and then Mambo wouldn't have to stress with a growing, single, 'mos_content' table.

Hope this helps someone
sacr0 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Old 19.07.2004, 09:54   #2 (permalink)
Junior Mamber
 
Kymberly's Avatar
 
Join Date: Apr 2004
Location: Venice Beach, Ca
Posts: 28
Kymberly is on a distinguished road
Heart Re: Large Database Restore / Backup - Workaround

Just an added note, if you have ssh access to the site you could use the <scp> command the retrieve & restore the site.

You may also querry the db with mysqldump,

mysqldump -u db_username -p db_name > /path/to/backup.sql

to retrieve, to restore simply

mysql -u db_username -p db_name < /path/to/backup.sql

Hope this helps someone
Kymberly is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Database Backup sahnecracker Mambo 4.5 Allgemein 5 11.05.2004 12:08
backup database faina Problematiche generali 1 29.04.2004 01:15
restore database faina Problematiche generali 0 19.04.2004 19:08


All times are GMT +2. The time now is 06:12.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.