【发布时间】:2012-07-09 12:35:58
【问题描述】:
我在 SD 卡上安装了 linux,我用这个命令安装了 rootfs
tar xpjf rootfs.tar.bz -C /mnt/rootfs/
现在,我对 rootfs 进行了一些更改,并且我想创建一个可以使用上面相同命令的备份,我尝试使用:
tar cpjf rootfs.tar.bz2 /mnt/rootfs
and
tar cpjf rootfs.tar.bz2 -C / mnt/rootfs
I also tried
tar cpjf rootfs.tar.bz2 /mnt/rootfs/*
并尝试过:
cd /mnt/rootfs
tar -cvpjf rootfs.tar.bz2 --exclude=/rootfs.tar.bz2 .
tar: ./rootfs.tar.bz2: file changed as we read it
但我最终得到一个在文件系统之前有两个级别的存档,即 mnt/rootfs/files 我做错了什么?
【问题讨论】:
-
在这里得到了很好的回答:help.ubuntu.com/community/BackupYourSystem/TAR
标签: linux ubuntu disk-partitioning rootfs