Ubuntu备份

tar -cvpzf /media/Disk/myDisk/ubuntu_backup@`date +%Y-%m+%d`.tar.gz --exclude=/proc --exclude=/tmp --exclude=/home --exclude=/lost+found --exclude=/media --exclude=/mnt --exclude=/run /

tar -xvpzf /media/Disk/myDisk/ubuntu_backup@2016-6-6.tar.gz -C /

 

mkdir proc tmp lost+found media mnt run

 

 

 

live CD

cd /
mkdir /mnt/sys
mount /dev/sdaX /mnt/sys
tar -xvpzf /media/myDisk/ubuntu_boot_backup@2016-6-6.tar.gz -C /mnt/sys
mkdir proc tmp home lost+found media mnt run

 

posted @ 2019-07-23 11:23  ppCola  阅读(114)  评论(0编辑  收藏  举报