定时备份表

#定时备份表
mysqldump -uroot -pDsideaL147258369 dsideal_db t_dm_year t_dm_stage | gzip > /usr/local/software/clz_dwkw`date +%Y%m%d`.sql.gz 

mysqldump -uroot -pDsideaL147258369 dsideal_db t_teach_author t_teach_author_mainworks t_teach_chi_lesson t_teach_chi_lesson_customsimplecolumns t_teach_eng_lesson t_teach_file t_teach_file_export t_teach_relatelesson t_teach_resource t_teach_resourcerelate t_teach_scheme t_teach_wenyanword t_teach_wenyanword_meaning t_teach_wenyanword_spellingsound t_teach_word t_teach_words t_teach_wordstroke t_teach_words_antonym t_teach_words_buildsentence t_teach_words_explain t_teach_words_nearsynonym t_teach_words_spellingsound t_teach_words_synonym t_teach_word_buildsentence t_teach_word_buildwords t_teach_word_meaning t_teach_word_spellingsound  | gzip > /usr/local/software/clz_dwkw`date +%w `.sql.gz #尝试解压缩 gunzip
-d clz_dwkw20161101.sql.gz #查看内容 cat clz_dwkw20161101.sql

 

你可能感兴趣的:(定时备份表)