1. Backup
It can be carried out directly by tar the entire file system ( '/') backup, but there are several points to note:
i. can not back up the following files (directory)
1. The current archive
2. / proc folder
3. / lost + found folder
4. / mnt folder
5. / sys folders
6. / media folder
b)所以,命令为:tar cvpzf backup.tar.gz --exclude=/proc --exclude=/lost+found --exclude=/backup.tar.gz --exclude=/mnt --exclude=/sys --exclude=/media /
Note: p option to save the current authority on behalf of
reduction
Linux can then travel system is to restore the system, if the current startup can not start, can be started by live cd and perform recovery operations
As follows: tar xcpfz backup.tar.gz -C /
You need to create additional directory
mkdir proc
mkdir lost+found
mkdir mnt
mkdir sys