CN117033079A - Backup reduction method based on domestic platform - Google Patents

Backup reduction method based on domestic platform Download PDF

Info

Publication number
CN117033079A
CN117033079A CN202311062409.1A CN202311062409A CN117033079A CN 117033079 A CN117033079 A CN 117033079A CN 202311062409 A CN202311062409 A CN 202311062409A CN 117033079 A CN117033079 A CN 117033079A
Authority
CN
China
Prior art keywords
data
backup
disk
information
restore
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311062409.1A
Other languages
Chinese (zh)
Inventor
王晔
刘学兵
张晓东
李玉雪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Chaoyue Shentai Information Technology Co Ltd
Original Assignee
Xian Chaoyue Shentai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Chaoyue Shentai Information Technology Co Ltd filed Critical Xian Chaoyue Shentai Information Technology Co Ltd
Priority to CN202311062409.1A priority Critical patent/CN117033079A/en
Publication of CN117033079A publication Critical patent/CN117033079A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application relates to the technical field of system safety, and discloses a backup and restoration method based on a domestic platform, which comprises the following steps: determining backup data content based on the data bitmap; opening a partition of a system disk, sorting a form according to key data during backup, and re-partitioning, formatting and restoring metadata to the disk according to the form data during restoration; reading and recording Superblock information; reading and recording inode information; reading and recording data block information; reading and recording Bitmap information; checking the correctness of Bitmap information; and determining whether the read data is written into the target position according to the correctness of the Bitmap information. The backup and restore method is simple and flexible in backup and restore operation, the program can customize the starting environment, computer data does not need to be modified, the backup and restore of the whole system is supported, the backup and restore of a single partition is supported, and multiple disk formats can be supported.

Description

Backup reduction method based on domestic platform
Technical Field
The application relates to the technical field of system safety, in particular to a backup and restoration method based on a localization platform.
Background
Because the domestic server has the special use scene and the operating system version of the domestic platform is more, related units can take different backup reduction measures aiming at respective service environments, so that the backup reduction technology of the domestic platform is in a state of being camping for a long time and has no universality.
In the process of implementing the embodiments of the present disclosure, it is found that at least the following problems exist in the related art:
currently, most open-source backup tools are specific to a specific scene, and require operators to have strong expertise, which is time-consuming and labor-consuming.
It should be noted that the information disclosed in the above background section is only for enhancing understanding of the background of the application and thus may include information that does not form the prior art that is already known to those of ordinary skill in the art.
Therefore, a person skilled in the art provides a backup and restore method based on a localization platform to solve the problems set forth in the background art.
Disclosure of Invention
The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview, and is intended to neither identify key/critical elements nor delineate the scope of such embodiments, but is intended as a prelude to the more detailed description that follows.
The embodiment of the disclosure provides a backup and restore method based on a domestic platform, which aims at solving the problems that most of current open-source backup tools are aimed at specific scenes, and an operator is required to have stronger professional knowledge, so that time and labor are wasted.
In some embodiments, the backup reduction method based on the localization platform includes:
determining backup data content based on the data bitmap;
opening a partition of a system disk, sorting a form according to key data during backup, and re-partitioning, formatting and restoring metadata to the disk according to the form data during restoration;
reading and recording Superblock information;
reading and recording inode information;
reading and recording datablock information;
reading and recording Bitmap information;
checking the correctness of Bitmap information;
and determining whether the read data is written into the target position according to the correctness of the Bitmap information.
Optionally, the step of arranging forms according to the key data during backup includes filling all required key data blocks into a preset form, wherein the preset form classifies and arranges disk metadata, partition attribute data and file storage attributes in a disk, the form data includes disk attribute backup contents and file storage contents, and the disk attribute backup contents include partition tables, mounting tables, partition block equipment bitmaps and other data; the file storage content comprises file content, file names, authority data, attribute data, data bitmaps and inode table data.
Optionally, the checking the correctness of the Bitmap information, and determining whether the read data is written to the target location according to the correctness of the Bitmap information includes: judging whether the value of the Checkbitmap is 1; if the value of the Check bit is not 1, executing a UnusedBlock instruction, returning to the previous step, and judging whether the value of the Check Bitmap is 1 again; if the value of the Checkbit is 1, the read disk data is read, and the read disk data is written into the target position.
Optionally, the determining backup data content based on the data bitmap includes: and judging whether user data exists in the data block based on the data bitmap, backing up the user data when the user data exists, and backing up the attribute information of the bit when the user data does not exist.
In some embodiments, the disclosure further provides a backup and restore system based on a localization platform, which is configured to execute the foregoing backup and restore method based on the localization platform, where the backup and restore system includes a core parsing program layer, a user interaction control program layer, and a LiveCD manufacturing layer:
a core parsing program layer for parsing disk layer information including disk metadata, overall disk description information, partition and file system metadata, file system user data and grub information,
the user interaction control program layer is used for receiving the data of the core analysis program layer, performing user interaction operation and executing reading and storing actions of the data;
the LiveCD manufacturing layer is used for manufacturing an operating system mirror image which can be guided on the domestic platform, and the data is automatically backed up and restored by running backup restoring software after the mirror image is started.
Optionally, the core parsing program layer includes an overall parsing module, a disk parsing module and a file system parsing module: the whole analysis module is configured to analyze the disk list, EFI disk information and grub information; the disk analyzing module is configured to analyze the metadata of each disk; and the file system analysis module is configured to analyze metadata of a file system in the disk.
Optionally, the user interaction control program layer comprises a partition management module, a disk management module and a network management module, wherein the partition management module is used for partition discovery management, partition file system type management and partition selection management; the disk management module is used for disk discovery management, disk selection management and disk capacity judgment; the network management module is used for NFS server discovery management and configuration management.
Optionally, the LiveCD production layer includes an EFI program file loaded and run by UEFI firmware, a grub file read and analyzed by EFI bootloader, a kernel file loaded and run by EFI bootloader, a ramdisk file loaded and run by EFI bootloader, and a root file system including backup restore software context dependencies.
The backup and restoration method and system based on the localization platform provided by the embodiment of the disclosure can realize the following technical effects:
1. the application provides a backup and restore method based on a domestic platform, which is characterized in that key data of a system disk are arranged into a form, read-write interfaces of backup and restore are unified, the backup and restore interfaces are unified upwards for a user layer to call, inconsistency of a bottom file system is shielded from user states, a set of user state adaptation library is downwards designed for a kernel module of each file system, the packaged function library interacts with the bottom file system to complete reading and writing of data of different partitions, and then the read data is compressed and packaged into a target format mirror image by an upper control program and stored in a target position.
2. The method has the advantages of abundant application scenes, simple and flexible backup and restore operation, self-defined starting environment of programs such as USB, CD/DVD, network equipment and the like, no need of modifying computer data, support of backup and restore of the whole system, support of backup and restore of single partition, and abundant supported disk formats, such as: the common file systems such as file systems ext2, ext3, ext4, xfs, jfs and the like supporting GNU/Linux are wider in applicability.
3. The application provides a backup and restore method based on a domestic platform, which does not adopt a one-to-one full data cloning mode, but backups and restores according to demands, thus ensuring the integrity of data and improving the efficiency of data backup and restore, and simultaneously improving the speed of backup and restore.
The foregoing general description and the following description are exemplary and explanatory only and are not restrictive of the application.
Drawings
One or more embodiments are illustrated by way of example and not limitation in the figures of the accompanying drawings, in which like references indicate similar elements, and in which like reference numerals refer to similar elements, and in which:
FIG. 1 is a flow chart of a backup and restore method based on a localization platform;
FIG. 2 is a diagram of the whole backup restoration system based on the localization platform;
FIG. 3 is a block diagram illustrating the structure of the file system type adaptation technique according to the present application.
Detailed Description
So that the manner in which the features and techniques of the disclosed embodiments can be understood in more detail, a more particular description of the embodiments of the disclosure, briefly summarized below, may be had by reference to the appended drawings, which are not intended to be limiting of the embodiments of the disclosure. In the following description of the technology, for purposes of explanation, numerous details are set forth in order to provide a thorough understanding of the disclosed embodiments. However, one or more embodiments may still be practiced without these details. In other instances, well-known structures and devices may be shown simplified in order to simplify the drawing.
The terms first, second and the like in the description and in the claims of the embodiments of the disclosure and in the above-described figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe embodiments of the present disclosure. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion.
The term "plurality" means two or more, unless otherwise indicated.
In the embodiment of the present disclosure, the character "/" indicates that the front and rear objects are an or relationship. For example, A/B represents: a or B.
The term "and/or" is an associative relationship that describes an object, meaning that there may be three relationships. For example, a and/or B, represent: a or B, or, A and B.
The term "corresponding" may refer to an association or binding relationship, and the correspondence between a and B refers to an association or binding relationship between a and B.
It should be noted that, without conflict, the embodiments of the present disclosure and features of the embodiments may be combined with each other.
Examples:
referring to fig. 1, an embodiment of the present disclosure provides a backup and restore method based on a localization platform, including the following steps:
(1) Determining backup data content based on the data bitmap;
(2) Opening a partition of a system disk, sorting a form according to key data during backup, and carrying out operations such as partition, formatting, metadata restoration and the like on the disk according to form data during restoration;
(3) Reading and recording Superblock information;
(4) Reading and recording inode information;
(5) Reading and recording data block information;
(6) Reading and recording Bitmap information;
(7) Checking the correctness of Bitmap information;
(8) And determining whether the read data is written into the target position according to the correctness of the Bitmap information.
Optionally, in the on-demand backup and restore process, the form is arranged according to the key data during backup, including filling all required key data blocks into a preset form, and classifying and arranging the disk metadata, partition attribute data and file storage attributes in the disk by the preset form.
Optionally, the form data includes two major types of contents, namely disk attribute backup contents and file storage contents, where the disk attribute backup contents mainly include: partition table, mounting table, partition block equipment bitmap and other data; the file storage content mainly comprises: file content, file name, rights, attributes, data bitmaps, inode tables, and the like.
Optionally, checking the correctness of the Bitmap information, and determining whether the read data is written to the target location according to the correctness of the Bitmap information includes:
judging whether the value of the Check Bitmap is 1 or not;
if the value of the Check bit is not 1, executing a Unused Block instruction, returning to the previous step, and judging whether the value of the Check Bitmap is 1 again;
if the value of the Checkbit is 1, the read disk data is read, and the read disk data is written into the target position.
Optionally, determining the backup data content based on the data bitmap includes:
determining whether there is user data in the data block based on the data bitmap,
when user data exists, the user data is backed up,
when there is no user data, the attribute information of the bit is backed up.
Optionally, as shown in fig. 3, in the on-demand backup restoration process, in order to unify the read-write interface of backup restoration, a file system type self-adaptive technology is developed, in this technology, modular design is performed, the unified backup restoration interface is upwards provided for a user layer to call, a set of user state adaptive libraries are downwards designed for kernel modules of each file system from the user state to shield the inconsistency of the underlying file system, the packaged function libraries interact with the underlying file system to complete the reading and writing of different partition data, then the read data is compressed and packaged into a target format mirror image by an upper control program, and is stored in a target position, and the file system type self-adaptive technology comprises a user state and a kernel state, wherein a partition size module, a control module and a plurality of kernel interface library modules are arranged in the user state, and kernel state internal kernel vfs general modules, xfs modules, ext2/3/4 modules, fat32 modules, vfat modules, disk drive modules and the like are arranged in the kernel state.
As shown in fig. 2, the present disclosure further provides a backup and restore system based on a localization platform, which is configured to execute the foregoing backup and restore method based on the localization platform, where the backup and restore system includes a core parsing program layer, a user interaction control program layer, and a LiveCD manufacturing layer.
A core parsing program layer for parsing disk layer information including disk metadata, overall disk description information, partition and file system metadata, file system user data and grub information,
the user interaction control program layer is used for receiving the data of the core analysis program layer, performing user interaction operation and executing reading and storing actions of the data;
the LiveCD manufacturing layer is used for manufacturing an operating system mirror image which can be guided on the domestic platform, and the data is automatically backed up and restored by running backup restoring software after the mirror image is started.
The disk layer contains disk metadata, overall disk description information, partition and file system metadata file system user data and grub information.
Optionally, the user interaction control program layer uses a character interface program to perform user interaction operation and execute specific reading and saving actions, including a partition management module, a disk management module and a network management module.
The partition management module is used for partition discovery management, partition file system type management and partition selection management.
The disk management module is used for disk discovery management, disk selection management and disk capacity judgment.
The network management module is used for NFS server discovery management and configuration management.
Optionally, the LiveCD creation layer automatically runs backup restore software after the image is started by creating an operating system image bootable on the domestic platform, including an EFI program file loaded and run by UEFI firmware, a grub file read and analyzed by EFI bootloader, a kernel file loaded and run by EFI bootloader, a ramdisk file loaded and run by EFI bootloader, and a root file system including backup restore software context dependencies, such as: init, squashfs, etc.
The embodiment of the disclosure provides a backup and restore method based on a domestic platform, which has rich application scenes, simple and flexible backup and restore operation, and can customize a starting environment such as USB, CD/DVD, network equipment and the like by a program without modifying computer data, thereby supporting the backup and restore of the whole system and the backup and restore of a single partition, and supporting a very rich disk format, such as: the common file systems such as file systems ext2, ext3, ext4, xfs, jfs and the like supporting GNU/Linux are wider in applicability.
The embodiment of the disclosure provides a backup and restore method based on a domestic platform, which does not adopt a one-to-one full data clone mode, but backups and restores according to needs, thus ensuring the integrity of data and improving the efficiency of data backup and restore.
The above description and the drawings illustrate embodiments of the disclosure sufficiently to enable those skilled in the art to practice them. Other embodiments may include structural and other modifications. The embodiments represent only possible variations. Individual components and functions are optional unless explicitly required, and the sequence of operations may vary. Portions and features of some embodiments may be included in, or substituted for, those of others. The embodiments of the present disclosure are not limited to the structures that have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (8)

1. The backup and restoration method based on the localization platform is characterized by comprising the following steps:
determining backup data content based on the data bitmap;
opening a partition of a system disk, sorting a form according to key data during backup, and re-partitioning, formatting and restoring metadata to the disk according to the form data during restoration;
reading and recording Superblock information;
reading and recording inode information;
reading and recording datablock information;
reading and recording Bitmap information;
checking the correctness of Bitmap information;
and determining whether the read data is written into the target position according to the correctness of the Bitmap information.
2. The backup and restore method based on the localization platform of claim 1, wherein,
the step of arranging forms according to the key data during backup comprises filling all required key data blocks into a preset form, classifying and arranging disk metadata, partition attribute data and file storage attributes in a disk by the preset form,
the form data comprises disk attribute backup contents and file storage contents, wherein the disk attribute backup contents comprise data such as partition tables, mounting tables, partition block equipment bitmaps and the like; the file storage content comprises file content, file names, authority data, attribute data, data bitmaps and inode table data.
3. The backup and restore method based on a localization platform according to claim 1, wherein the checking the correctness of the Bitmap information, and determining whether to write the read data into the target location according to the correctness of the Bitmap information, comprises:
judging whether the value of the Check Bitmap is 1 or not;
if the value of the Check bit is not 1, executing a Unused Block instruction, returning to the previous step, and judging whether the value of the Check Bitmap is 1 again;
if the value of the Checkbit is 1, the read disk data is read, and the read disk data is written into the target position.
4. The backup-restore method based on a localization platform of claim 1, wherein determining backup data content based on the data bitmap comprises:
determining whether there is user data in the data block based on the data bitmap,
when user data exists, the user data is backed up,
when there is no user data, the attribute information of the bit is backed up.
5. A backup-restore system based on a localization platform for performing the backup-restore method based on a localization platform as claimed in any one of claims 1 to 4, the backup-restore system comprising:
a core parsing program layer for parsing disk layer information including disk metadata, overall disk description information, partition and file system metadata, file system user data and grub information,
the user interaction control program layer is used for receiving the data of the core analysis program layer, performing user interaction operation and executing reading and storing actions of the data;
the LiveCD manufacturing layer is used for manufacturing an operating system mirror image which can be guided on the domestic platform, and the data is automatically backed up and restored by running backup restoring software after the mirror image is started.
6. The backup-restore system of claim 5, wherein the core parser layer comprises:
the whole analysis module is configured to analyze the disk list, EFI disk information and grub information;
the disk analyzing module is configured to analyze the metadata of each disk;
and the file system analysis module is configured to analyze metadata of a file system in the disk.
7. The backup-restore system of claim 5, wherein the user-interactive control program layer comprises:
the partition management module is used for partition discovery management, partition file system type management and partition selection management;
the disk management module is used for disk discovery management, disk selection management and disk capacity judgment;
and the network management module is used for NFS server discovery management and configuration management.
8. The backup-restore system of claim 5, wherein the LiveCD production layer comprises an EFI program file loaded by UEFI firmware for execution, a grub file read and analyzed by EFI bootloader, a kernel file loaded by EFI bootloader for execution in memory, a ramdisk file loaded by EFI bootloader for execution in memory, and a root file system containing backup-restore software context dependencies.
CN202311062409.1A 2023-08-22 2023-08-22 Backup reduction method based on domestic platform Pending CN117033079A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311062409.1A CN117033079A (en) 2023-08-22 2023-08-22 Backup reduction method based on domestic platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311062409.1A CN117033079A (en) 2023-08-22 2023-08-22 Backup reduction method based on domestic platform

Publications (1)

Publication Number Publication Date
CN117033079A true CN117033079A (en) 2023-11-10

Family

ID=88631485

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311062409.1A Pending CN117033079A (en) 2023-08-22 2023-08-22 Backup reduction method based on domestic platform

Country Status (1)

Country Link
CN (1) CN117033079A (en)

Similar Documents

Publication Publication Date Title
CN111625401B (en) Data backup method and device based on cluster file system and readable storage medium
CN110531940B (en) Video file processing method and device
US9830137B2 (en) Installation of software onto a computer
JP3109054B2 (en) Error recovery subsystem and error recovery method
US6820214B1 (en) Automated system recovery via backup and restoration of system state
US6851073B1 (en) Extensible system recovery architecture
CN103077043B (en) A kind of method of quick Start-up and operating performance Linux
US10761816B2 (en) Method and system for determining interface compatibility based on component model
KR19980051323A (en) A bootable data cdrom disc manufacturing system, a method of manufacturing the same, and a cdrom disc manufactured thereby
US10346150B2 (en) Computerized system and method for patching an application by separating executables and working data using different images
CN1193775A (en) Soft read-only storage (ROS)
CN102650938A (en) Management method for log system and log system
CN106502830B (en) A kind of method for restoring system backup based on Btrfs file system
CN113641394A (en) Differential upgrading method for multi-operating-system equipment
CN115576903B (en) File system construction method, computing device and storage medium
CN117033079A (en) Backup reduction method based on domestic platform
CN114020541B (en) Backup data display method, device, equipment and storage medium
CN114816470A (en) Metadata database management method and device, electronic equipment and medium
CN114510375A (en) Flash chip data area dynamic sharing system and method
CN114924914A (en) Disk partition table information backup and recovery method and system
US7024493B1 (en) Bootable CD for transferring files independently of computer operating systems
US20090105999A1 (en) Method, apparatus, and computer program product for implementing importation and converging system definitions during planning phase for logical partition (lpar) systems
US20030041281A1 (en) Data analysis system
CN115840737B (en) Separated log management method and system based on database
CN111611107A (en) Method and device for acquiring database logs

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination