Linux backup method

Source: Internet
Author: User
Linux backup method-general Linux technology-Linux technology and application information. For details, refer to the following section. Original: Tri-lapels

As we all know, windows has a classic backup tool ghost, so how does linux back up it? This problem was plagued when I first used gentoo, because I had no experience, I had to crash the system, and I had no ability to solve the problem. In addition, the installation of gentoo was time-consuming, so it's always a headache.

Later, under the guidance of su100, I finally found a good way, that is, tar. Tar is a well-known packaging, compression, and archiving tool. It is also a backup tool for many old birds. Take my gentoo system as an example to explain the Detailed backup process (which is actually very simple ).

1. Delete unnecessary items to keep the original system clean. In the gentoo system, you can delete the portage for several hundred megabytes! Delete some temporary files, such as/tmp and/var/tmp. It is best to move some large audio and video files to the fat partition.

2. start with livecd and mount/partition first. Here I am mount/dev/hda8/mnt/gentoo, enter the/mnt/gentoo directory, and execute tar cvjfp backup.tar.bz2 *, after a long wait (depending on the size of the original system), your backup package is complete. You can move it to the backup location to prevent unexpected events.

3. when you need this backup to restore the system, use livecd to start, Mount/partition, and enter/mnt/gentoo. Run rm-rf * first *, delete all problematic systems, move or copy the backup files to the current directory, and run tar xvjfp backup.tar.bz2 to restore the system ".

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.