备份系统时候出现错误

今天备份一个centos系统,使用指令

tar cvpzf centos.tar.gz --exclude=/centos.tar.gz --exclude=/lost+found --exclude=/media /

tar的输出太快了,要仔细看其中的输出的话,利用重定向将输出导入文件,可以将正确输出和错误输出导入同一个文件中,指令如下:

tar cvpzf centos.tar.gz --exclude=/centos.tar.gz --exclude=/lost+found --exclude=/media / >tar.log 2>&1

打包完成之后,看tar的输出,出现了如下错误:

第一种:
 tar: /sys/module/rfcomm/sections/.data: File shrank by 4077 bytes; padding with zeros

第二种: tar: /sys/devices/xen/console-0/uevent: Cannot open: Permission denied

第三种:
tar: /proc/23/exe: Cannot readlink: No such file or directory

最后打包完成之后显示如下信息:
tar: Error exit delayed from previous errors

第二种错误,是没有权限的问题,看了一下,是这个问题。

别的错误目前还不知道啥问题。等搞定了在回来记录

原文地址:https://www.cnblogs.com/cyttina/p/2862719.html