dbTalk Databases Forums  

Backup a part of a table

comp.databases.mysql comp.databases.mysql


Discuss Backup a part of a table in the comp.databases.mysql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default Backup a part of a table - 07-17-2006 , 03:47 AM






Hello,

what is the recommendet way to backup only the rows of a single table
that have i.e. a timestamp older than 5 months?

Thanks!

Regards,

Martin O.


Reply With Quote
  #2  
Old   
Bill Karwin
 
Posts: n/a

Default Re: Backup a part of a table - 07-17-2006 , 12:37 PM






mo (AT) ekontrol (DOT) com wrote:
Quote:
what is the recommendet way to backup only the rows of a single table
that have i.e. a timestamp older than 5 months?
mysqldump [options] --where="timestampcolumn < CURDATE() - INTERVAL 5
MONTH" databasename tablename

Regards,
Bill K.


Reply With Quote
  #3  
Old   
AT
 
Posts: n/a

Default Re: Backup a part of a table - 07-21-2006 , 06:54 AM



Thank you all for the answears. I will try with mysqldump ...
--where...

Regards,

Martin


Reply With Quote
Reply




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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.