Common Linux backup methods

Source: Internet
Author: User
Article Title: several common backup methods in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

System backup is a very important part of system management. This article describes in detail the backup methods of various Linux systems, and I believe it will be helpful for your daily management work.

Backup is an important task, but many people do not. Once data is lost due to improper use, backup becomes a real life-saving person. This article will discuss how to set backup policies and how to select backup media, and introduce tar and cpio tools for backup.

  Set backup policy

Setting backup policies and schedules increases the possibility of backup. Before the backup starts, determine the data to be backed up, the backup frequency, and the media used for backup. Full backup should be performed during Backup.

Backup is usually scheduled in idle time. In most systems, the minimum number of users is allowed, and the minimum number of files is allowed. Because the backup takes up some system resources, the user will find the system slow response when running the backup.

If a Linux computer has only one user, you can back up the entire system once a week or month. If there are critical files, they should be systematically copied to a removable disk.

Before backup, make sure that the backup device is correctly set. Most tape backup systems can be correctly installed. After the system starts, open a terminal window and enter the following command:

  

     
      $dmeg | less
     

Scroll through the list and find the driver for your tape system. If no driver is found, a component driver needs to be loaded.

If a Linux server is running, a backup plan is required, but this does not mean that everything is backed up every day. There are only a few items in the system that need to be backed up every day. The items to be backed up are listed below:

User Files: User Files in the/home directory are backed up every day.

Configuration File: the configuration files in the/etc and/var directories do not need to be backed up frequently. You can back up the files once a week or every month, depending on the frequency of configuration changes.

Program Files: The program files in the/usr and/opt directories rarely change. After installation, make a backup. Generally, program files can be easily recovered from the original installation disk.

  Select backup media

There are multiple options for storing backups. The following describes some optional backup media:

Floppy Disk: If you want to quickly back up important files or take them to your home, the floppy disk is still an optional backup medium.

Disc writer: As the disc writer becomes more reliable, the price is getting lower, and the disc itself is also very cheap. One advantage of this option is that the disc is not easily damaged and its backup reliability is high. There are two disadvantages to using the CD Writer: they are slow and can only be saved about 650 MB.

Rewritable disc: the rewritable disc drive is much more expensive than the disc writer and works in a similar way. However, these discs can be rewritten, and they are much more expensive than only one write. Other features of the rewritable disc are similar to those of the disc writer.

Jaz and Zip: Zip drives are popular and have become the standard configuration for many PCs, and their disks and drives are not expensive. One disk can hold MB of data, which is a good choice for fast and removable backup. The Jaz disk can accommodate GB of data and use more advanced technologies for better performance. The Jaz drive and the Jaz disk are both expensive. Both Jaz and Zip are prone to damage and the retention time is relatively short.

[1] [2] Next page

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.