Linux server Configuration and Data migration solution data sharing

Source: Internet
Author: User
Tags system log

For users migrating from the Windows system, the question of whether the system files and user files can be separated into C and D drives in a Linux system can be solved satisfactorily.

The previous article had a rough introduction to the Linux file system, but what is the use of the file system structure after understanding it? This section will focus on the field application of Linux file system-related knowledge in the context of "user-oriented data backup and migration under Linux", generating productivity.

After understanding the Linux file system, you can be bold to play the Linux file directory.

The case---"Data backup and migration based on user-perspective Linux" is described in the following scenarios:

After a new system has been installed, the data of the old system needs to be replicated or migrated, and the user needs to know what data needs to be migrated, what data needs to be backed up, and the backup and migration of the files at the lowest possible cost.

The main types of data involved are:

User Multimedia document data user/System application configuration data user/System application execution file system log data
FHS the Linux file system into four categories in terms of "mutable" and "can be shared":

Shareableunshareablestatic/usr/opt/etc/bootvariable/var/mail/var/spool/news/var/run/var/lock
The largest benchmark classification framework is shown in the table above. For people who are beginning to know Linux, it's certainly confusing to see a series of files under the root directory. Therefore, it is absolutely necessary to study the relevant provisions of FHS, which has the following advantages:

When using or developing a Linux file system, to understand the design standards of Linux, and in the use of the guidelines as far as possible in the contact and use of different Linux branches, even if there are thousands of Linux branch, but also can not leave its parcels, FHS is not one of the "parcels" at the time of system-level data migration, Can be scientifically selective migrations (for example, User Configuration data migration after a reload) when a file is physically isolated storage can be reasonably physically separated according to "File data critical level" or "potential footprint growth of the directory" in the performance optimization, depending on the frequency of read and write, Assigning different storage devices to different directories (e.g. mechanical hard drives or SSD SSDs) when deploying a system cluster, for a static shareable directory, it can be deployed on a certain read-only memory and then mounted by the required machine to avoid unnecessary storage space
Migrating the configuration and data of a Linux feature server to a new server

Solution Solutions

Migrating a Master + feature Linux server method

Requirement 1: The new and old server installed the same version of [email protected] (the most complete virtual host management system)

Requirement 2: The following example assumes that bash is used as the shell

This method, without the need to perform detection and repair from the master, can restore all data and configuration. Except for disk quota limits,

If you need to reset the disk quota limit, after recovery from the master execution of Web site detection and repair, select the "Update Normal site at the same time" option.

Linux server Configuration and Data migration solution data sharing

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.