LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-06-2006, 08:52 PM   #1
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Rep: Reputation: 30
MySQL:: backup entire databse but with selected tables structure only using mysqldump


Hi guys,

I have been using mysqldump to backup my entire database but recently I need to backup this particular database but for one of its table, I just need the structure. That table holds temp data and its huge! (3GB+)

Initially I used --ignore-table=db_name.tbl_name but that totally ignore the table.

There's an option which does not write any rows informations from the table, and that is --no-data, -d but it doesn't seem to accept values to specify which tables...

currently my statement is as such

mysqldump -uxxx -pyyy -B -opt database | gzip -9 > file.sql.gz

How can I use --no-data, -d within the same line so that I can backup the entire dB with the rows information but yet just only backup the structure for one of the table?

thanks guys!
 
Old 11-07-2006, 02:38 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Browse to zmanda.com and check out their mysql-zrm backup solution which is free for MySQL. It gives you the options to select and configure backups with the ability to select distinct databases and tables, etc.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to copy an entire directory structure except certain files? thanhvn Programming 9 01-27-2012 11:41 AM
mysqldump vs ndb_mgm online backup hueofwind Linux - Software 1 06-20-2006 08:14 PM
xgettext: How to parse entire directory structure (dirs/subdirs) Muffe Linux - Software 1 04-28-2006 09:52 AM
Automatic backup program/script for selected directories JonathonReinhart Linux - Software 14 03-10-2006 09:33 PM
mysqldump - backup *.* bpk Linux - Newbie 1 03-29-2004 04:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration