TW202020661A - Data backup method and device - Google Patents

Data backup method and device Download PDF

Info

Publication number
TW202020661A
TW202020661A TW108132241A TW108132241A TW202020661A TW 202020661 A TW202020661 A TW 202020661A TW 108132241 A TW108132241 A TW 108132241A TW 108132241 A TW108132241 A TW 108132241A TW 202020661 A TW202020661 A TW 202020661A
Authority
TW
Taiwan
Prior art keywords
data
backed
memory
rdma network
identification information
Prior art date
Application number
TW108132241A
Other languages
Chinese (zh)
Inventor
崔釗
武鵬
喻鵬
李常青
Original Assignee
香港商阿里巴巴集團服務有限公司
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 香港商阿里巴巴集團服務有限公司 filed Critical 香港商阿里巴巴集團服務有限公司
Publication of TW202020661A publication Critical patent/TW202020661A/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1461Backup scheduling policy
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1464Management of the backup or restore process for networked environments

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Retry When Errors Occur (AREA)

Abstract

One or more embodiments of the invention disclose a data backup method and a data backup device, which are used for improving the data backup efficiency. The method is applied to an RDMA network cardarranged in first equipment, and comprises the following steps: responding to a data backup request sent by second equipment, and establishing an RDMA network connection relationship with the second equipment; Wherein the data backup request comprises identification information of data to be backed up; Based on the RDMA network connection relationship, obtaining the to-be-backed-up data corresponding to the identification information from the second device; And transmitting the to-be-backed-up data to a memory of the first device, so that the memory of the first device stores the to-be-backed-up data.

Description

資料備份方法及裝置Data backup method and device

本發明涉及資料處理技術領域,尤其涉及一種資料備份方法及裝置。The invention relates to the technical field of data processing, in particular to a data backup method and device.

現有技術中,分散式資料備份方案一般依賴於兩個方面:一方面是採用傳統網路連接,由於傳統網路連接必須由兩台電腦的CPU(Central Processing Unit,中央處理器)參與才能夠實現資料傳輸,因此會極大增加時間開銷,一般在100微秒以上才可完成資料備份;另一方面是備份機的備份介質為固態硬碟,而固態硬碟的典型延遲也在100微秒數量級。因此,傳統的資料備份方式單次耗時均在100微秒數量級之上,耗時較長,導致效率較低。In the prior art, the distributed data backup solution generally relies on two aspects: on the one hand, the traditional network connection is used, because the traditional network connection must be implemented by the CPU (Central Processing Unit) of two computers. Data transmission will greatly increase the time overhead. Generally, data backup can be completed in more than 100 microseconds. On the other hand, the backup medium of the backup machine is a solid state drive, and the typical delay of solid state drives is also on the order of 100 microseconds. Therefore, the traditional data backup method takes more than 100 microseconds in a single time, which takes a long time, resulting in low efficiency.

本發明一個或多個實施例的目的是提供一種資料備份方法及裝置,用以提高資料備份的效率。 為解決上述技術問題,本發明一個或多個實施例是這樣實現的: 一方面,本發明一個或多個實施例提供一種資料備份方法,應用於第一設備內設的RDMA網卡,包括: 回應於第二設備發送的資料備份請求,建立與所述第二設備之間的RDMA網路連接關係;其中,所述資料備份請求包括待備份資料的標識資訊; 基於所述RDMA網路連接關係,從所述第二設備中獲取所述標識資訊對應的所述待備份資料; 將所述待備份資料傳輸至所述第一設備的記憶體,以使所述第一設備的記憶體儲存所述待備份資料。 在一個實施例中,所述第一設備的記憶體為持久化記憶體。 在一個實施例中,所述從所述第二設備中獲取所述標識資訊對應的所述待備份資料,包括: 根據所述標識資訊,從所述第二設備的記憶體中查找所述待備份資料; 透過所述RDMA網路連接關係獲取查找到的所述待備份資料。 在一個實施例中,在將所述待備份資料傳輸至所述第一設備的記憶體之後,還包括: 監測所述待備份資料在所述第一設備的記憶體中的儲存狀態; 當所述儲存狀態為儲存完成時,產生所述待備份資料已成功備份的第一資訊; 將所述第一資訊發送至所述第二設備。 在一個實施例中,在監測所述待備份資料在所述第一設備的記憶體中的儲存狀態之前,還包括: 接收所述第二設備發送的用於確認所述待備份資料是否已成功備份的確認資訊。 另一方面,本發明一個或多個實施例提供一種資料備份裝置,應用於第一設備內設的RDMA網卡,包括: 建立模組,用於回應於第二設備發送的資料備份請求,建立與所述第二設備之間的RDMA網路連接關係;其中,所述資料備份請求包括待備份資料的標識資訊; 獲取模組,用於基於所述RDMA網路連接關係,從所述第二設備中獲取所述標識資訊對應的所述待備份資料; 傳輸模組,用於將所述待備份資料傳輸至所述第一設備的記憶體,以使所述第一設備的記憶體儲存所述待備份資料。 在一個實施例中,所述第一設備的記憶體為持久化記憶體。 在一個實施例中,所述獲取模組包括: 查找單元,用於根據所述標識資訊,從所述第二設備的記憶體中查找所述待備份資料; 獲取單元,用於透過所述RDMA網路連接關係獲取查找到的所述待備份資料。 在一個實施例中,所述裝置還包括: 監測模組,用於在將所述待備份資料傳輸至所述第一設備的記憶體之後,監測所述待備份資料在所述第一設備的記憶體中的儲存狀態; 產生模組,用於當所述儲存狀態為儲存完成時,產生所述待備份資料已成功備份的第一資訊; 發送模組,用於將所述第一資訊發送至所述第二設備。 在一個實施例中,所述裝置還包括: 接收模組,用於在監測所述待備份資料在所述第一設備的記憶體中的儲存狀態之前,接收所述第二設備發送的用於確認所述待備份資料是否已成功備份的確認資訊。 再一方面,本發明一個或多個實施例提供一種資料備份設備,應用於第一設備內設的RDMA網卡,包括: 處理器;以及 被安排成儲存電腦可執行指令的記憶體,所述可執行指令在被執行時使所述處理器: 回應於第二設備發送的資料備份請求,建立與所述第二設備之間的RDMA網路連接關係;其中,所述資料備份請求包括待備份資料的標識資訊; 基於所述RDMA網路連接關係,從所述第二設備中獲取所述標識資訊對應的所述待備份資料; 將所述待備份資料傳輸至所述第一設備的記憶體,以使所述第一設備的記憶體儲存所述待備份資料。 再一方面,本申請實施例提供一種儲存介質,用於儲存電腦可執行指令,所述可執行指令在被執行時實現以下流程: 回應於第二設備發送的資料備份請求,建立與所述第二設備之間的RDMA網路連接關係;其中,所述資料備份請求包括待備份資料的標識資訊; 基於所述RDMA網路連接關係,從所述第二設備中獲取所述標識資訊對應的所述待備份資料; 將所述待備份資料傳輸至所述第一設備的記憶體,以使所述第一設備的記憶體儲存所述待備份資料。 採用本發明一個或多個實施例的技術方案,透過第一設備內設的RDMA網卡,建立第一設備與第二設備之間的RDMA網路連接關係,並基於該RDMA網路連接關係從第二設備中獲取待備份資料,進而直接將待備份資料傳輸至第一設備的記憶體,以使第一設備的記憶體儲存待備份資料。可見,該技術方案在整個資料備份過程中,並不需要第一設備或第二設備的CPU參與(即無需CPU與任一設備或設備中的記憶體進行交互),而只需利用第一設備內設的RDMA網卡直接從第二設備中獲取待備份資料並傳輸至記憶體即可完成資料備份,因此極大地提高了資料備份的效率。 進一步地,由於第一設備中的記憶體為持久化記憶體,因此相較於傳統的採用固態硬碟備份資料的方式而言,該技術方案能夠避免固態硬碟帶來的高延遲問題,實現了高效備份資料的效果。An object of one or more embodiments of the present invention is to provide a data backup method and device to improve the efficiency of data backup. To solve the above technical problems, one or more embodiments of the present invention are implemented as follows: On the one hand, one or more embodiments of the present invention provide a data backup method, which is applied to the RDMA network card provided in the first device, and includes: In response to the data backup request sent by the second device, establish an RDMA network connection relationship with the second device; wherein the data backup request includes identification information of the data to be backed up; Acquiring the data to be backed up corresponding to the identification information from the second device based on the RDMA network connection relationship; Transmitting the data to be backed up to the memory of the first device, so that the memory of the first device stores the data to be backed up. In one embodiment, the memory of the first device is persistent memory. In one embodiment, the acquiring the data to be backed up corresponding to the identification information from the second device includes: Searching the data to be backed up from the memory of the second device according to the identification information; Obtain the found data to be backed up through the RDMA network connection relationship. In one embodiment, after the data to be backed up is transferred to the memory of the first device, the method further includes: Monitoring the storage status of the data to be backed up in the memory of the first device; When the storage status is that the storage is completed, the first information that the data to be backed up has been successfully backed up is generated; Sending the first information to the second device. In one embodiment, before monitoring the storage status of the data to be backed up in the memory of the first device, the method further includes: Receiving confirmation information sent by the second device to confirm whether the data to be backed up has been successfully backed up. On the other hand, one or more embodiments of the present invention provide a data backup device, which is applied to an RDMA network card built in a first device, and includes: Establishing a module for responding to a data backup request sent by a second device to establish an RDMA network connection relationship with the second device; wherein the data backup request includes identification information of the data to be backed up; An obtaining module, configured to obtain the data to be backed up corresponding to the identification information from the second device based on the RDMA network connection relationship; The transmission module is used for transmitting the data to be backed up to the memory of the first device, so that the memory of the first device stores the data to be backed up. In one embodiment, the memory of the first device is persistent memory. In one embodiment, the acquisition module includes: A searching unit, configured to search the data to be backed up from the memory of the second device according to the identification information; The obtaining unit is configured to obtain the found data to be backed up through the RDMA network connection relationship. In one embodiment, the device further includes: A monitoring module, configured to monitor the storage status of the data to be backed up in the memory of the first device after transmitting the data to be backed up to the memory of the first device; A generating module, used to generate the first information that the data to be backed up has been successfully backed up when the storage status is storage completion; The sending module is used to send the first information to the second device. In one embodiment, the device further includes: The receiving module is used for receiving confirmation from the second device to confirm whether the data to be backed up has been successfully backed up before monitoring the storage status of the data to be backed up in the memory of the first device News. In still another aspect, one or more embodiments of the present invention provide a data backup device, which is applied to an RDMA network card built in the first device, and includes: Processor; and A memory arranged to store computer executable instructions which, when executed, causes the processor to: In response to the data backup request sent by the second device, establish an RDMA network connection relationship with the second device; wherein the data backup request includes identification information of the data to be backed up; Acquiring the data to be backed up corresponding to the identification information from the second device based on the RDMA network connection relationship; Transmitting the data to be backed up to the memory of the first device, so that the memory of the first device stores the data to be backed up. In yet another aspect, embodiments of the present application provide a storage medium for storing computer executable instructions, which when executed are implemented as follows: In response to the data backup request sent by the second device, establish an RDMA network connection relationship with the second device; wherein the data backup request includes identification information of the data to be backed up; Acquiring the data to be backed up corresponding to the identification information from the second device based on the RDMA network connection relationship; Transmitting the data to be backed up to the memory of the first device, so that the memory of the first device stores the data to be backed up. According to the technical solution of one or more embodiments of the present invention, an RDMA network card built in the first device is used to establish an RDMA network connection relationship between the first device and the second device, and based on the RDMA network connection relationship The second device obtains the data to be backed up, and then directly transmits the data to be backed up to the memory of the first device, so that the memory of the first device stores the data to be backed up. It can be seen that this technical solution does not require the CPU of the first device or the second device to participate in the entire data backup process (that is, the CPU does not need to interact with any device or the memory in the device), but only needs to use the first device The built-in RDMA network card directly obtains the data to be backed up from the second device and transfers it to the memory to complete the data backup, thus greatly improving the efficiency of data backup. Further, since the memory in the first device is a persistent memory, compared with the traditional method of backing up data with a solid state drive, this technical solution can avoid the high latency problem caused by the solid state drive and realize The effect of backing up data efficiently.

本發明一個或多個實施例提供一種資料備份方法及裝置,用以提高資料備份的效率。 為了使本技術領域的人員更好地理解本發明一個或多個實施例中的技術方案,下面將結合本發明一個或多個實施例中的圖式,對本發明一個或多個實施例中的技術方案進行清楚、完整地描述,顯然,所描述的實施例僅僅是本發明一部分實施例,而不是全部的實施例。基於本發明一個或多個實施例,本領域普通技術人員在沒有作出創造性勞動前提下所獲得的所有其他實施例,都應當屬於本發明一個或多個實施例保護的範圍。 圖1是根據本發明一實施例的一種資料備份方法的示意性流程圖,如圖1所示,該方法應用於第一設備內設的RDMA網卡,包括: S102,回應於第二設備發送的資料備份請求,建立與第二設備之間的RDMA網路連接關係。 其中,資料備份請求包括待備份資料的標識資訊。 標識資訊可以是待備份資料在第二設備中的位置資訊,也可以是待備份資料對應的用於標識其具體內容的資訊,如具體內容的關鍵字元、初始字元等。 S104,基於RDMA網路連接關係,從第二設備中獲取標識資訊對應的待備份資料。 S106,將待備份資料傳輸至第一設備的記憶體,以使第一設備的記憶體儲存待備份資料。 採用本發明一個或多個實施例的技術方案,透過第一設備內設的RDMA網卡,建立第一設備與第二設備之間的RDMA網路連接關係,並基於該RDMA網路連接關係從第二設備中獲取待備份資料,進而直接將待備份資料傳輸至第一設備的記憶體,以使第一設備的記憶體儲存待備份資料。可見,該技術方案在整個資料備份過程中,並不需要第一設備或第二設備的CPU參與(即無需CPU與任一設備或設備中的記憶體進行交互),而只需利用第一設備內設的RDMA網卡直接從第二設備中獲取待備份資料並傳輸至記憶體即可完成資料備份,因此極大地提高了資料備份的效率。 在一個實施例中,第一設備的記憶體為持久化記憶體。其中,持久化記憶體不僅具備記憶體的訪問特性,且能夠保證其內部所儲存的資料不遺失。 本實施例中,由於第一設備中的記憶體為持久化記憶體,因此相較於傳統的採用固態硬碟備份資料的方式而言,該技術方案能夠避免固態硬碟帶來的高延遲及資料遺失問題,實現了高效備份資料的效果。 在一個實施例中,從第二設備中獲取標識資訊對應的待備份資料時,可先根據資料備份請求中待備份資料的標識資訊,從第二設備的記憶體中查找待備份資料,進而透過RDMA網路連接關係獲取查找到的待備份資料。其中,標識資訊可以是待備份資料在第二設備中的位置資訊,也可以是待備份資料對應的用於標識其具體內容的資訊。 在一個實施例中,在將待備份資料傳輸至第一設備的記憶體之後,可監測待備份資料在第一設備的記憶體中的儲存狀態,當儲存狀態為儲存完成時,產生用於標識待備份資料已成功備份的第一資訊,並將該第一資訊發送至第二設備。 當儲存狀態為儲存失敗時,可向第二設備發送重新獲取待備份資料的獲取請求,第二設備根據該獲取請求再次將記憶體中的待備份資料發送至第一設備的RDMA網卡,以使RDMA網卡重新將待備份資料儲存至第一設備的記憶體中。 本實施例中,透過監測待備份資料在第一設備的記憶體中的儲存狀態,能夠確保待備份資料成功備份在第一設備中,避免待備份資料儲存失敗時遺失資料的情況。 在一個實施例中,在監測待備份資料在第一設備的記憶體中的儲存狀態之前,可接收第二設備發送的用於確認待備份資料是否已成功備份的確認資訊。 本實施例中,第一設備的RDMA網卡可被動接收由第二設備發送的用於確認待備份資料是否備份成功的確認資訊,然後,第一設備的RDMA網卡根據該確認資訊確認記憶體中是否已成功儲存待備份資料,若記憶體中已成功儲存待備份資料,則產生用於標識待備份資料已成功備份的第二資訊,並將該第二資訊發送至第二設備。 若記憶體中未成功儲存待備份資料,則向第二設備發送重新獲取待備份資料的獲取請求,第二設備根據該獲取請求再次將記憶體中的待備份資料發送至第一設備的RDMA網卡,RDMA網卡重新將待備份資料儲存至第一設備的記憶體中。 圖2是根據本發明一實施例的一種資料備份系統的示意性方塊圖。如圖2所示,資料備份系統包括第一設備210和第二設備220;其中,第一設備210包括CPU211、RDMA網卡212和持久化記憶體213;第二設備220包括CPU221、網卡222和記憶體223。RDMA網卡212和網卡222之間的虛線箭頭表示二者之間的網路連接關係。 將上述實施例中提供的資料備份方法應用於圖3所示的資料備份系統中,具體步驟可包括圖3所示的如下步驟: S301,第二設備的CPU向第一設備的RDMA網卡發送資料備份請求,該資料備份請求中包括待備份資料的標識資訊。 其中,標識資訊可以是待備份資料在第二設備中的位置資訊,也可以是待備份資料對應的用於標識其具體內容的資訊,如具體內容的關鍵字元、初始字元等。 S302,第一設備的RDMA網卡接收到資料備份請求後,建立RDMA網卡與第二設備的網卡之間的RDMA網路連接關係。 S303,第一設備的RDMA網卡基於RDMA網路連接關係,根據待備份資料的標識資訊從第二設備的記憶體中查找並獲取待備份資料。 S304,第一設備的RDMA網卡將獲取到的待備份資料傳輸至持久化記憶體。 S305,第一設備的持久化記憶體儲存待備份資料。 S306,第二設備的網卡向第一設備的RDMA網卡發送用於確認待備份資料是否已成功備份的確認資訊。 S307,第一設備的RDMA網卡根據確認資訊,監測持久化記憶體中是否已成功儲存待備份資料;若是,則執行S308;若否,則返回S303。 S308,第一設備的RDMA網卡產生用於標識待備份資料已成功備份的資訊,並將該資訊發送至第二設備的網卡。 本實施例中,透過第一設備內設的RDMA網卡建立第一設備與第二設備之間的RDMA網路連接關係,並基於該RDMA網路連接關係從第二設備中獲取待備份資料,進而直接將待備份資料傳輸至第一設備的持久化記憶體,以使第一設備的持久化記憶體儲存待備份資料。可見,該技術方案在整個資料備份過程中,並不需要第一設備或第二設備的CPU參與(即無需CPU與任一設備或設備中的記憶體進行交互),而只需利用第一設備內設的RDMA網卡直接從第二設備中獲取待備份資料並傳輸至持久化記憶體即可完成資料備份,因此極大地提高了資料備份的效率。並且,基於持久化記憶體能夠保證其內部儲存的資料不遺失的特性,該技術方案還能避免傳統的固態硬碟帶來的高延遲及資料遺失問題,實現了高效備份資料的效果。 綜上,已經對本主題的特定實施例進行了描述。其它實施例在所附請求項書的範圍內。在一些情況下,在請求項書中記載的動作可以按照不同的順序來執行並且仍然可以實現期望的結果。另外,在圖式中描繪的過程不一定要求示出的特定順序或者連續順序,以實現期望的結果。在某些實施方式中,多工處理和並行處理可以是有利的。 以上為本發明一個或多個實施例提供的資料備份方法,基於同樣的思路,本發明一個或多個實施例還提供一種資料備份裝置。 圖4是根據本發明一實施例的一種資料備份裝置的示意性流程圖,如圖4所示,資料備份裝置400應用於第一設備內設的RDMA網卡,包括: 建立模組410,用於回應於第二設備發送的資料備份請求,建立與第二設備之間的RDMA網路連接關係;其中,資料備份請求包括待備份資料的標識資訊; 獲取模組420,用於基於RDMA網路連接關係,從第二設備中獲取標識資訊對應的待備份資料; 傳輸模組430,用於將待備份資料傳輸至第一設備的記憶體,以使第一設備的記憶體儲存待備份資料。 在一個實施例中,第一設備的記憶體為持久化記憶體。 在一個實施例中,獲取模組420包括: 查找單元,用於根據標識資訊,從第二設備的記憶體中查找待備份資料; 獲取單元,用於透過RDMA網路連接關係獲取查找到的待備份資料。 在一個實施例中,裝置400還包括: 監測模組,用於在將待備份資料傳輸至第一設備的記憶體之後,監測待備份資料在第一設備的記憶體中的儲存狀態; 產生模組,用於當儲存狀態為儲存完成時,產生待備份資料已成功備份的第一資訊; 發送模組,用於將第一資訊發送至第二設備。 在一個實施例中,裝置400還包括: 接收模組,用於在監測待備份資料在第一設備的記憶體中的儲存狀態之前,接收第二設備發送的用於確認待備份資料是否已成功備份的確認資訊。 採用本發明一個或多個實施例的裝置,透過第一設備內設的RDMA網卡,建立第一設備與第二設備之間的RDMA網路連接關係,並基於該RDMA網路連接關係從第二設備中獲取待備份資料,進而直接將待備份資料傳輸至第一設備的記憶體,以使第一設備的記憶體儲存待備份資料。可見,該技術方案在整個資料備份過程中,並不需要第一設備或第二設備的CPU參與(即無需CPU與任一設備或設備中的記憶體進行交互),而只需利用第一設備內設的RDMA網卡直接從第二設備中獲取待備份資料並傳輸至記憶體即可完成資料備份,因此極大地提高了資料備份的效率。 進一步地,由於第一設備中的記憶體為持久化記憶體,因此相較於傳統的採用固態硬碟備份資料的方式而言,該裝置能夠避免固態硬碟帶來的高延遲問題,實現了高效備份資料的效果。 本領域的技術人員應可理解,上述資料備份裝置能夠用來實現前文所述的資料備份方法,其中的細節描述應與前文方法部分描述類似,為避免繁瑣,此處不另贅述。 基於同樣的思路,本發明一個或多個實施例還提供一種資料備份設備,如圖5所示。資料備份設備可因配置或性能不同而產生比較大的差異,可以包括一個或一個以上的處理器501和記憶體502,記憶體502中可以儲存有一個或一個以上儲存應用程式或資料。其中,記憶體502可以是短暫儲存或持久儲存。儲存在記憶體502的應用程式可以包括一個或一個以上模組(圖示未示出),每個模組可以包括對資料備份設備中的一系列電腦可執行指令。更進一步地,處理器501可以設置為與記憶體502通信,在資料備份設備上執行記憶體502中的一系列電腦可執行指令。資料備份設備還可以包括一個或一個以上電源503,一個或一個以上有線或無線網路介面504,一個或一個以上輸入輸出介面505,一個或一個以上鍵盤506。 具體在本實施例中,資料備份設備包括有記憶體,以及一個或一個以上的程式,其中一個或者一個以上程式儲存於記憶體中,且一個或者一個以上程式可以包括一個或一個以上模組,且每個模組可以包括對資料備份設備中的一系列電腦可執行指令,且經配置以由一個或者一個以上處理器執行該一個或者一個以上套裝程式含用於進行以下電腦可執行指令: 回應於第二設備發送的資料備份請求,建立與所述第二設備之間的RDMA網路連接關係;其中,所述資料備份請求包括待備份資料的標識資訊; 基於所述RDMA網路連接關係,從所述第二設備中獲取所述標識資訊對應的所述待備份資料; 將所述待備份資料傳輸至所述第一設備的記憶體,以使所述第一設備的記憶體儲存所述待備份資料。 可選地,所述第一設備的記憶體為持久化記憶體。 可選地,電腦可執行指令在被執行時,還可以使所述處理器: 根據所述標識資訊,從所述第二設備的記憶體中查找所述待備份資料; 透過所述RDMA網路連接關係獲取查找到的所述待備份資料。 可選地,電腦可執行指令在被執行時,還可以使所述處理器: 在將所述待備份資料傳輸至所述第一設備的記憶體之後,監測所述待備份資料在所述第一設備的記憶體中的儲存狀態; 當所述儲存狀態為儲存完成時,產生所述待備份資料已成功備份的第一資訊; 將所述第一資訊發送至所述第二設備。 可選地,電腦可執行指令在被執行時,還可以使所述處理器: 在監測所述待備份資料在所述第一設備的記憶體中的儲存狀態之前,接收所述第二設備發送的用於確認所述待備份資料是否已成功備份的確認資訊。 本發明一個或多個實施例還提出了一種電腦可讀儲存介質,該電腦可讀儲存介質儲存一個或多個程式,該一個或多個程式包括指令,該指令當被包括多個應用程式的電子設備執行時,能夠使該電子設備執行上述資料備份方法,並具體用於執行: 回應於第二設備發送的資料備份請求,建立與所述第二設備之間的RDMA網路連接關係;其中,所述資料備份請求包括待備份資料的標識資訊; 基於所述RDMA網路連接關係,從所述第二設備中獲取所述標識資訊對應的所述待備份資料; 將所述待備份資料傳輸至所述第一設備的記憶體,以使所述第一設備的記憶體儲存所述待備份資料。 上述實施例闡明的系統、裝置、模組或單元,具體可以由電腦晶片或實體實現,或者由具有某種功能的產品來實現。一種典型的實現設備為電腦。具體的,電腦例如可以為個人電腦、筆記型電腦、蜂巢式電話、相機電話、智慧型電話、個人數位助理、媒體播放機、導航設備、電子郵件設備、遊戲控制台、平板電腦、可穿戴設備或者這些設備中的任何設備的組合。 為了描述的方便,描述以上裝置時以功能分為各種單元分別描述。當然,在實施本發明一個或多個實施例時可以把各單元的功能在同一個或多個軟體和/或硬體中實現。 本領域內的技術人員應明白,本發明一個或多個實施例可提供為方法、系統、或電腦程式產品。因此,本發明一個或多個實施例可採用完全硬體實施例、完全軟體實施例、或結合軟體和硬體方面的實施例的形式。而且,本發明一個或多個實施例可採用在一個或多個其中包含有電腦可用程式碼的電腦可用儲存介質(包括但不限於磁碟記憶體、CD-ROM、光學記憶體等)上實施的電腦程式產品的形式。 本發明一個或多個實施例是參照根據本申請實施例的方法、設備(系統)、和電腦程式產品的流程圖和/或方塊圖來描述的。應理解可由電腦程式指令實現流程圖和/或方塊圖中的每一流程和/或方塊、以及流程圖和/或方塊圖中的流程和/或方塊的結合。可提供這些電腦程式指令到通用電腦、專用電腦、嵌入式處理機或其他可程式設計資料處理設備的處理器以產生一個機器,使得透過電腦或其他可程式設計資料處理設備的處理器執行的指令產生用於實現在流程圖一個流程或多個流程和/或方塊圖一個方塊或多個方塊中指定的功能的裝置。 這些電腦程式指令也可儲存在能引導電腦或其他可程式設計資料處理設備以特定方式工作的電腦可讀記憶體中,使得儲存在該電腦可讀記憶體中的指令產生包括指令裝置的製造品,該指令裝置實現在流程圖一個流程或多個流程和/或方塊圖一個方塊或多個方塊中指定的功能。 這些電腦程式指令也可裝載到電腦或其他可程式設計資料處理設備上,使得在電腦或其他可程式設計設備上執行一系列操作步驟以產生電腦實現的處理,從而在電腦或其他可程式設計設備上執行的指令提供用於實現在流程圖一個流程或多個流程和/或方塊圖一個方塊或多個方塊中指定的功能的步驟。 在一個典型的配置中,計算設備包括一個或多個處理器(CPU)、輸入/輸出介面、網路介面和記憶體。 記憶體可能包括電腦可讀介質中的非永久性記憶體,隨機存取記憶體(RAM)和/或非揮發性記憶體等形式,如唯讀記憶體(ROM)或快閃記憶體(flash RAM)。記憶體是電腦可讀介質的示例。 電腦可讀介質包括永久性和非永久性、可移動和非可移動媒體可以由任何方法或技術來實現資訊儲存。資訊可以是電腦可讀指令、資料結構、程式的模組或其他資料。電腦的儲存介質的例子包括,但不限於相變記憶體(PRAM)、靜態隨機存取記憶體(SRAM)、動態隨機存取記憶體(DRAM)、其他類型的隨機存取記憶體(RAM)、唯讀記憶體(ROM)、電可擦除可程式化唯讀記憶體(EEPROM)、快閃記憶體或其他記憶體技術、唯讀光碟唯讀記憶體(CD-ROM)、數位多功能光碟(DVD)或其他光學儲存、磁盒式磁帶,磁帶磁磁片儲存或其他磁性存放裝置或任何其他非傳輸介質,可用於儲存可以被計算設備存取的資訊。按照本文中的界定,電腦可讀介質不包括暫存電腦可讀媒體(transitory media),如調變的資料信號和載波。 還需要說明的是,術語“包括”、“包含”或者其任何其他變體意在涵蓋非排他性的包含,從而使得包括一系列要素的過程、方法、商品或者設備不僅包括那些要素,而且還包括沒有明確列出的其他要素,或者是還包括為這種過程、方法、商品或者設備所固有的要素。在沒有更多限制的情況下,由語句“包括一個……”限定的要素,並不排除在包括所述要素的過程、方法、商品或者設備中還存在另外的相同要素。 本發明一個或多個實施例可以在由電腦執行的電腦可執行指令的一般上下文中描述,例如程式模組。一般地,程式模組包括執行特定任務或實現特定抽象資料類型的常式、程式、物件、元件、資料結構等等。也可以在分散式運算環境中實踐本申請,在這些分散式運算環境中,由透過通信網路而被連接的遠端處理設備來執行任務。在分散式運算環境中,程式模組可以位於包括存放裝置在內的本地和遠端電腦儲存介質中。 本發明中的各個實施例均採用遞進的方式描述,各個實施例之間相同相似的部分互相參見即可,每個實施例重點說明的都是與其他實施例的不同之處。尤其,對於系統實施例而言,由於其基本相似於方法實施例,所以描述的比較簡單,相關之處參見方法實施例的部分說明即可。 以上所述僅為本發明一個或多個實施例而已,並不用於限制本發明。對於本領域技術人員來說,本發明一個或多個實施例可以有各種更改和變化。凡在本發明一個或多個實施例的精神和原理之內所作的任何修改、等同替換、改進等,均應包含在本發明一個或多個實施例的請求項範圍之內。One or more embodiments of the present invention provide a data backup method and device to improve the efficiency of data backup. In order to enable those skilled in the art to better understand the technical solutions in one or more embodiments of the present invention, the following will be combined with the drawings in one or more embodiments of the present invention. The technical solution is described clearly and completely. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all the embodiments. Based on one or more embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of one or more embodiments of the present invention. FIG. 1 is a schematic flowchart of a data backup method according to an embodiment of the present invention. As shown in FIG. 1, the method is applied to an RDMA network card provided in a first device, including: S102. In response to the data backup request sent by the second device, establish an RDMA network connection relationship with the second device. The data backup request includes identification information of the data to be backed up. The identification information may be the location information of the data to be backed up in the second device, or may be information corresponding to the data to be backed up to identify its specific content, such as keyword elements and initial characters of the specific content. S104: Based on the RDMA network connection relationship, obtain the data to be backed up corresponding to the identification information from the second device. S106: Transmit the data to be backed up to the memory of the first device, so that the memory of the first device stores the data to be backed up. According to the technical solution of one or more embodiments of the present invention, an RDMA network card built in the first device is used to establish an RDMA network connection relationship between the first device and the second device, and based on the RDMA network connection relationship The second device obtains the data to be backed up, and then directly transmits the data to be backed up to the memory of the first device, so that the memory of the first device stores the data to be backed up. It can be seen that this technical solution does not require the CPU of the first device or the second device to participate in the entire data backup process (that is, the CPU does not need to interact with any device or the memory in the device), but only needs to use the first device The built-in RDMA network card directly obtains the data to be backed up from the second device and transfers it to the memory to complete the data backup, thus greatly improving the efficiency of data backup. In one embodiment, the memory of the first device is persistent memory. Among them, the persistent memory not only has the access characteristics of the memory, but also can ensure that the data stored in it is not lost. In this embodiment, since the memory in the first device is a persistent memory, compared with the traditional way of backing up data with a solid state drive, this technical solution can avoid the high latency and The problem of data loss realizes the effect of efficient data backup. In one embodiment, when acquiring the data to be backed up corresponding to the identification information from the second device, the data to be backed up may be searched from the memory of the second device according to the identification information of the data to be backed up in the data backup request, and then through RDMA network connection relationship to find the data to be backed up. The identification information may be the location information of the data to be backed up in the second device, or the information corresponding to the data to be backed up to identify its specific content. In one embodiment, after the data to be backed up is transferred to the memory of the first device, the storage state of the data to be backed up in the memory of the first device can be monitored, and when the storage state is the completion of storage, a flag for generating The first information that the data to be backed up has been successfully backed up and sends the first information to the second device. When the storage status is storage failure, the second device may be sent an acquisition request to re-acquire the data to be backed up, and the second device again sends the data to be backed up in the memory to the RDMA network card of the first device according to the acquisition request, so that The RDMA network card stores the data to be backed up in the memory of the first device again. In this embodiment, by monitoring the storage status of the data to be backed up in the memory of the first device, it can ensure that the data to be backed up is successfully backed up in the first device, and avoid the situation of losing the data when the storage of the data to be backed up fails. In one embodiment, before monitoring the storage status of the data to be backed up in the memory of the first device, confirmation information sent by the second device to confirm whether the data to be backed up has been successfully backed up may be received. In this embodiment, the RDMA network card of the first device can passively receive confirmation information sent by the second device to confirm whether the data to be backed up is successfully backed up, and then, the RDMA network card of the first device confirms whether the memory is in accordance with the confirmation information The data to be backed up has been successfully stored. If the data to be backed up has been successfully stored in the memory, second information for identifying that the data to be backed up has been successfully backed up is generated, and the second information is sent to the second device. If the data to be backed up is not successfully stored in the memory, an acquisition request to re-acquire the data to be backed up is sent to the second device, and the second device again sends the data to be backed up in the memory to the RDMA network card of the first device according to the acquisition request , The RDMA network card re-stores the data to be backed up in the memory of the first device. 2 is a schematic block diagram of a data backup system according to an embodiment of the present invention. As shown in FIG. 2, the data backup system includes a first device 210 and a second device 220; wherein, the first device 210 includes a CPU 211, an RDMA network card 212, and a persistent memory 213; the second device 220 includes a CPU 221, a network card 222, and memory体223. The dotted arrow between the RDMA network card 212 and the network card 222 indicates the network connection relationship between the two. Applying the data backup method provided in the above embodiment to the data backup system shown in FIG. 3, specific steps may include the following steps shown in FIG. 3: S301. The CPU of the second device sends a data backup request to the RDMA network card of the first device. The data backup request includes identification information of the data to be backed up. The identification information may be the location information of the data to be backed up in the second device, or the information corresponding to the data to be backed up to identify its specific content, such as keyword elements and initial characters of the specific content. S302. After receiving the data backup request, the RDMA network card of the first device establishes an RDMA network connection relationship between the RDMA network card and the network card of the second device. S303. Based on the RDMA network connection relationship, the RDMA network card of the first device searches and obtains the data to be backed up from the memory of the second device according to the identification information of the data to be backed up. S304. The RDMA network card of the first device transmits the obtained data to be backed up to the persistent memory. S305. The persistent memory of the first device stores the data to be backed up. S306. The network card of the second device sends confirmation information for confirming whether the data to be backed up has been successfully backed up to the RDMA network card of the first device. S307. The RDMA network card of the first device monitors whether the data to be backed up has been successfully stored in the persistent memory according to the confirmation information; if yes, execute S308; if not, return to S303. S308, the RDMA network card of the first device generates information for identifying that the data to be backed up has been successfully backed up, and sends the information to the network card of the second device. In this embodiment, the RDMA network connection relationship between the first device and the second device is established through the RDMA network card built in the first device, and the data to be backed up is obtained from the second device based on the RDMA network connection relationship, and The data to be backed up is directly transferred to the persistent memory of the first device, so that the persistent memory of the first device stores the data to be backed up. It can be seen that this technical solution does not require the CPU of the first device or the second device to participate in the entire data backup process (that is, the CPU does not need to interact with any device or the memory in the device), but only needs to use the first device The built-in RDMA network card directly obtains the data to be backed up from the second device and transfers it to the persistent memory to complete the data backup, thus greatly improving the efficiency of data backup. In addition, based on the characteristics of persistent memory to ensure that the internally stored data is not lost, the technical solution can also avoid the high latency and data loss problems caused by traditional solid-state hard drives, and achieve the effect of efficiently backing up data. In summary, specific embodiments of the subject matter have been described. Other embodiments are within the scope of the attached claims. In some cases, the actions recorded in the request item can be performed in a different order and still achieve the desired result. Additionally, the processes depicted in the drawings do not necessarily require the particular order shown, or sequential order, to achieve the desired results. In some embodiments, multiplexing and parallel processing may be advantageous. The above is the data backup method provided by one or more embodiments of the present invention. Based on the same idea, one or more embodiments of the present invention also provide a data backup device. FIG. 4 is a schematic flowchart of a data backup device according to an embodiment of the present invention. As shown in FIG. 4, the data backup device 400 is applied to an RDMA network card built in a first device, and includes: The establishment module 410 is used for responding to the data backup request sent by the second device and establishing an RDMA network connection relationship with the second device; wherein the data backup request includes identification information of the data to be backed up; The obtaining module 420 is used to obtain the data to be backed up corresponding to the identification information from the second device based on the RDMA network connection relationship; The transmission module 430 is used to transmit the data to be backed up to the memory of the first device, so that the memory of the first device stores the data to be backed up. In one embodiment, the memory of the first device is persistent memory. In one embodiment, the obtaining module 420 includes: The searching unit is used for searching the data to be backed up from the memory of the second device according to the identification information; The obtaining unit is used to obtain the found data to be backed up through the RDMA network connection relationship. In one embodiment, the device 400 further includes: The monitoring module is used to monitor the storage status of the data to be backed up in the memory of the first device after transmitting the data to be backed up to the memory of the first device; The generating module is used to generate the first information that the data to be backed up has been successfully backed up when the storage status is storage completion; The sending module is used to send the first information to the second device. In one embodiment, the device 400 further includes: The receiving module is configured to receive confirmation information sent by the second device to confirm whether the data to be backed up has been successfully backed up before monitoring the storage status of the data to be backed up in the memory of the first device. With the apparatus of one or more embodiments of the present invention, an RDMA network card built in the first device is used to establish an RDMA network connection relationship between the first device and the second device, and based on the RDMA network connection relationship from the second The device obtains the data to be backed up, and then directly transmits the data to be backed up to the memory of the first device, so that the memory of the first device stores the data to be backed up. It can be seen that this technical solution does not require the CPU of the first device or the second device to participate in the entire data backup process (that is, the CPU does not need to interact with any device or the memory in the device), but only needs to use the first device The built-in RDMA network card directly obtains the data to be backed up from the second device and transfers it to the memory to complete the data backup, thus greatly improving the efficiency of data backup. Further, since the memory in the first device is a persistent memory, compared with the traditional way of backing up data with a solid state drive, the device can avoid the high latency problem caused by the solid state drive, and realizes The effect of efficient data backup. Those skilled in the art should understand that the above-mentioned data backup device can be used to implement the aforementioned data backup method, and the detailed description thereof should be similar to the aforementioned method part description. In order to avoid tediousness, it will not be repeated here. Based on the same idea, one or more embodiments of the present invention also provide a data backup device, as shown in FIG. 5. The data backup device may have a relatively large difference due to different configurations or performances, and may include one or more processors 501 and a memory 502, and the memory 502 may store one or more storage applications or data. Among them, the memory 502 may be short-term storage or permanent storage. The application program stored in the memory 502 may include one or more modules (not shown), and each module may include a series of computer-executable instructions in the data backup device. Furthermore, the processor 501 may be configured to communicate with the memory 502 and execute a series of computer-executable instructions in the memory 502 on the data backup device. The data backup device may further include one or more power sources 503, one or more wired or wireless network interfaces 504, one or more input/output interfaces 505, and one or more keyboards 506. Specifically in this embodiment, the data backup device includes a memory and one or more programs, one or more programs are stored in the memory, and the one or more programs may include one or more modules, And each module may include a series of computer-executable instructions in the data backup device, and is configured to be executed by one or more processors. The one or more packaged programs contain the following computer-executable instructions: In response to the data backup request sent by the second device, establish an RDMA network connection relationship with the second device; wherein the data backup request includes identification information of the data to be backed up; Acquiring the data to be backed up corresponding to the identification information from the second device based on the RDMA network connection relationship; Transmitting the data to be backed up to the memory of the first device, so that the memory of the first device stores the data to be backed up. Optionally, the memory of the first device is a persistent memory. Optionally, when the computer executable instructions are executed, the processor may also: Searching the data to be backed up from the memory of the second device according to the identification information; Obtain the found data to be backed up through the RDMA network connection relationship. Optionally, when the computer executable instructions are executed, the processor may also: After transferring the data to be backed up to the memory of the first device, monitoring the storage status of the data to be backed up in the memory of the first device; When the storage status is that the storage is completed, the first information that the data to be backed up has been successfully backed up is generated; Sending the first information to the second device. Optionally, when the computer executable instructions are executed, the processor may also: Before monitoring the storage status of the data to be backed up in the memory of the first device, receiving confirmation information sent by the second device to confirm whether the data to be backed up has been successfully backed up. One or more embodiments of the present invention also provide a computer-readable storage medium that stores one or more programs, the one or more programs include instructions, and when the instructions are included in multiple application programs When the electronic device executes, it can enable the electronic device to execute the above data backup method, and is specifically used to execute: In response to the data backup request sent by the second device, establish an RDMA network connection relationship with the second device; wherein the data backup request includes identification information of the data to be backed up; Acquiring the data to be backed up corresponding to the identification information from the second device based on the RDMA network connection relationship; Transmitting the data to be backed up to the memory of the first device, so that the memory of the first device stores the data to be backed up. The system, device, module or unit explained in the above embodiments may be implemented by a computer chip or entity, or by a product with a certain function. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a notebook computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, and a wearable device Or any combination of these devices. For the convenience of description, when describing the above device, the functions are divided into various units and described separately. Of course, when implementing one or more embodiments of the present invention, the functions of each unit can be implemented in one or more software and/or hardware. Those skilled in the art should understand that one or more embodiments of the present invention may be provided as a method, system, or computer program product. Therefore, one or more embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, one or more embodiments of the present invention may be implemented on one or more computer-usable storage media (including but not limited to disk memory, CD-ROM, optical memory, etc.) containing computer-usable program code In the form of computer program products. One or more embodiments of the present invention are described with reference to flowcharts and/or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present application. It should be understood that each flow and/or block in the flowchart and/or block diagram and a combination of the flow and/or block in the flowchart and/or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing device to produce a machine that allows instructions executed by the processor of the computer or other programmable data processing device Generate means for implementing the functions specified in a block or blocks of a flowchart or a flow and/or a block diagram. These computer program instructions can also be stored in a computer readable memory that can guide a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce a manufactured product including an instruction device The instruction device implements the functions specified in one block or multiple blocks in one flow or multiple flows in the flowchart and/or one block in the block diagram. These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operating steps can be performed on the computer or other programmable device to generate computer-implemented processing, and thus on the computer or other programmable device The instructions executed on the provide steps for implementing the functions specified in one block or multiple blocks of the flowchart one flow or multiple flows and/or block diagrams. In a typical configuration, the computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. Memory may include non-permanent memory, random access memory (RAM) and/or non-volatile memory in computer-readable media, such as read-only memory (ROM) or flash memory (flash) RAM). Memory is an example of computer-readable media. Computer-readable media, including permanent and non-permanent, removable and non-removable media, can store information by any method or technology. The information can be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), and other types of random access memory (RAM) , Read-only memory (ROM), electrically erasable and programmable read-only memory (EEPROM), flash memory or other memory technologies, read-only disc read-only memory (CD-ROM), digital multifunction Optical disks (DVD) or other optical storage, magnetic cassette tapes, magnetic tape storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. As defined in this article, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves. It should also be noted that the terms "include", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device that includes a series of elements not only includes those elements, but also includes Other elements not explicitly listed, or include elements inherent to this process, method, commodity, or equipment. Without more restrictions, the element defined by the sentence "include one..." does not exclude that there are other identical elements in the process, method, commodity or equipment that includes the element. One or more embodiments of the invention may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in a distributed computing environment in which remote processing devices connected through a communication network perform tasks. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices. The embodiments of the present invention are described in a progressive manner. The same or similar parts between the embodiments can be referred to each other. Each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant part can be referred to the description of the method embodiment. The above is only one or more embodiments of the present invention and is not intended to limit the present invention. For those skilled in the art, various modifications and changes can be made to one or more embodiments of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of one or more embodiments of the present invention should be included in the scope of the claims of one or more embodiments of the present invention.

S102-106:步驟 210:第一設備 211:CPU 212:RDMA網卡 213:持久化記憶體 220:第二設備 221:CPU 222:RDMA網卡 223:記憶體 S301-308:步驟 400:資料備份裝置 410:建立模組 420:獲取模組 430:傳輸模組 501:處理器 502:記憶體 503:電源 504:有線或無線網路介面 505:輸入輸出介面 506:鍵盤S102-106: Step 210: the first device 211: CPU 212: RDMA network card 213: Persistent memory 220: second device 221: CPU 222: RDMA network card 223: Memory S301-308: steps 400: data backup device 410: Create a module 420: Get module 430: Transmission module 501: processor 502: Memory 503: Power supply 504: Wired or wireless network interface 505: input and output interface 506: keyboard

為了更清楚地說明本發明一個或多個實施例或現有技術中的技術方案,下面將對實施例或現有技術描述中所需要使用的圖式作簡單地介紹,顯而易見地,下面描述中的圖式僅僅是本發明一個或多個實施例中記載的一些實施例,對於本領域普通技術人員來講,在不付出創造性勞動性的前提下,還可以根據這些圖式獲得其他的圖式。 圖1是根據本發明一實施例的一種資料備份方法的示意性流程圖; 圖2是根據本發明一實施例的一種資料備份系統的示意性方塊圖; 圖3是根據本發明另一實施例的一種資料備份方法的示意性流程圖; 圖4是根據本發明一實施例的一種資料備份裝置的示意性方塊圖; 圖5是根據本發明一實施例的一種資料備份設備的示意性方塊圖。In order to more clearly explain one or more embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required in the description of the embodiments or the prior art. Obviously, the drawings in the following description The formulas are just some of the embodiments described in one or more embodiments of the present invention. For those of ordinary skill in the art, without paying creative labor, other diagrams can be obtained according to these diagrams. 1 is a schematic flowchart of a data backup method according to an embodiment of the present invention; 2 is a schematic block diagram of a data backup system according to an embodiment of the present invention; 3 is a schematic flowchart of a data backup method according to another embodiment of the present invention; 4 is a schematic block diagram of a data backup device according to an embodiment of the present invention; FIG. 5 is a schematic block diagram of a data backup device according to an embodiment of the present invention.

Claims (12)

一種資料備份方法,應用於第一設備內設的RDMA網卡,該方法包括: 回應於第二設備發送的資料備份請求,建立與該第二設備之間的RDMA網路連接關係;其中,該資料備份請求包括待備份資料的標識資訊; 基於該RDMA網路連接關係,從該第二設備中獲取該標識資訊對應的該待備份資料; 將該待備份資料傳輸至該第一設備的記憶體,以使該第一設備的記憶體儲存該待備份資料。A data backup method is applied to the RDMA network card built in the first device. The method includes: In response to the data backup request sent by the second device, establish an RDMA network connection relationship with the second device; wherein, the data backup request includes identification information of the data to be backed up; Obtaining the data to be backed up corresponding to the identification information from the second device based on the RDMA network connection relationship; Transmitting the data to be backed up to the memory of the first device, so that the memory of the first device stores the data to be backed up. 根據請求項1所述的方法,該第一設備的記憶體為持久化記憶體。According to the method of claim 1, the memory of the first device is a persistent memory. 根據請求項1所述的方法,該從該第二設備中獲取該標識資訊對應的該待備份資料,包括: 根據該標識資訊,從該第二設備的記憶體中查找該待備份資料; 透過該RDMA網路連接關係獲取查找到的該待備份資料。According to the method of claim 1, the obtaining the data to be backed up corresponding to the identification information from the second device includes: Searching the data to be backed up from the memory of the second device according to the identification information; Obtain the found data to be backed up through the RDMA network connection relationship. 根據請求項2所述的方法,在將該待備份資料傳輸至該第一設備的記憶體之後,還包括: 監測該待備份資料在該第一設備的記憶體中的儲存狀態; 當該儲存狀態為儲存完成時,產生該待備份資料已成功備份的第一資訊; 將該第一資訊發送至該第二設備。According to the method of claim 2, after transferring the data to be backed up to the memory of the first device, the method further includes: Monitoring the storage status of the data to be backed up in the memory of the first device; When the storage status is storage completion, the first information that the data to be backed up has been successfully backed up is generated; Sending the first information to the second device. 根據請求項4所述的方法,在監測該待備份資料在該第一設備的記憶體中的儲存狀態之前,還包括: 接收該第二設備發送的用於確認該待備份資料是否已成功備份的確認資訊。According to the method of claim 4, before monitoring the storage status of the data to be backed up in the memory of the first device, the method further includes: Receiving confirmation information sent by the second device to confirm whether the data to be backed up has been successfully backed up. 一種資料備份裝置,應用於第一設備內設的RDMA網卡,該裝置包括: 建立模組,用於回應於第二設備發送的資料備份請求,建立與該第二設備之間的RDMA網路連接關係;其中,該資料備份請求包括待備份資料的標識資訊; 獲取模組,用於基於該RDMA網路連接關係,從該第二設備中獲取該標識資訊對應的該待備份資料; 傳輸模組,用於將該待備份資料傳輸至該第一設備的記憶體,以使該第一設備的記憶體儲存該待備份資料。A data backup device is applied to the RDMA network card built in the first device. The device includes: Establishing a module for responding to a data backup request sent by the second device, establishing an RDMA network connection relationship with the second device; wherein the data backup request includes identification information of the data to be backed up; An obtaining module, configured to obtain the data to be backed up corresponding to the identification information from the second device based on the RDMA network connection relationship; The transmission module is used for transmitting the data to be backed up to the memory of the first device, so that the memory of the first device stores the data to be backed up. 根據請求項6所述的裝置,該第一設備的記憶體為持久化記憶體。According to the apparatus of claim 6, the memory of the first device is a persistent memory. 根據請求項6所述的裝置,該獲取模組包括: 查找單元,用於根據該標識資訊,從該第二設備的記憶體中查找該待備份資料; 獲取單元,用於透過該RDMA網路連接關係獲取查找到的該待備份資料。According to the device of claim 6, the acquisition module includes: A searching unit, configured to search the data to be backed up from the memory of the second device according to the identification information; The obtaining unit is used to obtain the found data to be backed up through the RDMA network connection relationship. 根據請求項7所述的裝置,還包括: 監測模組,用於在將該待備份資料傳輸至該第一設備的記憶體之後,監測該待備份資料在該第一設備的記憶體中的儲存狀態; 產生模組,用於當該儲存狀態為儲存完成時,產生該待備份資料已成功備份的第一資訊; 發送模組,用於將該第一資訊發送至該第二設備。The device according to claim 7, further comprising: A monitoring module, configured to monitor the storage status of the data to be backed up in the memory of the first device after transmitting the data to be backed up to the memory of the first device; A generating module, used to generate the first information that the data to be backed up has been successfully backed up when the storage status is storage completion; The sending module is used to send the first information to the second device. 根據請求項9所述的裝置,還包括: 接收模組,用於在監測該待備份資料在該第一設備的記憶體中的儲存狀態之前,接收該第二設備發送的用於確認該待備份資料是否已成功備份的確認資訊。The device according to claim 9, further comprising: The receiving module is configured to receive confirmation information sent by the second device to confirm whether the data to be backed up has been successfully backed up before monitoring the storage status of the data to be backed up in the memory of the first device. 一種資料備份設備,應用於第一設備內設的RDMA網卡,包括: 處理器;以及 被安排成儲存電腦可執行指令的記憶體,該可執行指令在被執行時使該處理器: 回應於第二設備發送的資料備份請求,建立與該第二設備之間的RDMA網路連接關係;其中,該資料備份請求包括待備份資料的標識資訊; 基於該RDMA網路連接關係,從該第二設備中獲取該標識資訊對應的該待備份資料; 將該待備份資料傳輸至該第一設備的記憶體,以使該第一設備的記憶體儲存該待備份資料。A data backup device, applied to the RDMA network card built in the first device, includes: Processor; and A memory arranged to store computer executable instructions that when executed causes the processor to: In response to the data backup request sent by the second device, establish an RDMA network connection relationship with the second device; wherein, the data backup request includes identification information of the data to be backed up; Obtaining the data to be backed up corresponding to the identification information from the second device based on the RDMA network connection relationship; Transmitting the data to be backed up to the memory of the first device, so that the memory of the first device stores the data to be backed up. 一種儲存介質,用於儲存電腦可執行指令,該可執行指令在被執行時實現以下流程: 回應於第二設備發送的資料備份請求,建立與該第二設備之間的RDMA網路連接關係;其中,該資料備份請求包括待備份資料的標識資訊; 基於該RDMA網路連接關係,從該第二設備中獲取該標識資訊對應的該待備份資料; 將該待備份資料傳輸至該第一設備的記憶體,以使該第一設備的記憶體儲存該待備份資料。A storage medium is used to store computer executable instructions. When the executable instructions are executed, the following process is realized: In response to the data backup request sent by the second device, establish an RDMA network connection relationship with the second device; wherein, the data backup request includes identification information of the data to be backed up; Obtaining the data to be backed up corresponding to the identification information from the second device based on the RDMA network connection relationship; Transmitting the data to be backed up to the memory of the first device, so that the memory of the first device stores the data to be backed up.
TW108132241A 2018-11-29 2019-09-06 Data backup method and device TW202020661A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811443506.4 2018-11-29
CN201811443506.4A CN109597713A (en) 2018-11-29 2018-11-29 Data back up method and device

Publications (1)

Publication Number Publication Date
TW202020661A true TW202020661A (en) 2020-06-01

Family

ID=65960061

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108132241A TW202020661A (en) 2018-11-29 2019-09-06 Data backup method and device

Country Status (3)

Country Link
CN (1) CN109597713A (en)
TW (1) TW202020661A (en)
WO (1) WO2020108124A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109597713A (en) * 2018-11-29 2019-04-09 阿里巴巴集团控股有限公司 Data back up method and device

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7613813B2 (en) * 2004-09-10 2009-11-03 Cavium Networks, Inc. Method and apparatus for reducing host overhead in a socket server implementation
US8713300B2 (en) * 2011-01-21 2014-04-29 Symantec Corporation System and method for netbackup data decryption in a high latency low bandwidth environment
US9146819B2 (en) * 2013-07-02 2015-09-29 International Business Machines Corporation Using RDMA for fast system recovery in virtualized environments
CN103607428B (en) * 2013-10-30 2017-11-17 华为技术有限公司 A kind of method and apparatus for accessing shared drive
CN105450588B (en) * 2014-07-31 2019-02-12 华为技术有限公司 A kind of data transmission method and RDMA network interface card based on RDMA
CN105224418A (en) * 2015-09-06 2016-01-06 福建三元达通讯股份有限公司 A kind of data back up method and device
CN107025146B (en) * 2016-01-30 2019-10-18 华为技术有限公司 A kind of document generating method, device and system
CN107844386B (en) * 2016-09-19 2020-11-27 北京金山云网络技术有限公司 Data backup and recovery method and device
CN106844048B (en) * 2017-01-13 2020-11-06 上海交通大学 Distributed memory sharing method and system based on hardware characteristics
CN108733506B (en) * 2017-04-17 2022-04-12 伊姆西Ip控股有限责任公司 Method, apparatus and computer readable medium for data synchronization
CN109597713A (en) * 2018-11-29 2019-04-09 阿里巴巴集团控股有限公司 Data back up method and device

Also Published As

Publication number Publication date
WO2020108124A1 (en) 2020-06-04
CN109597713A (en) 2019-04-09

Similar Documents

Publication Publication Date Title
US12019652B2 (en) Method and device for synchronizing node data
WO2019005952A1 (en) Multi-blockchain network data processing method, apparatus, and server
US20120158828A1 (en) Bulk initial download of mobile databases
US11249854B2 (en) Method and device for failover in HBase system, and non-transitory computer-readable storage medium
US20210158352A1 (en) Methods and systems for recording data based on plurality of blockchain networks
WO2020216204A1 (en) Information acquisition method and apparatus
TW201926950A (en) Service marking method, apparatus and device under multi-service system
CN111597065B (en) Method and device for collecting equipment information
US9654582B2 (en) Enhanced shared memory based communication driver for improved performance and scalability
US20210157801A1 (en) Methods and systems for recording data based on plurality of blockchain networks
CN112434326B (en) Trusted computing method and device based on data flow
US11916898B2 (en) Multi-legged network attribution using tracking tokens and attribution stack
TW202004592A (en) Method and apparatus for correcting transaction causal sequence, and electronic device
US20160041879A1 (en) Data backup to and restore from trusted devices
CN103500108A (en) System memory access method, node processor and multi-processor system
TW202020661A (en) Data backup method and device
CN107276998B (en) OpenSSL-based performance optimization method and device
CN112788151A (en) Data synchronization method, device and system
CN110011807B (en) Key information maintenance method and system
JP7217181B2 (en) WEARABLE DEVICE, INFORMATION PROCESSING METHOD, APPARATUS AND SYSTEM
EP3812999B1 (en) Multiple blockchain network-based data reading method and system
CN116244040B (en) Main and standby container cluster system, data synchronization method thereof and electronic equipment
US10397029B2 (en) Relay apparatus
CN117992276A (en) Service circulation method, device, electronic equipment, system and storage medium
CN117082047A (en) Data processing method and device