Ubuntu Desktop Survival Guide (4)-Ubuntu System Backup Recovery and upgrade policy

Source: Internet
Author: User
During the initial use of the developer system, both the construction of the Ubuntu system infrastructure and the installation and configuration of various software were laborious: the developer system is a system that requires mental costs in exchange for high efficiency. Therefore, it is designed as a highly customizable and extremely free system, for the moment, you can freely configure and install the entire operating system by compiling the source code, even if most common software such as vi and emacs can be used to change the configuration file.

Ubuntu System Backup Recovery and upgrade policy

Continuing with the previous article, it was a labor-consuming process to build Ubuntu system infrastructure or install and configure various software when the developer system was initially used: the developer system is a system that requires mental costs in exchange for high efficiency. Therefore, it is designed as a highly customizable and extremely free system, not to mention that you can freely configure and install the entire operating system by compiling the source code, even if most common software such as vi, emacs and so on can play with countless operations through changing the configuration file. users need to spend time to change and try these configurations, so that the method of operating these software is best suited to their own habits, to achieve efficient purposes. Therefore, after a period of time, each Linux user will have an exclusive efficient system, and 1000 users will have 1000 exclusive efficient systems, the software and Configuration Methods installed on each system are different, and each user consumes a lot of energy and time to build this system. The loss of your own exclusive system means the loss of time and energy. For a long-term Linux User, this is especially true: the user has accumulated too much software and operation habits on this system, if a new system needs to be configured from the ground up due to system crash without any backup measures beforehand, the rest would be a disaster. This is why experienced Linux users pay attention to backup.

Ubuntu Desktop Survival Guide: Linux philosophy http://www.linuxidc.com/Linux/2012-10/73145.htm

Ubuntu Desktop Survival Guide (3) --- build Ubuntu system infrastructure http://www.linuxidc.com/Linux/2012-11/73450.htm

In this section, I will introduce the Backup Recovery and upgrade policies of the Ubuntu system based on my experience:

1. Script recovery policy-completely formatted and updated

2. Script recovery policy-retain/home partition data

3.tar full backup recovery policy

4. migrate the wubi system to the physical partition

5. Ubuntu system upgrade policy

These Backup recovery policies are not only applicable to Ubuntu. For Linux users who use other distributions, you can also refer to the following content and perform some modifications to the steps.

Script recovery policy-completely formatted and updated

One of the features of Ubuntu is that you can download the required software from your own source through the apt-get command. Therefore, you can create a script file, back up the required software by writing the common apt-get install command (see the script for saving a software installation on the cloud in the previous article ), at the same time, add some specific steps for manual intervention to the script file, such as changing the specific steps for activating the Pinyin Input Method shortcut key (most PinYin Input Methods seize ctrl + space, if not changed, developer users cannot use this shortcut key in IDE such as Eclipse to activate the smart code prompt function. For example, if you are not satisfied with the default font of Firefox, You need to replace it, these detailed steps should be recorded in this script in the form of annotations. If these steps are too cumbersome, you can find the corresponding configuration file after the configuration, save directly in D Ropbox allows you to directly restore these configurations from the cloud to your local machine. For example, if you have customized Vim behavior and installed the Vim plug-in, you only need ~ /. Vimrc ~ /. Vim backup on the cloud.

So once such a script file is created, even if you need to reinstall the system or face a new computer, you only need to execute this script file and view the comment records in the script, this ensures that the software is not lost, the configuration software steps can be restored, and important information is stored on the cloud: Dropbox (binary file), GitHub (text file, which will be detailed later ). The premise of this policy is that you must keep the habit of updating scripts frequently when using the system for future system recovery.

Advantages

This method is more suitable for migrating existing systems to a later version. For example, when migrating Ubuntu 10.04 to 12.04, after formatting the system and re-installing 12.04, you can use this script to restore the appearance of the original computer. In addition, there is a correspondence between the software version in the Ubuntu source and the Ubuntu release version (for example, the firefox version in the 10.04 source may not be updated later ), if version 12.04 is still a newer version of LTS, you can ensure that all the software versions installed with apt-get install on version 12.04 are relatively new. At the same time, if most of your configuration recovery is completed through the specific restoration steps, you will have the opportunity to check whether these steps are still applicable to the new version of the software. There will be no situations where the old software configuration cannot be applied after the new software is restored from the cloud. Of course, theoretically this is not a big problem, many well-known software in Linux respect the old habits of users and will not easily change the way they read the configuration file. In most cases, restoring the configuration of old software to the new version won't happen too much.

Disadvantages

Because the full backup method is not used, the disadvantages of this Backup recovery policy are equally obvious. Although it can ensure that the original appearance of the computer will not be lost after the upgrade, manual recovery of many software configurations still requires considerable time and effort, even if the backup policy is complete, in this way, I still spent five days on the National Day holiday when upgrading Ubuntu 10.04 to 12.04. Therefore, we recommend that you upgrade the LTS version only once every two years to ensure the new status of the computing machine.

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.