Ubuntu is installed to back up files .. The Disk Utility is used to draw 20 GB from the blank space of the mechanical hard Disk, and the volume name is backup, at this time, the system will automatically mount it to/media/backup and then create a file backup under the/home directory. sh Content: 01 echo lightdm... 02 sudo service lightdm stop03echo mkdir... 04 sudo mkdir-p/media/backup/laptop_sys05echo boot... 06 sudo tar-cvpzf/media/backup/laptop_sys/boot.tar.gz/boot07echo root... 08 sudo tar-cvpzf/media/backup/laptop_sys/root.tar.gz 09 -- exclude =/sys -- exclude =/proc -- exclude =/media -- exclude =/Home10 -- exclude =/usr -- exclude =/var -- exclude =/tmp -- exclude =/boot11 -- exclude =/mnt -- exclude =/prod -- exclude =/lost + found -- exclude =/run/12 echo usr... 13 sudo tar-cvpzf/media/backup/laptop_sys/usr.tar.gz/usr14echo var... 15 sudo tar-cvpzf/media/backup/laptop_sys/var.tar.gz/var16echo home... 17 sudo tar-cvpzf/media/backup/laptop_sys/home.tar.gz -- exclude =/home/lost + found/home18echo complete then Ctrl + Alt + F1 switch to command mode cd/homechmod + x backup. shsh. /backup. sh after about a few minutes, the screen finally calmed down and the backup was successful. The list is as follows:/var/cache contains many files that do not need to be backed up... The previous attempts failed, but were stuck in the backup/sys directory and in the/proc directory. After that, the two directories that were not quite familiar were excluded and finally succeeded. After the system is cleaned up, the backup file is 600 mb smaller.