在使用tar命令对Mysql的数据目录进行备份打包时出现如下报错:

tar cvzf mysql.tgz mysql

/bin/tar: /path/to/mysql: file changed as we read it

解决:此方法未经实际验证,从网上查找得来http://blog.sina.com.cn/s/blog_4da051a60102x0nj.html

是因为在打包的过程中文件发生了变化,所以导致报错,但是打包依然进行并且有效。在使用tar命令时加上--warning=no-file-changed参数即可不输出报错。

 

相关文章:

  • 2021-04-23
  • 2022-12-23
  • 2021-11-13
  • 2021-12-13
  • 2022-01-11
  • 2021-11-17
猜你喜欢
  • 2022-01-18
  • 2022-01-21
  • 2021-04-01
  • 2022-02-13
  • 2022-01-15
  • 2021-05-13
  • 2022-12-23
相关资源
相似解决方案