CN103810059A - Backup method and device - Google Patents

Backup method and device Download PDF

Info

Publication number
CN103810059A
CN103810059A CN201210460359.8A CN201210460359A CN103810059A CN 103810059 A CN103810059 A CN 103810059A CN 201210460359 A CN201210460359 A CN 201210460359A CN 103810059 A CN103810059 A CN 103810059A
Authority
CN
China
Prior art keywords
resource
tape
name
sequence number
backup
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
CN201210460359.8A
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.)
State Grid Corp of China SGCC
Beijing Electric Power Corp
Original Assignee
State Grid Corp of China SGCC
Beijing Electric Power Corp
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 State Grid Corp of China SGCC, Beijing Electric Power Corp filed Critical State Grid Corp of China SGCC
Priority to CN201210460359.8A priority Critical patent/CN103810059A/en
Publication of CN103810059A publication Critical patent/CN103810059A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Manipulator (AREA)

Abstract

The invention discloses a backup method and device. The backup method comprises the steps: receiving a backup request of a backup client; determining a resource name of a tape resource distributed for the backup client and/or a backup server in advance; positioning the tape resource corresponding to the resource name according to a sequence number of the tape resource, wherein the sequence number and the resource name are in one-to-one correspondence, and the corresponding relation of the sequence number and the resource name is fixed in a system; carrying out backup by virtue of the positioned tape resource. The technical problems of wrong resource positioning and low backup efficiency caused by the fact that the equipment name of the tape resource is changed in the prior art are solved, and the technical effect of improving the backup efficiency is achieved.

Description

Backup method and device
Technical field
The present invention relates to the communications field, in particular to a kind of backup method and device.
Background technology
When carrying out to the data on Linux platform the backup of LAN Free mode, or backup software (server end) is while being arranged on Linux platform, need on Linux platform, identify mechanical arm and the magnetic tape station equipment of tape library.But the mechanical arm on Linux platform and magnetic tape station device name can, along with the restarting or rescaning of equipment changed of linux system, be brought problem with regard to being easy to the Normal Backups of enterprise like this.
The backup software of main flow has proposed some modes that address the above problem, but the basis of the solution that these main flow equipment propose is exactly to suppose that the mechanical arm of tape library and magnetic tape station are all normal and can carry out normal communication with backup software.But in actual backup environment, the mechanical arm of tape library and magnetic tape station can break down, and also there will be problem with the communication of backup software, the Normal Backups task of enterprise will be affected in these cases.And, the scheme that main flow backup software manufacturer provides on Linux platform can be after backup be initiated, before application mechanical arm and magnetic tape station, rescan mechanical arm and magnetic tape station to obtain No. WWN or sequence number of mechanical arm and magnetic tape station, find the mechanical arm corresponding with initial configuration and magnetic tape station device name with this.Because need to rescan and mate, so just reduce the execution efficiency of backup, but, when coupling, also may there is mistake, and cause Normal Backups to be difficult to carry out, also increase the complexity of backup management simultaneously.
For above-mentioned problem, effective solution is not yet proposed at present.
Summary of the invention
The embodiment of the present invention provides a kind of backup method and device, at least to solve that the device name of tape resource in prior art can change and the technical matters of the wrong backup in the resource location inefficiency that causes.
According to the embodiment of the present invention aspect, a kind of backup method is provided, comprising: the backup request that receives backup client; Determine the resource name of the tape resource that is in advance above-mentioned backup client and/or backup server distribution; Locate according to the sequence number of above-mentioned tape resource the tape resource that above-mentioned resource name is corresponding, wherein, above-mentioned sequence number and above-mentioned resource name are relations one to one, and corresponding relation between above-mentioned sequence number and above-mentioned resource name is cured in system; Back up by the tape resource navigating to.
Preferably, above-mentioned tape resource comprises: mechanical arm and/or magnetic tape station.
Preferably, locating according to the sequence number of above-mentioned tape resource the tape resource that above-mentioned resource name is corresponding comprises: obtain the Robot Name of the mechanical arm for above-mentioned backup client and/or backup server distribution of storing in system, and the magnetic tape station title of the magnetic tape station distributing; Search the mechanical arm corresponding with above-mentioned Robot Name according to the corresponding relation between above-mentioned Robot Name and above-mentioned mechanical arm sequence number, and search the tape corresponding with this Robot Name in groove position; In the above-mentioned tape of determining, search the magnetic tape station corresponding with above-mentioned magnetic tape station title according to the corresponding relation between above-mentioned magnetic tape station title and magnetic tape station sequence number; Using the magnetic tape station finding as the tape resource navigating to.
Preferably, locating in the process of the tape resource that above-mentioned resource name is corresponding according to the sequence number of above-mentioned tape resource, when the sequence number adopting and device name are initial configuration, tape is scanned to the sequence number and the device name that obtain.
Preferably, said method is applied in linux system.
Preferably, by Perl source code, the corresponding relation between above-mentioned sequence number and above-mentioned resource name is solidificated in system.
According to another aspect of the present invention, provide a kind of back-up device, having comprised: receiving element, for receiving the backup request of backup client; Determining unit, for determining the resource name of the tape resource that is in advance above-mentioned backup client and/or backup server distribution; Positioning unit, for locating according to the sequence number of above-mentioned tape resource the tape resource that above-mentioned resource name is corresponding, wherein, above-mentioned sequence number and above-mentioned resource name are relations one to one, and corresponding relation between above-mentioned sequence number and above-mentioned resource name is cured in system; Backup units, for backing up by the tape resource navigating to.
Preferably, above-mentioned tape resource comprises: mechanical arm and/or magnetic tape station.
Preferably, above-mentioned positioning unit comprises: acquisition module, and for the Robot Name of the mechanical arm distributing for above-mentioned backup client and/or backup server that obtains that system stores, and the magnetic tape station title of the magnetic tape station distributing; First searches module, for searching the mechanical arm corresponding with above-mentioned Robot Name according to the corresponding relation between above-mentioned Robot Name and above-mentioned mechanical arm sequence number, and searches the tape corresponding with this Robot Name in groove position; Second searches module, for searching the magnetic tape station corresponding with above-mentioned magnetic tape station title according to the corresponding relation between above-mentioned magnetic tape station title and magnetic tape station sequence number at the above-mentioned tape of determining; Locating module, for using the magnetic tape station finding as the tape resource navigating to.
Preferably, said apparatus also comprises solidified cell, for the corresponding relation between above-mentioned sequence number and above-mentioned resource name being solidificated in to system by Perl source code.
In embodiments of the present invention, corresponding relation between resource name and the sequence number of tape resource will be solidified in advance in system, like this, because the sequence number of equipment is to be constant always, if set up so the one-to-one relationship between resource name and sequence number, also so corresponding relation is solidificated in system simultaneously, also just can passes through machinery and equipment of the unique identification of resource name, and can not change along with the variation of environment.Efficiently solve by the way in prior art, the device name of tape resource can change and the resource location that causes is wrong and the technical matters of the backup inefficiency that causes has reached the technique effect that improves backup efficiency.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, forms the application's a part, and schematic description and description of the present invention is used for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is a kind of preferred flow charts according to the backup method of the embodiment of the present invention;
Fig. 2 is the another kind of preferred flow charts according to the backup method of the embodiment of the present invention;
Fig. 3 is a kind of preferred structure block diagram according to the back-up device of the embodiment of the present invention;
Fig. 4 is a kind of preferred structure block diagram according to the positioning unit of the embodiment of the present invention.
Embodiment
Hereinafter also describe the present invention in detail with reference to accompanying drawing in conjunction with the embodiments.It should be noted that, in the situation that not conflicting, the feature in embodiment and embodiment in the application can combine mutually.
The embodiment of the present invention provides a kind of preferred backup method, and as shown in Figure 1, the method comprises the following steps:
Step S102: the backup request that receives backup client;
Step S104: the resource name of determining the tape resource that is in advance backup client and/or backup server distribution;
Step S106: locate according to the sequence number of tape resource the tape resource that described resource name is corresponding, wherein, above-mentioned sequence number and resource name are relations one to one, and corresponding relation between above-mentioned sequence number and resource name is cured in system;
Step S108: back up by the tape resource navigating to.
In above-mentioned preferred implementation, corresponding relation between resource name and the sequence number of tape resource will be solidified in advance in system, like this, because the sequence number of equipment is to be constant always, if set up so the one-to-one relationship between resource name and sequence number, also so corresponding relation is solidificated in system simultaneously, also just can passes through machinery and equipment of the unique identification of resource name, and can not change along with the variation of environment.Efficiently solve by the way in prior art, the device name of tape resource can change and the resource location that causes is wrong and the technical matters of the backup inefficiency that causes has reached the technique effect that improves backup efficiency.
Above-mentioned tape resource includes but not limited to: mechanical arm and/or magnetic tape station etc. these in the required resource of using in the time carrying out back-up storage.
In order to realize the final location to magnetic tape station, to back up by magnetic tape station, need to first navigate to mechanical arm, and then navigate to groove position, in the groove position of location, determine again tape, using the magnetic tape station in the tape navigating to as the final magnetic tape station backing up of determining.In a preferred implementation, as shown in Figure 2, locate according to the sequence number of described tape resource the tape resource that described resource name is corresponding and comprise the following steps:
Step S202: obtain the Robot Name of the mechanical arm for above-mentioned backup client and/or backup server distribution of storing in system, and the magnetic tape station title of the magnetic tape station distributing;
Step S204: search the mechanical arm corresponding with above-mentioned Robot Name according to the corresponding relation between above-mentioned Robot Name and above-mentioned mechanical arm sequence number, and search the tape corresponding with this Robot Name in groove position;
Step S206: search the magnetic tape station corresponding with above-mentioned magnetic tape station title according to the corresponding relation between above-mentioned magnetic tape station title and magnetic tape station sequence number in the above-mentioned tape of determining;
Step S208: using the magnetic tape station finding as the tape resource navigating to.
For fear of the problem changing because tape resource being rescaned to the tape title that causes, can be set as only run-down, follow-uply all position or back up by the result that scanning obtains for the first time.In a preferred implementation, locating in the process of the tape resource that described resource name is corresponding according to the sequence number of described tape resource, when the sequence number adopting and device name are initial configuration, tape is scanned to the sequence number and the device name that obtain.
In above-mentioned each preferred implementation, this backup method is applied in linux system.
Preferably, can the corresponding relation between sequence number and resource name be solidificated in system by the mode of Perl source code.
A kind of back-up device is also provided in the present embodiment, and this device is used for realizing above-described embodiment and preferred implementation, has carried out repeating no more of explanation.As used below, term " unit " or " module " can realize the combination of software and/or the hardware of predetermined function.Although the described device of following examples is preferably realized with software, hardware, or the realization of the combination of software and hardware also may and be conceived.Fig. 3 is a kind of preferred structure block diagram according to the back-up device of the embodiment of the present invention, as shown in Figure 3, comprising: receiving element 302, determining unit 304, positioning unit 306 and backup units 308, describe this structure below.
Receiving element 302, for receiving the backup request of backup client;
Determining unit 304, is coupled with receiving element 302, for determining the resource name of the tape resource that is in advance described backup client and/or backup server distribution;
Positioning unit 306, be coupled with determining unit 304, for locating according to the sequence number of described tape resource the tape resource that described resource name is corresponding, wherein, described sequence number and described resource name are relations one to one, and corresponding relation between described sequence number and described resource name is cured in system;
Backup units 308, is coupled with positioning unit 306, for backing up by the tape resource navigating to.
In a preferred implementation, as shown in Figure 4, above-mentioned positioning unit comprises: acquisition module 402, and for the Robot Name of the mechanical arm distributing for described backup client and/or backup server that obtains that system stores, and the magnetic tape station title of the magnetic tape station distributing; First searches module 404, be coupled with acquisition module 402, for searching the mechanical arm corresponding with described Robot Name according to the corresponding relation between described Robot Name and described mechanical arm sequence number, and search the tape corresponding with this Robot Name in groove position; Second searches module 406, and first searches module 404 and is coupled, for searching the magnetic tape station corresponding with described magnetic tape station title according to the corresponding relation between described magnetic tape station title and magnetic tape station sequence number at the described tape of determining; Locating module 408, and second searches module 406 and is coupled, for using the magnetic tape station finding as the tape resource navigating to.
In a preferred implementation, above-mentioned back-up device also comprises: solidified cell, and for the corresponding relation between described sequence number and described resource name being solidificated in to system by Perl source code.
In above-mentioned preferred implementation, the mechanical arm of tape library and the sequence number of magnetic tape station are unique, and therefore, in the process that the equipment on Linux generates, device name and sequence number that assurance system generates are one to one, and are permanent.The title persistence instrument that can develop by Perl mechanical arm and magnetic tape station equipment, can ensure no matter be that system is restarted or again equipment scanned, the device name of mechanical arm and magnetic tape station can not change by this title persistence instrument.Preferably, can also configure and not allow backup software rescan equipment before application mechanical arm and magnetic tape station, so not only improved execution efficiency but also simplified management.
In another embodiment, also provide a kind of software, the technical scheme that this software is described for carrying out above-described embodiment and preferred implementation.
In another embodiment, also provide a kind of storage medium, stored above-mentioned software in this storage medium, this storage medium includes but not limited to: CD, floppy disk, hard disk, scratch pad memory etc.
From above description, can find out, the present invention has realized following technique effect: will in system, solidify in advance the corresponding relation between resource name and the sequence number of tape resource, like this, because the sequence number of equipment is to be constant always, if set up so the one-to-one relationship between resource name and sequence number, also so corresponding relation is solidificated in system simultaneously, also just can pass through machinery and equipment of the unique identification of resource name, and can not change along with the variation of environment.Efficiently solve by the way in prior art, the device name of tape resource can change and the resource location that causes is wrong and the technical matters of the backup inefficiency that causes has reached the technique effect that improves backup efficiency.
Obviously, those skilled in the art should be understood that, above-mentioned of the present invention each module or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on the network that multiple calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in memory storage and be carried out by calculation element, and in some cases, can carry out shown or described step with the order being different from herein, or they are made into respectively to each integrated circuit modules, or the multiple modules in them or step are made into single integrated circuit module to be realized.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (10)

1. a backup method, is characterized in that, comprising:
Receive the backup request of backup client;
Determine the resource name of the tape resource that is in advance described backup client and/or backup server distribution;
Locate according to the sequence number of described tape resource the tape resource that described resource name is corresponding, wherein, described sequence number and described resource name are relations one to one, and corresponding relation between described sequence number and described resource name is cured in system;
Back up by the tape resource navigating to.
2. method according to claim 1, is characterized in that, described tape resource comprises: mechanical arm and/or magnetic tape station.
3. method according to claim 2, is characterized in that, locates the tape resource that described resource name is corresponding comprise according to the sequence number of described tape resource:
Obtain the Robot Name of the mechanical arm for described backup client and/or backup server distribution of storing in system, and the magnetic tape station title of the magnetic tape station distributing;
Search the mechanical arm corresponding with described Robot Name according to the corresponding relation between described Robot Name and described mechanical arm sequence number, and search the tape corresponding with this Robot Name in groove position;
In the described tape of determining, search the magnetic tape station corresponding with described magnetic tape station title according to the corresponding relation between described magnetic tape station title and magnetic tape station sequence number;
Using the magnetic tape station finding as the tape resource navigating to.
4. method according to claim 1, it is characterized in that, locating in the process of the tape resource that described resource name is corresponding according to the sequence number of described tape resource, when the sequence number adopting and device name are initial configuration, tape is scanned to the sequence number and the device name that obtain.
5. according to the method described in any one in claim 1 to 4, it is characterized in that, be applied in linux system.
6. according to the method described in any one in claim 1 to 4, it is characterized in that, by Perl source code, the corresponding relation between described sequence number and described resource name is solidificated in system.
7. a back-up device, is characterized in that, comprising:
Receiving element, for receiving the backup request of backup client;
Determining unit, for determining the resource name of the tape resource that is in advance described backup client and/or backup server distribution;
Positioning unit, for locating according to the sequence number of described tape resource the tape resource that described resource name is corresponding, wherein, described sequence number and described resource name are relations one to one, and corresponding relation between described sequence number and described resource name is cured in system;
Backup units, for backing up by the tape resource navigating to.
8. device according to claim 7, is characterized in that, described tape resource comprises: mechanical arm and/or magnetic tape station.
9. device according to claim 8, is characterized in that, described positioning unit comprises:
Acquisition module, for the Robot Name of the mechanical arm distributing for described backup client and/or backup server that obtains that system stores, and the magnetic tape station title of the magnetic tape station distributing;
First searches module, for searching the mechanical arm corresponding with described Robot Name according to the corresponding relation between described Robot Name and described mechanical arm sequence number, and searches the tape corresponding with this Robot Name in groove position;
Second searches module, for searching the magnetic tape station corresponding with described magnetic tape station title according to the corresponding relation between described magnetic tape station title and magnetic tape station sequence number at the described tape of determining;
Locating module, for using the magnetic tape station finding as the tape resource navigating to.
10. device according to claim 7, is characterized in that, also comprises: solidified cell, and for the corresponding relation between described sequence number and described resource name being solidificated in to system by Perl source code.
CN201210460359.8A 2012-11-15 2012-11-15 Backup method and device Pending CN103810059A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210460359.8A CN103810059A (en) 2012-11-15 2012-11-15 Backup method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210460359.8A CN103810059A (en) 2012-11-15 2012-11-15 Backup method and device

Publications (1)

Publication Number Publication Date
CN103810059A true CN103810059A (en) 2014-05-21

Family

ID=50706864

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210460359.8A Pending CN103810059A (en) 2012-11-15 2012-11-15 Backup method and device

Country Status (1)

Country Link
CN (1) CN103810059A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1760985A (en) * 2004-10-15 2006-04-19 中央电视台 Manipulator tape library system
CN1801923A (en) * 2005-01-05 2006-07-12 中央电视台 Graded memory management system
CN1831781A (en) * 2005-03-09 2006-09-13 株式会社日立制作所 Computer system and data backup method in computer system
JP2007293665A (en) * 2006-04-26 2007-11-08 Hitachi Computer Peripherals Co Ltd Information storage system using virtual tape library
CN101727291A (en) * 2008-10-14 2010-06-09 北京众志和达信息技术有限公司 System and method for embedded integrated virtual tape library
CN102117231A (en) * 2009-12-30 2011-07-06 上海文广互动电视有限公司 Distributed data backup and disaster tolerance system and method
CN102521072A (en) * 2011-11-25 2012-06-27 成都市华为赛门铁克科技有限公司 Virtual tape library equipment and data recovery method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1760985A (en) * 2004-10-15 2006-04-19 中央电视台 Manipulator tape library system
CN1801923A (en) * 2005-01-05 2006-07-12 中央电视台 Graded memory management system
CN1831781A (en) * 2005-03-09 2006-09-13 株式会社日立制作所 Computer system and data backup method in computer system
JP2007293665A (en) * 2006-04-26 2007-11-08 Hitachi Computer Peripherals Co Ltd Information storage system using virtual tape library
CN101727291A (en) * 2008-10-14 2010-06-09 北京众志和达信息技术有限公司 System and method for embedded integrated virtual tape library
CN102117231A (en) * 2009-12-30 2011-07-06 上海文广互动电视有限公司 Distributed data backup and disaster tolerance system and method
CN102521072A (en) * 2011-11-25 2012-06-27 成都市华为赛门铁克科技有限公司 Virtual tape library equipment and data recovery method

Similar Documents

Publication Publication Date Title
CN100472445C (en) Configuring load application method and system of communication apparatus
CN103763129B (en) A kind of PCIe equipment management method and device
US9170961B2 (en) Location of computing assets within an organization
CN109543462B (en) Equipment identification determination method, device, server and storage medium
CN102202087B (en) Method for identifying storage equipment and system thereof
CN103049355B (en) Method and equipment for database system recovery
CN107733720B (en) Portable firmware upgrading method and device
CN102413156B (en) Distributed data storage system and method
CN103064757A (en) Method and system for backing up data
CN105242990A (en) Cloud platform based data backup method and apparatus
CN107566518B (en) Method and device for managing equipment information in file installation process
CN109117305B (en) Data backup method, device and equipment and computer readable storage medium
CN103441861A (en) Method and device for generating data records
CN103136342A (en) Searching method, system and searching server of application programs (APP)
CN105224396A (en) A kind of business data processing method and device
CN103997711A (en) Method for realizing positioning server at mobile terminal and software development kit module
CN109144782A (en) A kind of data reconstruction method and device
CN109165175A (en) Device identification generation method and device
CN105760251B (en) A kind of method and apparatus of Backup Data
CN104793981A (en) Online snapshot managing method and device for virtual machine cluster
CN102118780A (en) Method and base station for using multiple clock sources
CN102523112B (en) Information processing method and equipment
CN103810059A (en) Backup method and device
CN105786650A (en) Data management method and device
CN102946403B (en) A kind of method of the solution file conflict for cloud storage system and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20140521

RJ01 Rejection of invention patent application after publication