Ubuntu8.04 use the built-in backup tool tar to use the Ghost for System Backup

Source: Internet
Author: User
Tags wubi
On Sunday, I had a hard time tossing my computer, uninstalling Ubuntu8.04 installed in wubi, and re-installing it in LiveCD mode. Ubuntu8.04 it is easier for new users to install wubi. However, after more than a dozen days of use, when I have a little understanding of Ubuntu, I feel that the automatic partition installed with wubi is not reasonable. Use LiveCD to partition as needed and reinstall Ubuntu8.04. Setting, upgrading, and installing software is smooth. I used it for one day yesterday.

On Sunday, I had a hard time tossing my computer, uninstalling Ubuntu 8.04 installed in wubi, and re-installing it using Live CD. It is easier for new users to install Ubuntu 8.04 with wubi, but when it is used by more than a dozen angels, when I have a little understanding of Ubuntu, I feel that the automatic partitioning installed with wubi is not reasonable.

Use Live CD to partition as needed and reinstall Ubuntu 8.04. Setting, upgrading, and installing software is smooth. I used it for one day yesterday and thought that the system was not smooth, so I thought of backup. Wubi installed Ubuntu as a file system in Windows, so I can easily think of using Ghost for backup, which is really convenient, time-saving, and will not damage the Ubuntu system. The Ubuntu system installed on Live CD may not be the most suitable if you use Ghost for backup. According to some articles, Ubuntu With GRUB boot loader cannot be started after Ghost restores the partitioned image.

Ubuntu comes with the backup tool tar. According to the introduction, tar can be used to compress and Back Up Files in almost any environment.

Command: sudo tar-cvpzf/XXX/back. tgz -- exclude = A -- exclude = B/

The preceding command indicates that all other files are packed and compressed in/XXX, excluding files A and B in the current directory.

Read the tar command and start backup! My backup means that the entire system does not remove any files:

Sudo tar-cvpzf/media/DOCUMENTS/back. tgz -- exclude =/media/

Note:/media/DOCUMENTS is the E partition of my Windows system, and other Windows partitions are mounted under/media, so -- exclude =/media;

The entire backup time is 25 minutes, which is three times the time I used Ghost backup (wubi installation method), but tar can work or listen to music. After the backup is complete, a 4.2G file package of back. tgz is generated in Win's E partition. Correspondingly, my restore command:

Sudo tar-xvpzf/media/DOCUMENTS/back. tgz-C/

But I have not tried it yet. Try again later!

I think Ubuntu installed in wubi is more suitable for Ghost backup, while Ubuntu installed in Live CD of GRUB boot loader is more suitable for tar backup. However, after a while, if your Ubuntu system grows larger, the tar backup time will be too long, and unexpected problems will occur during the backup process. Therefore, experts often suggest using the tar command to back up the directory of your preparation file, such as/home/etc/var/usr/local and other useful data in these directories.

(Author: Old Man)

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.