Some findings and problems of Fedora Core 2 system backup
As a new Linux new hand from Windows, we are most worried about what often happening is that we chaos the settings, and the homogeneous reload system is resolved. It is even more helpless that the reinforcing process of the Linux system is very long. Therefore, we have naturally thought of the system's backup and recovery.
There are many excellent system backups and recovery software under Windows, and the features are very complete, and a bull is expensive in Linux. Under Windows, a backup software GHOST2003 has the ability to back up the Linux ext2 file system, but most of the Linux system installed in the last four years is based on EXT3 file system. I use Ghost2003 to try, even if the EXT2 format is backed up, it is actually EXT3. Format file system. The backup process is slow, but how much is still completed, but it has a problem when it is restored. In GHOST2003, the Linux partition (including a variety of formats) is gray, unable to select, so you can not recover.
So I interviewed N multi-page online, the result is recommended to use a tape backup tool TAR. This is also an archive tool that is contained in each Linux system, and there is everywhere as VI. If you have this good thing, you can use our way to see the use of TAR.
1. Backup, for simplification, we only provide system backup and recovery-related Tar usage, please check with Manual. This command is used to back up all files in the current folder to a.tgz, and the backup process includes subfolders, and the backup file is compressed. TAR CZVF a.tgz *
2. Restore, restore the files in A. TGZ to the current folder, and encounter the same name file directly override. TAR Xzvf a.tgz
3. View the list of compressed files in the A.TGZ file. Tar Tzvf a.tgz
The extensions used here. TGZ is not required under Linux systems, but in order to easily identify and adapt to Windows users, it is still a good time. This extension is the original.tar.gz extension abbreviation, meaning is to use GZIP compression after archiving with TAR.
Is this enough? Not yet, like Windows, Linux is running, many files are open, so there is no way to back up and recover at all, so you need to make a label. Operation under the boot disk, backup and recovery. Of course, Fedora Core 2 is directly prepared for system failure repair, without homemade.
Alternatively, you need to select a directory and file that you need to back up, this section is related to RH Linux Fedora Core 2. Performing LS -A on / down can see all folders and files under the root directory system. As follows:. .. bin boot foundc Home Initrd Lib Lost FoundMisc MNT OPT Proc Rootsbin Selinux Sys TMP USRVAR .AUTOMOUNT .AUTOFSCK.FONTS.CACHE-1 where .automount is a hidden folder, which is empty. .autofsck and .fonts.cache-1 are hidden files. When backed up, there are some folders to be excluded, as where the data is not used, or will cause access errors or recursive access. These folders are as follows:
/ MNT, this folder is mounted in other partitions. Generally, we are backup to this partition, so if you include recursive access, your backup file suddenly doubles.
/ Proc, this folder is a process related information that holds the runtime, there is no necessary necessary, and occupies a space of 200MB or more. / usr, this is to see your personal hobby. In some professional installations, this folder is placed in a dedicated read-only partition, which is huge, and does not modify in long-term operation. So, I personally think that you don't have to back up. Moreover, about 85% of space in my installation method is taken up by him. If you do not back up this folder, my backup file is reduced by 3.4GB to 300MB, watching this data, I think you will have an idea to back up.
In addition, some empty folders are removed, my actual backup list is as follows: bin boot dev etc homelib root sbin var .fonts.cache-1
Now you can follow the folders in this list, and compress each .tgz file, save these .tgz files. The recovery is also copied to each folder in turn, and then extract the source file.
If you don't like this way of backup / recovery in turn, you can use the following command backup system. The generated backup file is all.tgz. Note, perform TAR CZVF all.tgz / bin / * / * / * / * / * / * / * / * / * / * / * / *. FONTS.CACHE-1
Hey, fish and bear's pauses are not part of it. If you are willing to enter such a disgusting order. Of course, it will be much simpler when recovered. Tar xzvf all.tgz is of course following the / folder. For empty folders, you can generally don't need to pay attention to it.
My problem, including the following: 1, what is the stuff in the initrd folder, why is there any content during the system, but when accessing under another Linux system is an empty folder?
2, TMP is a temporary folder, I didn't include it in my backup list, I don't know if there is any problem?
3, the SYS folder is dry, I will not be able to back up the files even in another Linux system.
4. I found a lot when you back up the root folder. The file or folder starting is hidden. I haven't backed up in the backup file in the backup file, how to add them to the backup file. These files include small penguin input method Fcitx configuration folder .fcitx.
The first installation of Linux is RH Linux 8 a year ago, and the truly begins to care about the time in the last month. Because it is a bit programming, it is more fast, and I have successfully solved several problems. The backup and recovery problem of this system is not solved, some discovery in the exploration is written above. Question, I always rely on others' inertia, so which master knows that I hope I will give me. Thank you, thank you. Personal network fee limited, thank you email contact: Gashero@163.com