CN109669808A - A kind of method and apparatus of system backup - Google Patents

A kind of method and apparatus of system backup Download PDF

Info

Publication number
CN109669808A
CN109669808A CN201710963942.3A CN201710963942A CN109669808A CN 109669808 A CN109669808 A CN 109669808A CN 201710963942 A CN201710963942 A CN 201710963942A CN 109669808 A CN109669808 A CN 109669808A
Authority
CN
China
Prior art keywords
container
mirror image
backup
host
docker mirror
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
CN201710963942.3A
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.)
China Mobile Communications Group Co Ltd
China Mobile Suzhou Software Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Suzhou Software 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 China Mobile Communications Group Co Ltd, China Mobile Suzhou Software Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201710963942.3A priority Critical patent/CN109669808A/en
Publication of CN109669808A publication Critical patent/CN109669808A/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/1448Management of the data involved in backup or backup restore
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45575Starting, stopping, suspending or resuming virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention discloses a kind of method and apparatus of system backup, for improving the efficiency of system backup.Wherein the method for system backup includes: to obtain target container engine Docker mirror image;Wherein, the target Docker mirror image be used for start container and for provide container operation the integration environment, when container operation when run backup process script operational order;The target Docker mirror image is run, container is started;The operational order is executed, the backup process script is run under the integration environment of the container of starting, realizes and the device systems connecting with host is backed up;Wherein, host is the equipment for running container.

Description

A kind of method and apparatus of system backup
Technical field
The present invention relates to field of communication technology, in particular to a kind of method and apparatus of system backup.
Background technique
Currently, the common method of system backup is to carry out system backup by GHOST disk or counted based on file system According to backup.The backup of GHOST disk is by means of External memory equipment, such as the system that leads into of CD or USB flash disk restores mould Formula is backed up, i.e., also needs to use other storage equipment in backup procedure.Equipment if necessary to backup is more, it is necessary to transport Dimension implementation personnel back up by platform, that is, O&M implements what personnel needed to back up External memory equipment in different needs It is switched between equipment, causes deployment progress of implementation slow, the efficiency of system backup is lower.
And when carrying out data backup based on file system, it can only guarantee that data of the system under proper functioning condition are not lost It loses, if system occurs collapse or system disk damage, the data of file system and can also lose.Work can only be passed through at this time Personnel reinstall system, then import the data of loss and restored, and recovery time is longer, and the efficiency of system backup is lower.
As it can be seen that the efficiency of system backup at present is lower.
Summary of the invention
The embodiment of the present invention provides a kind of method and apparatus of new system backup, for improving the efficiency of system backup.
In a first aspect, one embodiment of the invention provides a kind of method of system backup, the method for the system backup includes:
Obtain target container engine Docker mirror image;Wherein, the target Docker mirror image is for starting container and use In provide container operation the integration environment, when container operation when run backup process script operational order;
The target Docker mirror image is run, container is started;
The operational order is executed, the backup process script, realization pair are run under the integration environment of the container of starting The device systems backup being connect with host;Wherein, host is the equipment for running container.
Optionally, before obtaining target container engine Docker mirror image, further includes:
According to preconfigured mirror image script, basis Docker mirror image is constructed;
The net for the root file system institute carry that started container needs to run when the basis Docker image starting is arranged Network file system nfs server;
The operational order that backup process script is run when container starting is set.
Optionally, after according to preconfigured mirror image script, constructing basis Docker mirror image, further includes:
Configure the service parameter of started container when the basis Docker image starting;Wherein, the service parameter with The system parameter of the host matches;
The target Docker mirror image is created according to the basis Docker mirror image postponed.
Optionally, after according to the target Docker mirror image is created with the basis Docker mirror image postponed, also Include:
The target Docker mirror image is pushed into remote vessel warehouse;Wherein, the remote vessel warehouse is for storing Target Docker mirror image.
Optionally, after running the target Docker mirror image, further includes:
The port of the port numbers of DHCP, the port numbers of TFTP and NFS that container operation backup process script is used Number the host is mapped to, so that the equipment connecting with the host is able to access that the host.
Optionally, further includes:
Book is created, and the book of creation is mounted to the container;Wherein, the book is used for persistence Data;
The data storage catalogue of the nfs server is mapped to the book of container institute carry.
Optionally, further includes: by the host be locally stored the data storage catalogue of catalogue and the nfs server into Row mapping;Wherein, the data storage catalogue of the nfs server is as backup directory.
Second aspect, one embodiment of the invention provide a kind of equipment of system backup, and the equipment of the system backup includes:
Acquiring unit, for obtaining target container engine Docker mirror image;Wherein, the target Docker mirror image is for opening Visibly moved device and for provide container operation the integration environment, when container operation when run backup process script operational order;
Start unit starts container for running the target Docker mirror image;
Execution unit, for executing the operational order, run under the integration environment of the container of starting it is described back up into Journey script is realized and is backed up to the device systems connecting with host;Wherein, host is the equipment for running container.
The third aspect, one embodiment of the invention provide a kind of equipment of system backup, and the equipment of the system backup includes:
At least one processor, and
The memory being connect at least one described processor;
Wherein, the memory is stored with the instruction that can be executed by least one described processor, described at least one The instruction that device is stored by executing the memory is managed, the method as described in any one of first aspect is executed.
Fourth aspect, one embodiment of the invention provide a kind of computer storage medium, the computer-readable storage medium Matter is stored with computer instruction, when the computer instruction is run on computers, so that computer executes such as first aspect Any one of described in method.
The embodiment of the present invention provides a kind of method of new system backup, and host can star container, in the appearance of starting Backup process script is run under the integration environment of device, realizes and system backup is carried out to the equipment connecting with host.Such host Machine can by way of container to other equipment carry out system backup, even if in backup procedure system occur collapse or System disk damage, without reinstalling system, can also back up system.And backup procedure need not rely upon CD or The External memory equipments such as USB flash disk, implementation is more convenient, does not need switching External memory equipment, improves the efficiency of system backup.
Detailed description of the invention
Fig. 1 is the flow diagram of the method for system backup provided in an embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of the equipment of system backup provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of the equipment of system backup provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of the equipment of system backup provided in an embodiment of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described.
Currently, the backup of GHOST disk is by means of External memory equipment, the equipment of backup is more if necessary, it is necessary to O&M implements personnel and switches over External memory equipment to realize to all devices between the equipment that different needs back up System backup is carried out, switching External memory equipment causes deployment progress of implementation slow, and the efficiency of system backup is lower.And based on text Part system, which carries out data backup, can only guarantee that data of the system under proper functioning condition are not lost, once system cannot be transported normally Make, it can only be by reinstalling system, then import the data of loss and restored, recovery time is longer, the efficiency of system backup It is lower.
In consideration of it, the embodiment of the present invention provides a kind of method of new system backup, host can star container, open Backup process script is run under the integration environment of dynamic container, realizes and system backup is carried out to the equipment connecting with host.This Sample host can carry out system backup to other equipment by way of container, even if system collapses in backup procedure It bursts or system disk damages, without reinstalling system, system can also be backed up.And backup procedure needs not rely upon light The External memory equipments such as disk or USB flash disk, implementation is more convenient, does not need switching External memory equipment, improves system backup Efficiency.
The method of system backup provided in an embodiment of the present invention can be applied to the electronic equipment of installation virtual machine, also referred to as Host, such as PC, server etc., for the type of electronic equipment, the embodiment of the present invention is with no restriction.Hereinafter, The method of system backup provided in an embodiment of the present invention is uniformly applied to host.
Technical solution provided in an embodiment of the present invention is introduced with reference to the accompanying drawings of the specification.
Referring to Figure 1, the embodiment of the present invention provides a kind of method of new system backup, the stream of the method for the system backup Journey is described as follows.
S101: target container engine Docker mirror image is obtained, wherein target Docker mirror image is for starting container and use In provide container operation the integration environment, when container operation when run backup process script operational order;
S102: operational objective Docker mirror image starts container;
S103: execute operational order, under the integration environment of the container of starting run backup process script, realize to place The device systems backup of host connection, wherein host is the equipment for running container.
The method of system backup provided in an embodiment of the present invention can be applied to host, or become backup server. Host can carry out system backup to equipment connected to it.The root file system that host provides can be with carry in network text Part system (Network File System, NFS) server.The equipment of host and backup is referred to as client and passes through Wired or wireless form connection, by host to equipment connected to it, i.e. client is backed up.
The available target container engine Docker mirror image of host of the embodiment of the present invention, target Docker mirror image can be with It is pre-generated Docker mirror image.Pre-generated Docker mirror image can be one, be also possible to multiple, can store In other possible equipment.Host can obtain target Docker mirror image from multiple Docker mirror images of storage.Wherein, in advance The each container engine Docker mirror image generated is for providing starting container, and started container operation is integrated when all including operation Environment, and when container starting when run backup process script operational order.The equipment that host can be operation container is led to Operational objective Docker mirror image is crossed, to start a container, so as to the operation service in the integration environment that the container of starting is run The backup that device or other equipment provide carries out script, to realize that the equipment connected for host carries out system upgrade.This hair Bright embodiment is based on Docker running environment, needs not rely on external storage equipment, also with equipment system running state itself It is completely isolated, backup process script is run in a reservoir, has not only realized the system backup to equipment, but also improve the effect of backup Rate.
The Docker mirror image pre-generated in the embodiment of the present invention is started for starting container at runtime comprising operation The integration environment of container operation, such as Pre-boot Execution Environment (preboot execute environment, PXE), container open The operational order of required execution when dynamic, and specified backup process script is run in a reservoir.Backup process script can be for The script file for being used to carry out system backup that client provides, can store on the host of container, namely be stored in In backup server.Further, pre-generated Docker mirror image includes the nfs server information of root file system carry, Such as nfs server address information etc., the service parameter to match with the system parameter of host etc., that is, the container can be with The parameter of the service of offer etc., such as dynamic host configuration protocol (Dynamic Host Configuration Protocol, DHCP) subnet information parameter, routing iinformation parameter, Simple File Transfer Protocol (Trivial File Transfer Protocol, TFTP) service information parameters etc..
The embodiment of the present invention can construct before obtaining target Docker mirror image according to preconfigured mirror image script Basic Docker mirror image.Such as the configuration file Dockerfile of container default is write, it is generated by docker build order Basic Docker mirror image.In generating process, the root that started container needs to run when basis Docker image starting is arranged is literary The Network File System nfs server of part system institute carry, setting container run the operational order of backup process script when starting, And the initializtion script of starting backup services process.
The embodiment of the present invention starts appearance when configuring basis Docker image starting after constructing basis Docker mirror image The service parameter of device, wherein the system parameter of service parameter and host matches.Such as started by docker run order Basic Docker mirror image reconfigures DHCP subnet parameter, routing configuration information, TFTP according to host machine system environmental demand Boot configuration information and NFS service binding address, privileges configuration information, such as which client has permission to access host Machine.After being configured with service parameter, the embodiment of the present invention can create target Docker according to the basic Docker mirror image postponed Target Docker mirror image is pushed to remote vessel warehouse by mirror image, wherein remote vessel warehouse is for storing target Docker mirror Picture.In possible embodiment, the embodiment of the present invention can be passed through based on the basic Docker mirror image after service parameter is configured with The container application mirror image that docker commit order creation customizes, i.e. target Docker mirror image, and by target Docker mirror image Remote vessel warehouse is pushed to by docker push order.
The embodiment of the present invention constructs basis Docker mirror image and target Docker mirror image and can be realized by host, It can be realized by other possible electronic equipments, in this regard, the embodiment of the present invention is with no restriction.
Host can from remote vessel warehouse obtain target Docker mirror image, get target Docker mirror image it Afterwards, target Docker mirror image is run by docker run order, starts container included by target Docker mirror image, and will The port numbers of the port numbers of DHCP, the port numbers of TFTP and NFS that container operation backup process script uses map to host, So that the equipment connecting with host i.e. client is able to access that host.In order to make it easy to understand, as shown in Fig. 2, host Container can be run the port numbers such as 67 of DHCP that backup process script uses map to the corresponding port numbers 67 of host, The port numbers of TFTP such as 23 map to the corresponding port numbers 23 of host and the port numbers such as 111,2049 of NFS map to place The corresponding port numbers 111,2049 of host.
The work of started container when target Docker image starting can also be arranged in host in the embodiment of the present invention Catalogue, it is understood that be the backup directory of system backup.In possible embodiment, the embodiment of the present invention can create data Volume, and the book of creation is mounted to container, wherein book can be used for persistence data.Meanwhile NFS being serviced The data storage catalogue of device is mapped to the book of container institute carry, and host is locally stored to the number of catalogue and nfs server It is mapped according to storage catalogue, catalogue, which is locally stored, actually in such host corresponding book, and data are stored in data Volume, ensure that the persistence of data.And client can also determine corresponding data by the data storage catalogue of nfs server Volume, that is, backup directory.
When client needs to carry out system backup, client can star system, and complete automatic system by host System backup.Client accessible host passes through the port of DHCP, the port of TFTP and NFS after request PXE guidance starts Port request obtain client ip from server end is corresponding, gateway address and TFTP guide file name.And from server End request downloading guides configure pxe.cfg, kernel image vmlinuz and temporary file system image initrd.img.Client After end enters temporary file system, remotely by nfs server carry root partition, and enter CHROOT environment, starting is interim Network system.Into after casual network system, the backup services process of host defaults starting, it first turns on NFS client The data storage catalogue of carry remote server is to determine system point as backup directory, and by detecting local disk subregion Area, after determining system partitioning, backup process clones disk system subregion to backup directory by disk tools, meanwhile, backup Data can also be synchronized to server data storage catalogue.
Host can stop container by docker stop order, in visitor after the completion of confirming all clients backup After family end is restarted, PXE netboot will not start success, so local service system can be led by disk.If Backup client end system again is needed, container can be restarted by docker start order in host's generator terminal, in client After end is restarted, casual network system can be led by PXE and completes automated system backup again.
To sum up, the embodiment of the present invention provides a kind of method of new system backup, and host can star container, start Container the integration environment under run backup process script, realize and system backup carried out to the equipment that connect with host.In this way Host can carry out system backup to other equipment by way of container, even if system is collapsed in backup procedure Or system disk damage, without reinstalling system, system can also be backed up.And backup procedure needs not rely upon CD Or the External memory equipments such as USB flash disk, implementation is more convenient, does not need switching External memory equipment, improves the effect of system backup Rate.
Equipment provided in an embodiment of the present invention is introduced with reference to the accompanying drawing.
Fig. 3 is referred to, based on the same inventive concept, one embodiment of the invention provides a kind of equipment of system backup, namely Host, the host include acquiring unit 301, start unit 302 and execution unit 303.Wherein, acquiring unit 301 can be with For obtaining target container engine Docker mirror image, target Docker mirror image is for starting container and for providing container operation The integration environment, when container operation when run backup process script operational order.Start unit 302 can be used for operational objective Docker mirror image starts container.Execution unit 303 can be used for executing operational order, under the integration environment of the container of starting Backup process script is run, realizes and the device systems connecting with host is backed up;Wherein, host is to run setting for container It is standby.
It optionally, further include configuration unit, for before obtaining target container engine Docker mirror image, according to matching in advance The mirror image script set constructs basis Docker mirror image, and started container needs to run when basis Docker image starting is arranged The Network File System nfs server of root file system institute carry, setting container run the operation of backup process script when starting Instruction.
Optionally, configuration unit is also used to according to preconfigured mirror image script, after constructing basis Docker mirror image, Configure the service parameter of started container when the Docker image starting of basis;Wherein, the system parameter of service parameter and host Match, creates target Docker mirror image according to the basic Docker mirror image postponed.
It optionally, further include push unit, for creating target Docker according to the basic Docker mirror image postponed After mirror image, target Docker mirror image is pushed into remote vessel warehouse;Wherein, remote vessel warehouse is for storing target Docker mirror image.
It optionally, further include map unit, for after operational objective Docker mirror image, container to be run backup process The port numbers of the port numbers for the DHCP that script uses, the port numbers of TFTP and NFS map to host, so that connecting with host The equipment connect is able to access that host.
Optionally, further include creating unit, be mounted to container for creating book, and by the book of creation;Wherein, Book is used for persistence data, and the data storage catalogue of nfs server is mapped to the book of container institute carry.
Optionally, map unit is also used to: by host be locally stored the data storage catalogue of catalogue and nfs server into Row mapping, wherein the data storage catalogue of nfs server is as backup directory.
The equipment can be used for executing method provided by embodiment shown in FIG. 1.Therefore, for each function of the equipment The function etc. that module can be realized can refer to the description of embodiment shown in FIG. 1, seldom repeat.
Fig. 4 is referred to, one embodiment of the invention also provides a kind of equipment of system backup, i.e. host, the host packet At least one processor 401 is included, realizes that the present invention is implemented when processor 401 is for executing the computer program stored in memory The step of method for the system backup as shown in Figure 1 that example provides.
Optionally, processor 401 specifically can be central processing unit, application-specific integrated circuit (English: Application Specific Integrated Circuit, referred to as: ASIC), it can be one or more for controlling journey The integrated circuit that sequence executes can be use site programmable gate array (English: Field Programmable Gate Array, referred to as: FPGA) exploitation hardware circuit, can be baseband processor.
Optionally, which further includes the memory 402 connecting at least one processor, and memory 402 can To include read-only memory (English: Read Only Memory, abbreviation: ROM), random access memory (English: Random Access Memory, referred to as: RAM) and magnetic disk storage.The number required when being run for storage processor 401 of memory 402 According to being stored with the instruction that can be executed by least one processor 401, at least one processor 401 is by executing memory 402 The instruction of storage executes method as shown in Figure 1.Wherein, the quantity of memory 402 is one or more.Wherein, memory 402 show together in Fig. 4, but it is understood that memory 402 is not essential functional module, therefore with void in Fig. 4 Line is shown.
Based on the same inventive concept, the embodiment of the present invention provides a kind of computer readable storage medium, this is computer-readable Storage medium is stored with computer instruction, when computer instruction is run on computers, so that computer executes as shown in Figure 1 Method.
In the specific implementation process, computer readable storage medium includes: general serial bus USB (Universal Serial Bus flash drive, USB), mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. are various can store program The storage medium of code.
It is apparent to those skilled in the art that for convenience and simplicity of description, only with above-mentioned each function The division progress of module can according to need and for example, in practical application by above-mentioned function distribution by different function moulds Block is completed, i.e., the internal structure of device is divided into different functional modules, to complete all or part of function described above Energy.The specific work process of the system, apparatus, and unit of foregoing description, can be with reference to corresponding in preceding method embodiment Journey, details are not described herein.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the module or unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute the application The all or part of the steps of embodiment the method.And storage medium above-mentioned includes: general serial bus USB (Universal Serial Bus flash disk), mobile hard disk, read-only memory (Read-Only Memory, ROM), Random access memory (Random Access Memory, RAM), magnetic or disk etc. be various to can store program code Medium.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (10)

1. a kind of method of system backup, comprising:
Obtain target container engine Docker mirror image;Wherein, the target Docker mirror image is for starting container and for mentioning The operational order of backup process script is run for the integration environment of container operation, when container is run;
The target Docker mirror image is run, container is started;
Execute the operational order, run the backup process script under the integration environment of the container of starting, realize to place The device systems backup of host connection;Wherein, host is the equipment for running container.
2. the method as described in claim 1, which is characterized in that before obtaining target container engine Docker mirror image, also wrap It includes:
According to preconfigured mirror image script, basis Docker mirror image is constructed;
The network text for the root file system institute carry that started container needs to run when the basis Docker image starting is arranged Part system nfs server;
The operational order that backup process script is run when container starting is set.
3. method according to claim 2, which is characterized in that according to preconfigured mirror image script, building basis After Docker mirror image, further includes:
Configure the service parameter of started container when the basis Docker image starting;Wherein, the service parameter with it is described The system parameter of host matches;
The target Docker mirror image is created according to the basis Docker mirror image postponed.
4. method as claimed in claim 3, which is characterized in that creating institute according to the basis Docker mirror image postponed After stating target Docker mirror image, further includes:
The target Docker mirror image is pushed into remote vessel warehouse;Wherein, the remote vessel warehouse is for storing target Docker mirror image.
5. the method as described in claim 1-4 is any, which is characterized in that after running the target Docker mirror image, also Include:
The port numbers of the port numbers of DHCP, the port numbers of TFTP and NFS that container operation backup process script uses are reflected It is incident upon the host, so that the equipment connecting with the host is able to access that the host.
6. method as claimed in claim 5, which is characterized in that further include:
Book is created, and the book of creation is mounted to the container;Wherein, the book is used for persistence number According to;
The data storage catalogue of the nfs server is mapped to the book of container institute carry.
7. method as claimed in claim 6, which is characterized in that further include: by the host be locally stored catalogue with it is described The data storage catalogue of nfs server is mapped;Wherein, the data storage catalogue of the nfs server is as backup directory.
8. a kind of equipment of system backup characterized by comprising
Acquiring unit, for obtaining target container engine Docker mirror image;Wherein, the target Docker mirror image holds for starting Device and for provide container operation the integration environment, when container operation when run backup process script operational order;
Start unit starts container for running the target Docker mirror image;
Execution unit runs the backup process foot for executing the operational order under the integration environment of the container of starting This, realizes and backs up to the device systems connecting with host;Wherein, host is the equipment for running container.
9. a kind of equipment of system backup characterized by comprising
At least one processor, and
The memory being connect at least one described processor;
Wherein, the memory is stored with the instruction that can be executed by least one described processor, at least one described processor By executing the instruction of the memory storage, such as method of any of claims 1-7 is executed.
10. a kind of computer storage medium, which is characterized in that the computer-readable recording medium storage has computer instruction, When the computer instruction is run on computers, so that computer executes such as side of any of claims 1-7 Method.
CN201710963942.3A 2017-10-17 2017-10-17 A kind of method and apparatus of system backup Pending CN109669808A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710963942.3A CN109669808A (en) 2017-10-17 2017-10-17 A kind of method and apparatus of system backup

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710963942.3A CN109669808A (en) 2017-10-17 2017-10-17 A kind of method and apparatus of system backup

Publications (1)

Publication Number Publication Date
CN109669808A true CN109669808A (en) 2019-04-23

Family

ID=66139717

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710963942.3A Pending CN109669808A (en) 2017-10-17 2017-10-17 A kind of method and apparatus of system backup

Country Status (1)

Country Link
CN (1) CN109669808A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110460635A (en) * 2019-07-04 2019-11-15 华南理工大学 One kind is towards unpiloted edge discharging method and device
CN112965856A (en) * 2021-02-24 2021-06-15 上海英方软件股份有限公司 Backup data-based fast fine-grained recovery method and device
CN113742029A (en) * 2020-05-30 2021-12-03 山东汉鑫科技股份有限公司 Docker-based DevOps continuous delivery system
CN116166473A (en) * 2023-02-27 2023-05-26 北京远舢智能科技有限公司 Data processing method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105740048A (en) * 2016-01-26 2016-07-06 华为技术有限公司 Image management method, device and system
CN106502905A (en) * 2016-10-26 2017-03-15 腾讯科技(深圳)有限公司 A kind of method of testing of application program, apparatus and system
US20170242689A1 (en) * 2016-02-22 2017-08-24 International Business Machines Corporation Language-Independent Program Composition using Containers

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105740048A (en) * 2016-01-26 2016-07-06 华为技术有限公司 Image management method, device and system
US20170242689A1 (en) * 2016-02-22 2017-08-24 International Business Machines Corporation Language-Independent Program Composition using Containers
CN106502905A (en) * 2016-10-26 2017-03-15 腾讯科技(深圳)有限公司 A kind of method of testing of application program, apparatus and system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110460635A (en) * 2019-07-04 2019-11-15 华南理工大学 One kind is towards unpiloted edge discharging method and device
CN113742029A (en) * 2020-05-30 2021-12-03 山东汉鑫科技股份有限公司 Docker-based DevOps continuous delivery system
CN112965856A (en) * 2021-02-24 2021-06-15 上海英方软件股份有限公司 Backup data-based fast fine-grained recovery method and device
CN112965856B (en) * 2021-02-24 2022-04-08 上海英方软件股份有限公司 Backup data-based fast fine-grained recovery method and device
CN116166473A (en) * 2023-02-27 2023-05-26 北京远舢智能科技有限公司 Data processing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106878385B (en) Private cloud deployment method and device
CN104219099A (en) Automatic server cluster deploying method and device
US10326668B2 (en) Portable and flexible deployment of servers
CN103324498B (en) Method and equipment for booting bare metal computing device
CN111913665A (en) Mounting method and device of storage volume and electronic equipment
US20140129819A1 (en) Cloud cluster system and boot deployment method for the same
CN109669808A (en) A kind of method and apparatus of system backup
US20150074386A1 (en) Boot method and boot system
US7650490B2 (en) Embedded device for implementing a boot process on a host
CN103024079B (en) Obtain the method for server resource information, resource pool management system and server
CN106126273B (en) A kind of method of upgrading BIOS
CN110502244A (en) Dispose the method and device of Kubernetes cluster
CN108089913B (en) Virtual machine deployment method of super-fusion system
CN101546270A (en) Automatic installation method for Linux operation system, device and system
US20060155838A1 (en) Program installation system and method using the same
CN105007290B (en) It is a kind of to be directed to the linux system Remote Installation configuring management method without disk server
CN104767649A (en) Bare metal server deployment method and device
CN102662884B (en) Device driving program configuration method based on network
US20090254641A1 (en) Network card capable of remote boot and method thereof
US20120005321A1 (en) Router and remote boot method using the router
CN105450759A (en) System mirror image management method and device
CN106657444A (en) Method and device for configuring IP address of BMC
US10282346B1 (en) Scalable network device self-configuration in large networks
CN109067599A (en) A kind of method and device for disposing cluster
US7882232B2 (en) Rapid resource provisioning with automated throttling

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190423