Ubuntu is installed to back up files .. The DiskUtility is used to draw 20 GB from the blank space of the mechanical hard disk, and the volume is named backup, at this time, the system will automatically mount it to/media/backup and then create a file under the/home directory... 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.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.