LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 842|回复: 4

用tar备份系统时的问题?

[复制链接]
发表于 2006-5-14 04:20:17 | 显示全部楼层 |阅读模式
我在用下面的命令备份系统时:
#tar -zcvfP back.tar.gz / --exclude /mnt --exclude /proc --exclude /dev --exclude /tmp --exclude /a
快完时提示如下,哪位帮看下啊,我刚开始学啊,要不让我折腾几天又坏了,又得重装啊
tar: sys/devices/platform/i8042/power/state: File shrank by 4094 bytes; padding with zeros
tar: sys/devices/platform/i8042/detach_state: File shrank by 4094 bytes; padding with zeros
tar: sys/devices/platform/vesafb0/power/state: File shrank by 4094 bytes; padding with zeros
tar: sys/devices/platform/vesafb0/detach_state: File shrank by 4094 bytes; padding with zeros
tar: sys/devices/platform/power/state: File shrank by 4094 bytes; padding with zeros
tar: sys/devices/platform/detach_state: File shrank by 4094 bytes; padding with zeros
发表于 2006-5-15 14:00:39 | 显示全部楼层
是不是应该--exclude /sys ?
/sys是kernel自动生成的。
回复 支持 反对

使用道具 举报

发表于 2006-5-15 21:57:55 | 显示全部楼层
这就是不爱用ghost的人的下场 *_^
你这样做备份不全,主要是元数据
回复 支持 反对

使用道具 举报

发表于 2006-5-15 22:48:56 | 显示全部楼层
ghost这个垃圾,,用来备份win还凑合。
linux里边,根本就不需要他。
回复 支持 反对

使用道具 举报

发表于 2006-5-16 09:04:49 | 显示全部楼层
tar和ghost/partimage/etc各有好处,不过xNix下还是做文件备份的比较多,分区备份的少。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表