Skip to content

Instantly share code, notes, and snippets.

@kymtwyf
Created November 15, 2015 15:10
Show Gist options
  • Save kymtwyf/46f9a880c7d22ac9acf0 to your computer and use it in GitHub Desktop.
Save kymtwyf/46f9a880c7d22ac9acf0 to your computer and use it in GitHub Desktop.
tar: file changed as we read it

tar 打包的时候提示:

tar: ___ file changed as we read it

这是因为打包的时候文件正在被修改,所以tar命令执行失败。

目前为止找到的方法只能是把原始文件拷贝一份,做一个snapshot,然后再对拷贝的目录进行压缩。。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment