备份系统:
cd /mnt
tar -cvpjf /mnt/hbnhbnhbn/backup.tar.bz2 --exclude=hbnhbnhbn *
还原系统:
tar -xvpjf /media/xxx/backup.tar.bz2 -C /tmp/root
备份MBR:
dd if=/dev/sda of=/tmp/mbr bs=1048576 count=1
快速
tar cvpzf backup.tgz / --exclude=/proc --exclude=/lost+found --exclude=/backup.tgz --exclude=/mnt --exclude=/sys
高品质
tar cvpjf backup.tar.bz2 / --exclude=/proc --exclude=/lost+found --exclude=/backup.tar.bz2 --exclude=/mnt --exclude=/sys