MySQLDumper-Board Forum Index Follow me on Twitter

Portal  •   Forum  •  Downloads  •  Profile  •  Search   •  Register  •  Log in to check your private messages  •  Log in  •  


 How to exclude some tables?

Post new topicReply to topic
Author Message
pstefano
first backups
first backups





Joined: 21 Sep 2011
Posts: 1


blank.gif

PostPosted: 2011-09-21, 14:16    How to exclude some tables? Reply with quoteBack to top

How to exclude some tables? For example: i want all database schema without data from some tables
Thanks for help

OfflineView user's profileSend private message    
Anzeigen











Posted:    Anzeigen Back to top


    
Jens_K
Moderator
Moderator




Age: 37
Joined: 04 Sep 2007
Posts: 1710
Location: Nähe Bielefeld


germany.gif

PostPosted: 2011-09-21, 18:03    (No subject) Reply with quoteBack to top

If you exclude certain tables, your backup will not be complete.
In case you need to restore the DB, the excluded tables will be missing, resulting in a corrupt database.
That's not the purpose of MySQLDumper.

But you can work with prefixes to only backup the tables that start with the given prefix.
If you have many different prefixes, you can work with different configuration profiles where you change the prefix to the wanted value, even a whole table name so your backup will only contain that table.

Another way is to alter the backup script and hard-code into it to ommit certain tables.

_________________
It's like math-camp all over again ... not ... that i've ever been to math-camp!
mein Blog

OfflineView user's profileSend private messageVisit poster's website    
Lepas
uses MSD regulary
uses MSD regulary





Joined: 27 Aug 2008
Posts: 12


blank.gif

PostPosted: 2011-09-23, 13:29    (No subject) Reply with quoteBack to top

« Jens_K » wrote:
If you exclude certain tables, your backup will not be complete.
In case you need to restore the DB, the excluded tables will be missing, resulting in a corrupt database.
That's not the purpose of MySQLDumper.

I understand your point, but the idea to exclude certain tables is to avoid timeout errors and email size limitations in automatic backups. As far as I know, this is the more helping feature of MySQLdumper, but has a critical limitation here if it doesn't allow which tables we want to include in the auto-backups. I mean that excluding tables is not a problem because you could always set another CRON with the missing tables, maybe with a different frequency.

For example, if we run a forum site we could want a main big backup including posts and users table we could set in a daily backup; another one including search wordmatch and robots tables (these ones should be so big and unnecessary in the worst of the cases), let's say we set this auto-backup in a twice a year freq; and finally another backup with the rest of system tables (these usually are small - around 3-5MB), which we could set weekly. Thus, the "complete" backup is solved.

Quote:
But you can work with prefixes to only backup the tables that start with the given prefix.
If you have many different prefixes, you can work with different configuration profiles where you change the prefix to the wanted value, even a whole table name so your backup will only contain that table.

I guess most MySQLdumper users work with free Soft for Content and Forums, and they (we) cannot deal with the soft prefixes without causing a mess each time that an update is released.

Quote:
Another way is to alter the backup script and hard-code into it to ommit certain tables.

Since we're not programmers, we'd like to know how to do that Drool

OfflineView user's profileSend private message    
Jens_K
Moderator
Moderator




Age: 37
Joined: 04 Sep 2007
Posts: 1710
Location: Nähe Bielefeld


germany.gif

PostPosted: 2011-09-23, 16:54    (No subject) Reply with quoteBack to top

I think the idea to exclude tables might be included in the next MSD version, but a developer would have to verify that statement ...
_________________
It's like math-camp all over again ... not ... that i've ever been to math-camp!
mein Blog

OfflineView user's profileSend private messageVisit poster's website    
DSB
Developer
Developer




Age: 41
Joined: 30 Apr 2004
Posts: 16070
Location: Reichenberg bei Würzburg


germany.gif

PostPosted: 2011-09-23, 18:49    (No subject) Reply with quoteBack to top

Verified. Wink
_________________
Gruß / Greetings, DSB

Teigwaren heißen Teigwaren, weil sie Teig waren.
Diejenigen, die lautstark darüber diskutieren, warum es nicht geht, mögen bitte jene nicht stören, die es gerade tun.

OfflineView user's profileSend private messageSend e-mailVisit poster's website    
Display posts from previous:      
Post new topicReply to topic


 Jump to:   


Show permissions
Similar topics
Topic Author Forum Replies Posted
No new posts "Delete Tables Before Restoring&... HillTopsGM Errors and questions 2 2012-02-21, 19:29 View latest post
No new posts Optimize Tables before Backup HillTopsGM Errors and questions 7 2012-02-21, 08:32 View latest post
No new posts Crashing The Tables shahzeb Errors and questions 1 2011-10-30, 04:18 View latest post
No new posts Restore single table restores all tables alien_technology Errors and questions 1 2011-09-25, 01:23 View latest post
No new posts Error: No tables found in database 'n... ekrell Errors and questions 4 2011-05-04, 00:15 View latest post

 
CrackerTracker © 2004 - 2012 CBACK.de

Powered by Orion based on phpBB © 2001, 2002 phpBB Group
CBACK Orion Style based on FI Theme
All times are GMT + 2 Hours

phpBB SEO