用tar备份ubuntu11.04时出错
我都尝试使用以下 tar 命令备份我的 ubuntu11.04
sudo tar -cvpzf /media/TOSHIBA\ EXT/backup.tar.gz --exclude=/backup.tar.gz --exclude=/lost+found --exclude=/proc --exclude=/sys --exclude=/mnt --exclude=/media --exclude=/dev --exclude=/home/manuzhang/Music --exclude=/home/manuzhang/Videos --exclude=/home/manuzhang/Pictures --exclude=/home/.aMule /
每次出现这样的失败消息时,
tar: Exiting with failure status due to previous errors <br/>
多次打包目录 /sbin 时程序退出。最后我排除了它,但它在 /root 中退出
那么是什么原因导致了这个问题呢? 有人有类似的经历吗?
非常感谢!
I've been trying to backup my ubuntu11.04 with the following tar command
sudo tar -cvpzf /media/TOSHIBA\ EXT/backup.tar.gz --exclude=/backup.tar.gz --exclude=/lost+found --exclude=/proc --exclude=/sys --exclude=/mnt --exclude=/media --exclude=/dev --exclude=/home/manuzhang/Music --exclude=/home/manuzhang/Videos --exclude=/home/manuzhang/Pictures --exclude=/home/.aMule /
every time there is such a failure message
tar: Exiting with failure status due to previous errors <br/>
the procedure exited when packaging the directory /sbin several times. Finally I exclude it, but it exited in /root
So what caused the problem?
Anyone has similar experiences?
Many thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
错误“由于之前的错误而退出并处于失败状态”的意思正是如此。之前有一个问题,虽然对程序的运行不是致命的,但足以导致退出并显示故障代码。
鉴于您是从根级别备份,这几乎肯定是因为文件由于某种原因无法备份。
去掉详细标志
-v
,您应该能够更好地看到问题。The error `"Exiting with failure status due to previous errors" means exactly that. There was an earlier problem which, while not fatal to the running of the program, is reason enough to exit with a failure code.
Given that you're backing up from the root level, this is almost certainly because a file is not able to be backed up for some reason.
Leave off the verbose flag
-v
and you should hopefully be able to see the problem better.