All-in-one machine cloud backup method, electronic equipment, storage medium and system
Technical field
The present invention relates to data processing field, more particularly to all-in-one machine cloud backup method, electronic equipment, storage medium and it is
System.
Background technology
Enterprise or the personal backup to data are mostly backed up using cloud at present, and current actual cloud backed up
Journey is all to be backed up by way of disposing virtual machine in user network into racking, but since the environment of user network is complicated more
Become, even can seal any data flow inbound port for the sake of security, for this user network, exterior component is to lead to
The mode of active is crossed to access the data resource of the virtual machine in these isolation networks, makes enterprise or the personal cloud for data standby
Part has certain limitation.
The content of the invention
For overcome the deficiencies in the prior art, it is an object of the present invention to provide all-in-one machine cloud backup method, its energy
Solve the problems, such as that enterprise or individual have certain limitation for what the cloud of data backed up.
The second object of the present invention is to provide a kind of electronic equipment, it can solve enterprise or the personal cloud for data is standby
Part has the problem of certain limitation.
The three of the object of the invention are to provide a kind of computer-readable recording medium, it can solve enterprise or individual for number
According to cloud back up there is the problem of certain limitation.
The fourth object of the present invention is to provide all-in-one machine cloud standby system, it can solve enterprise or individual for data
Cloud backup has the problem of certain limitation.
An object of the present invention is realized using following technical scheme:
All-in-one machine cloud backup method, this method include:
User virtual machine IP is pushed, and the user virtual machine that the bottom cloud computing platform in all-in-one machine creates passes through ActiveMQ
Periodically push user virtual machine IP generates user virtual machine IP to all-in-one machine front end management module in all-in-one machine front end management module
List;
Backup tasks are created, obtain user ID request, specify the user virtual machine IP to arrange according to user ID request
The user virtual machine for needing to back up is specified in table;
Backup tasks are performed, the user virtual machine is provided with cloud backup client, and all-in-one machine front end management module passes through
ActiveMQ is sent to cloud backup client starts backup instruction, and cloud backup client is according to the startup backup instruction to described
The data for the user virtual machine for needing to back up perform backup and obtain Backup Data.
Further, backup location and backup policy are specified during the establishment backup tasks, the backup location is outside
Cloud computing platform, the backup policy includes backing up in realtime and timed backup.
Further, Backup Data push is further included, the Backup Data is pushed to all-in-one machine sheet by cloud backup client
In backup log table in ground database.
Further, the Backup Data, which pushes, is specially:The Backup Data is pushed to by cloud backup client
ActiveMQ, all-in-one machine front end management module obtain the Backup Data by active sniffing ActiveMQ queues, before all-in-one machine
The Backup Data is recorded in the backup log table of all-in-one machine local data base by end management module.
Further, Backup Data recovery is further included, recover demand according to user selects need in the backup log table
The Backup Data of recovery is simultaneously recovered.
The second object of the present invention is realized using following technical scheme:
A kind of electronic equipment, including:Processor;
Memory;And program, wherein described program is stored in the memory, and is configured to by processor
Perform, described program includes being used for the all-in-one machine cloud backup method for performing the present invention.
The third object of the present invention is realized using following technical scheme:
A kind of computer-readable recording medium, is stored thereon with computer program, and the computer program is held by processor
The all-in-one machine cloud backup method of the row present invention.
The fourth object of the present invention is realized using following technical scheme:
All-in-one machine cloud standby system, the system include:All-in-one machine front end management module, acquisition module, cloud backup client,
Bottom cloud computing platform, user virtual machine, ActiveMQ and cloud backup client local data base;The bottom cloud computing is put down
Platform is used to create the user virtual machine, and the all-in-one machine front end management module receives user's void by the ActiveMQ
User virtual machine IP that plan machine periodically pushes simultaneously generates user virtual machine IP lists;The backup that the acquisition module obtains user please
Ask, the all-in-one machine front end management module is specified according to the backup request in the user virtual machine IP lists to be needed to back up
User virtual machine;The cloud backup client is installed in the user virtual machine, and the ActiveMQ is respectively with described one
Body machine front end management module is connected with the cloud backup client, and the all-in-one machine front end management module is led to backup instruction is started
The ActiveMQ is crossed to send to the cloud backup client;The cloud backup client is according to the startup backup instruction to institute
The data execution backup for stating the user virtual machine for needing to back up obtains Backup Data;The cloud backup client local data stock
Store up the Backup Data.
Further, all-in-one machine local data base is further included, the all-in-one machine local data base is used to store the user
Virtual machine IP lists.
Compared with prior art, the beneficial effects of the present invention are:The all-in-one machine cloud backup method of the present invention, it is empty by user
Plan machine to all-in-one machine front end management module and generates user virtual machine IP by ActiveMQ timing push user virtual machine IP, and
The backup user virtual machine IP lists for needing to back up, all-in-one machine front end are specified in user virtual machine IP according to user ID request
Management module is sent by ActiveMQ to cloud backup client starts backup instruction, and cloud backup client is standby according to the startup
Part instruction performs backup to the data of the corresponding user virtual machines of the backup user virtual machine IP and obtains Backup Data;All-in-one machine
Instruction transmission, monitoring and execution are carried out by ActiveMQ between front end management module and cloud alternate device, make all-in-one machine front end
Data communication between management module and cloud backup client is isolated the security for improving data by ActiveMQ, makes data
Backup can also be backed up in the network of isolation, enterprise or the personal cloud for data back up there is no limitation
Property.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention,
And can be practiced according to the content of specification, below with presently preferred embodiments of the present invention and coordinate attached drawing describe in detail as after.
The embodiment of the present invention is shown in detail by following embodiments and its attached drawing.
Brief description of the drawings
Attached drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair
Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the all-in-one machine cloud backup method of the present invention;
Fig. 2 is the module rack composition of the all-in-one machine cloud standby system of the present invention;
Fig. 3 is the backup operating status process schematic of the all-in-one machine cloud backup method of the present invention.
Embodiment
In the following, with reference to attached drawing and embodiment, the present invention is described further, it is necessary to which explanation is, not
Under the premise of afoul, new implementation can be formed between various embodiments described below or between each technical characteristic in any combination
Example.
All-in-one machine cloud backup method as shown in figures 1 and 3, comprises the following steps:
User virtual machine IP is pushed, the user virtual machine for the user virtual machine that the bottom cloud computing platform in all-in-one machine creates
User virtual machine IP is periodically pushed by ActiveMQ to all-in-one machine front end management module and obtains user virtual machine IP lists;With
Family virtual machine is created by the bottom cloud computing platform (CloudStack) in all-in-one machine and obtained, and user virtual machine passes through ActiveMQ
Periodically for push user virtual machine IP to all-in-one machine front end management module, all-in-one machine front end management module receives user virtual machine IP,
User virtual machine IP lists are generated in all-in-one machine management module.As shown in figure 3, PowerONE all-in-one machines are one in this patent
Body machine equipment, the PowerONE systems UI in Fig. 3 are the all-in-one machine front end management module in patent of the present invention, in the present embodiment
All-in-one machine further include bottom cloud computing platform (CloudStack), be third party cloud calculating platform Apache
CloudStack, bottom cloud computing platform are integrated machine user terminal and create user virtual machine, user virtual machine end is defined as using
Family network, grid is defined as by integral generator terminal, and each user virtual machine has a specific IP, user virtual machine with
ActiveMQ establishes a connection, and periodically pushes user virtual machine IP to the all-in-one machine for belonging to grid by ActiveMQ
In front end management module.ActiveMQ is increases income messaging bus, for by the portion in the component and user network in grid
Part realizes communication.
Backup tasks are created, obtain user ID request, ask to specify in user virtual machine IP lists according to user ID
The specified user virtual machine for needing to back up.User as shown in Figure 3, is provided with cloud backup client in user virtual machine
(Client), all-in-one machine front end management module obtains the backward ActiveMQ of user ID request and sends asking for acquisition machine IP catalogues
Ask, cloud backup client monitors ActiveMQ queues in real time, and machine IP catalogues are obtained when cloud backup client listens to
Request message after, responded immediately i.e. scan user virtual machine IP, as create backup tasks, and will need to back up
Backup user virtual machine IP preserve.Backup location and backup policy are specified when creating backup tasks, it is auspicious that backup location includes letter
Cloud and AWS public clouds, backup policy includes backing up in realtime and timed backup.It is specific as shown in figure 3, can be with when creating backup tasks
Backup location is specified, the backup location in the present embodiment be exterior cloud computing platform, and great auspicious cloud can be used in exterior cloud computing platform
With AWS public clouds, the data file after will backing up is uploaded to the auspicious cloud of letter and AWS public clouds, or the auspicious cloud of letter and AWS public clouds it is straight
Connect the data file after above-mentioned backup is downloaded from all-in-one machine.If backup policy is timed backup, timed backup is to be
Backup is performed at regular intervals once or only to back up once, if backup policy is real-time task, is monitored using JNotify
File on backup directory is monitored, when file, which has, to be changed or have newly-increased file, backup tasks will be triggered.It is standby
Part task concretely compressed document file.
Backup tasks are performed, user virtual machine is provided with cloud backup client, and all-in-one machine front end management module passes through
ActiveMQ is sent to cloud backup client starts backup instruction, and cloud backup client is according to startup backup instruction to needing to back up
User virtual machine data perform backup obtain Backup Data.
Backup Data pushes, and Backup Data is pushed to the backup log in all-in-one machine local data base by cloud backup client
In table.Result, that is, Backup Data of backup is pushed to ActiveMQ by cloud backup client, while all-in-one machine management client is real
When ActiveMQ queues are monitored, when listening to Backup Data, Backup Data is recorded immediately local to all-in-one machine
In database inside backup log table.
Backup Data recovers, Backup Data and the progress for selecting to recover in backup log table according to user's recovery demand
Recover.Backup log record can be found from the backup log table in above-mentioned all-in-one machine local data base, can be according to user
Backup log of the demand in all-in-one machine local data base in selection need the Backup Data that has had backed up, while log in clear
Look at the backup relevant text on the auspicious cloud of letter or AWS public clouds, the backup file that then selection needs to recover is recovered.
A kind of electronic equipment, including:Processor;
Memory;And program, wherein described program is stored in the memory, and is configured to by processor
Perform, described program includes being used to perform all-in-one machine cloud backup method of the present invention.
A kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that:The computer program
It is executed by processor all-in-one machine cloud backup method of the present invention.
All-in-one machine cloud standby system, the system include:All-in-one machine front end management module, acquisition module, cloud backup client,
Bottom cloud computing platform, user virtual machine, ActiveMQ and cloud backup client local data base;Bottom cloud computing platform
(CloudStack) it is used to create user virtual machine, all-in-one machine front end management module receives user virtual machine by ActiveMQ and determines
The user virtual machine IP of phase push simultaneously generates user virtual machine IP lists;Acquisition module obtains the backup request of user, all-in-one machine
Front end management module specifies the user virtual machine for needing to back up according to backup request in user virtual machine IP lists;Cloud backup visitor
Family end is installed in user virtual machine, and ActiveMQ is connected with all-in-one machine front end management module and cloud backup client respectively, and one
Body machine front end management module is sent backup instruction is started to cloud backup client by ActiveMQ;Cloud backup client according to
The data execution backup for starting the user virtual machine that backup instruction backs up needs obtains Backup Data;Cloud backup client is local
Database purchase Backup Data.All-in-one machine local data base is further included, the all-in-one machine local data base is used to store the use
Family virtual machine IP lists.
The all-in-one machine cloud backup method of the present patent application, it is empty by ActiveMQ timing push users by user virtual machine
Plan machine IP is to all-in-one machine front end management module and generates user virtual machine IP, and is asked according to user ID in user virtual machine IP
In specify and need the backup user virtual machine IP lists backed up, all-in-one machine front end management module backs up visitor by ActiveMQ to cloud
Family end, which is sent, starts backup instruction, and cloud backup client is according to the startup backup instruction to IP pairs of the backup user virtual machine
The data for the user virtual machine answered perform backup and obtain Backup Data;Lead between all-in-one machine front end management module and cloud alternate device
Cross ActiveMQ and carry out instruction transmission, monitoring and execution, make the number between all-in-one machine front end management module and cloud backup client
The securities of data is improved by ActiveMQ isolation according to communication, makes the backups of data can also be into the network of isolation
Row backup, enterprise or the personal cloud for data back up there is no limitation.
More than, it is only presently preferred embodiments of the present invention, not makees limitation in any form to the present invention;All one's own professions
The those of ordinary skill of industry can swimmingly implement the present invention shown in by specification attached drawing and above;But all to be familiar with sheet special
The technical staff of industry without departing from the scope of the present invention, is made a little using disclosed above technology contents
The equivalent variations of variation, modification and evolution, are the equivalent embodiment of the present invention;Meanwhile all substantial technologicals according to the present invention
Variation, modification and evolution of any equivalent variations made to above example etc., still fall within technical scheme
Within protection domain.