tar cvjf Kernel_3.0.8_TQ210_for_Linux_v2.1_20151204.tar.bz2 --exclude=Kernel_3.0.8_TQ210_for_Linux_v2.1/SI --exclude="*.cmd" --exclude=".tmp*" --exclude="*.symvers" --exclude="*.o" --exclude="*.ko" --exclude="*.order" --exclude="*.pzip" --exclude vmlinux --exclude zImage.bin Kernel_3.0.8_TQ210_for_Linux_v2.1
以下可选:
--exclude vmlinux -exclude zImage.bin
--exclude="*vmlinux" --exclude="*Image" -exclude="*zImage.bin" -exclude="*zImage"
不要排除map文件
备份ubuntu系统:
tar cvjf /opt/backup/bak.tar.bz2 / --exclude=opt --exclude=home/richard_bak --exclude=home/flyer --exclude=home/tom --exclude=home/lost+found --exclude=mnt --exclude=proc --exclude=lost+found --exclude=sys --exclude=media --exclude=dev --exclude=tmp
阅读(1522) | 评论(0) | 转发(0) |