Restore System Recovery system BACKUP System * * *
How do I back up my Ubuntu system? It's simple, like you're backing up or compressing something else, using tar. Unlike Windows, Linux does not restrict root access to anything, you can throw everything on the partition into a tar file.
Backup Step one: Open a terminal and run sudo su (enter a password after entering a carriage)
Step two: Continue to enter the CD in the terminal/(note that there is a space in the middle)
Step Three: (Start the backup system)
In the terminal, enter:
tar-cvpzf/os_backup/ubuntu14_ver0.1.tar.gz--exclude=os_backup--exclude=proc--exclude=tmp--exclude=mnt--exclude =sys--exclude=lost+found/>/dev/null
Let's take a quick look at this command:
' Tar ' is the program used to back up
C-Create a new backup document
V-verbose mode, the TAR program will output all the information in real time on the screen.
P-Save the license and apply it to all files.
Z-compress backup files with ' gzip ' to reduce the volume of backup files.
F-Describes the path to the backup file, ubuntu.tgz is the backup file name in this example.
"/" is the directory we want to back up, here is the entire file system.
A directory that must be excluded when backing up the file name "ubuntu.gz" and the Directory Name "/" to be backed up. Some directories are useless, such as "/proc", "/lost+ found", "/sys". Of course, the "ubuntu.gz" file itself has to be ruled out, or you may get some more perverse results. If "/mnt" is not excluded, the other partitions that are mounted on "/mnt" are also backed up. Also need to make sure that "/media" did not mount anything (such as CD-ROM, mobile hard disk), if there is something to mount, the "/media" must also be excluded.
Some may suggest that you exclude the "/dev" directory, but I do not think it is a good idea to do so, and the reason for this is not discussed here.
Before you perform the backup command, confirm that the command you typed is not what you want. It may take a short time to execute a backup command.
After the backup is complete, a file named "Ubuntu.tgz" will be generated at the root of the filesystem, which can be very large in size. Now you can burn it to a DVD or put it in a place where you think it's safe.
You can also use BZIP2 to compress files, Bzip2 a higher compression rate than gzip, but with a slower speed. If the compression rate is important to you, then you should use BZIP2, "J" instead of "Z" in the command, and give the file a correct extension "bz2". The complete command is as follows:
# tar CVPJF ubuntu.tar.bz2–exclude=/proc–exclude=/lost+found–exclude=/ubuntu.tar.bz2–exclude=/mnt–exclude=/sys/
Restore System Recovery system for Hu Jintao Recovery System * * * * *