Home  >  Article  >  Database  >  Linux自动备份MySQL数据库_MySQL

Linux自动备份MySQL数据库_MySQL

WBOY
WBOYOriginal
2016-06-01 13:53:47701browse

  MySQL定期备份是一项重要的工作,但人工操作太繁琐,也难避免有所疏漏,使用下面的方法即可让系统定期备份数据。

  1、创建备份文件夹

  #cd /www

  #makedir backup

  2、编写运行脚本

  #vi autobackup

  写入以下内容:

  filename=`date +%Y%m%d`

  mysql_bin_dir/mysqldump

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn