CN113377581B - Data backup method and device, computer equipment and storage medium - Google Patents

Data backup method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN113377581B
CN113377581B CN202110733048.3A CN202110733048A CN113377581B CN 113377581 B CN113377581 B CN 113377581B CN 202110733048 A CN202110733048 A CN 202110733048A CN 113377581 B CN113377581 B CN 113377581B
Authority
CN
China
Prior art keywords
file
service
apple
backup
connection
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.)
Active
Application number
CN202110733048.3A
Other languages
Chinese (zh)
Other versions
CN113377581A (en
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.)
Shenzhen Wondershare Software Co Ltd
Original Assignee
Shenzhen Wondershare Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Wondershare Software Co Ltd filed Critical Shenzhen Wondershare Software Co Ltd
Priority to CN202110733048.3A priority Critical patent/CN113377581B/en
Publication of CN113377581A publication Critical patent/CN113377581A/en
Application granted granted Critical
Publication of CN113377581B publication Critical patent/CN113377581B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/1448Management of the data involved in backup or backup restore
    • 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/1469Backup restoration techniques

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)

Abstract

The embodiment of the invention discloses a data backup method, a data backup device, computer equipment and a storage medium, wherein the method comprises the following steps: if the access of the apple equipment is detected, identifying the identification information of the apple equipment and establishing connection with the Lockdown service of the apple equipment; sending a first connection request to the Lockdown service to establish connection with a backup service in the Lockdown service; if the connection with the backup service is successfully established, sending a data backup request to the backup service so that the apple equipment sends a file to be backed up through the backup service; and creating a saved file according to the file to be backed up, and writing the file to be backed up into the saved file. The method and the device can backup the data of the apple device on the android device.

Description

Data backup method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a data backup method and apparatus, a computer device, and a storage medium.
Background
With the popularization of smart phones, the smart phones have a storage function, a shooting function, a payment function, and the like in addition to being used as a communication tool for instant messaging, so that data stored in the smart phones are more and more, and the smart phones are more and more important. However, the current systems of smart phones are mainly divided into an apple system and an android system, and for the android system, since the system is open-source, data backup is relatively convenient, while the apple system is relatively closed, and generally only data backup in the apple system is supported. The existing mainstream method for backing up the iphone is generally to backup the iphone through iCloud or backup the iphone through a personal computer, but the iCloud has limited capacity and expensive expansion, and meanwhile, the personal computer is not convenient to carry about, so that a method for backing up a system in the iphone is not provided at present.
Disclosure of Invention
The embodiment of the invention provides a data backup method and device, computer equipment and a storage medium, which can be used for establishing connection between android equipment and apple equipment and backing up data in the apple equipment to the android equipment, so that the data of the apple equipment can be backed up at any time.
In a first aspect, an embodiment of the present invention provides a data backup method, where the method includes: if the access of the apple equipment is detected, identifying the identification information of the apple equipment and establishing connection with the Lockdown service of the apple equipment;
sending a first connection request to the Lockdown service to establish connection with a backup service in the Lockdown service;
if the connection with the backup service is successfully established, sending a data backup request to the backup service so that the apple equipment sends a file to be backed up through the backup service;
and creating a saved file according to the file to be backed up, and writing the file to be backed up into the saved file.
In a second aspect, an embodiment of the present invention further provides a data backup apparatus, where the apparatus includes: the first identification unit is used for identifying the identification information of the apple equipment and establishing connection with the Lockdown service of the apple equipment if the access of the apple equipment is detected;
the first sending unit is used for sending a first connection request to the Lockdown service so as to establish connection with a backup service in the Lockdown service;
the second sending unit is used for sending a data backup request to the backup service so that the apple equipment sends a file to be backed up through the backup service if the fact that the connection with the backup service is successfully established is detected;
and the data backup unit is used for creating a saved file according to the file to be backed up and writing the file to be backed up into the saved file.
In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the above method when executing the computer program.
In a fourth aspect, the present invention also provides a computer-readable storage medium, which stores a computer program, and the computer program can implement the above method when being executed by a processor.
The embodiment of the invention provides a data backup method and device, computer equipment and a storage medium. Wherein the method comprises the following steps: if the access of the apple equipment is detected, identifying the identification information of the apple equipment and establishing connection with the Lockdown service of the apple equipment; sending a first connection request to the Lockdown service to establish connection with a backup service in the Lockdown service; if the connection with the backup service is detected to be successfully established, sending a data backup request to the backup service so that the apple device sends a file to be backed up through the backup service; and creating a saved file according to the file to be backed up, and writing the file to be backed up into the saved file. According to the embodiment of the invention, the android device and the apple device can be in communication connection, so that the android device can backup the data of the apple device through the Lockdown service of the apple device, and the data of the apple device can be stored at any time and any place.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a data backup method according to an embodiment of the present invention;
FIG. 2 is a schematic sub-flow chart of a data backup method according to an embodiment of the present invention;
fig. 3 is a schematic sub-flow diagram of a data backup method according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating a data backup method according to another embodiment of the invention;
FIG. 5 is a sub-flowchart of a data backup method according to an embodiment of the present invention;
FIG. 6 is a schematic block diagram of a data backup device provided by an embodiment of the present invention;
FIG. 7 is a schematic block diagram of a first identification unit of a data backup device according to an embodiment of the present invention
Fig. 8 is a schematic block diagram of a data backup unit of a data backup apparatus provided by an embodiment of the present invention;
fig. 9 is a schematic block diagram of a data backup apparatus according to another embodiment of the present invention;
FIG. 10 is a schematic block diagram of a data restoring unit of a data backup apparatus provided by an embodiment of the present invention;
FIG. 11 is a schematic block diagram of a computer device provided by an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a data backup method according to an embodiment of the present invention. The data backup method provided by the embodiment of the invention can be used for backing up data in the apple device by using android devices. As shown in fig. 1, the method includes steps S110 to S140.
And S110, if the access of the apple equipment is detected, identifying the identification information of the apple equipment and establishing connection with the Lockdown service of the apple equipment.
In the embodiment of the invention, communication connection can be established between the android device and the apple device through the USB data line, after the android device detects the access of the apple device, identification information of the apple device needs to be identified, the identification information can comprise an ID (identity) number and a connection number of the apple device and is used for distinguishing different apple devices, so that when files are saved and read, corresponding files can be read and saved according to different apple devices, and after the identification information of the apple device is identified, the identification information is established with a Lockdown service of the apple device so as to backup or restore data. The android device can be any device with an android system, such as an android mobile phone, and the apple device can be any intelligent device with an apple system, such as an apple mobile phone.
As shown in fig. 2, the step S110 may include steps S111-S112.
S111, if the device access is detected, identifying the type of the device.
In the embodiment of the invention, when a device is detected to be connected to the local computer through the USB, the type of the device needs to be identified, and the type of the device can comprise an android device and an apple device.
And S112, if the device is the apple device, identifying identification information of the apple device and establishing connection with a Lockdown service of the apple device, wherein the identification information comprises an apple device ID and a connection ID.
In the embodiment of the present invention, when the accessed device is an apple device, the identification information of the apple device may be further identified, and a connection is established with a Lockdown service of the apple device, where the Lockdown service is a service provided by an apple system and is used to backup, restore, and synchronize data in the apple device.
S120, sending a first connection request to the Lockdown service to establish connection with a backup service in the Lockdown service.
In the embodiment of the present invention, the Lockdown service may include a backup service, specifically, a backup service, which is used for backing up data, and a restore service, specifically, a restore service, which is used for restoring data. After the Lockdown service establishes connection, a first connection request is sent to the Lockdown service so as to establish connection with the backup service.
And S130, if the connection with the backup service is successfully established, sending a data backup request to the backup service so that the apple equipment sends the file to be backed up through the backup service.
In the embodiment of the invention, after the connection with the backup service is successfully established, the data backup request can be sent to the backup service, and the apple device can send the file to be backed up to the android device through the backup service after receiving the data backup request.
S140, creating a save file according to the file to be backed up, and writing the file to be backed up into the save file.
In the embodiment of the invention, after receiving the file to be backed up, the android device can identify the file directory of the file to be backed up, and locally create one-to-one saved file according to the file directory of the file to be backed up, so as to save the file to be backed up. After the files to be backed up are written into the saved files, if there are other files to be backed up that need to be backed up, the step S140 is continuously repeated until the backup of all the files to be backed up is completed.
In some embodiments, such as this embodiment, the step S140 may include steps S141-S143a, as shown in fig. 3.
And S141, creating a root directory according to the identification information of the apple equipment.
In the embodiment of the present invention, the identification information may include an ID number of the apple device and an ID number connected to the apple device, and a root directory corresponding to the apple device is created according to the identification information, so as to store a file of the apple device.
S142, creating the saved file in the root directory according to the name of the file to be backed up.
In the embodiment of the invention, the root directory is used for saving files of the apple device, and a plurality of different saving files can be created for saving different backup files, so that a corresponding saving file can be created according to the name of the file to be backed up.
S143, writing the file to be backed up into the saved file.
In the embodiment of the invention, after the creation of the saved file is successful, the file to be backed up is written into the saved file to complete the backup of the file to be backed up.
S143a, if the information that the data backup is successful is received, the connection with the backup service is disconnected.
In the embodiment of the invention, when the message that the data backup is successful is received, which is sent by the apple device, the data backup is indicated to be successfully completed, so that the connection with the backup service of the apple device can be disconnected.
In some embodiments, such as this embodiment, as shown in FIG. 4, the step S140 may be followed by steps S150-S170.
S150, sending a second connection request to the Lockdown service to establish connection with a restoration service in the Lockdown service.
In the embodiment of the present invention, after the data backup in the apple device is completed, if the backed-up data needs to be restored, a second connection request may be sent to the restoration service in the Lockdown service, so as to establish a connection with the restoration service.
And S160, if the connection with the restoration service is successfully established, sending a data restoration request to the restoration service.
In the embodiment of the invention, after the android device detects that the connection with the restoring service of the apple device is successfully established, a data restoring request is sent to the restoring service so as to restore the backed-up files.
And S170, if the fact that the apple equipment responds to the data restoration request is detected, reading a file to be restored according to the identification information and sending the file to be restored to the apple equipment.
In the embodiment of the invention, after the apple device responds to the data restoration request, that is, the file directory which is sent by the apple device and needs to be restored is received, the identification information of the apple device can be read, the corresponding file to be restored is found locally according to the identification information, and then the file to be restored is sent to the apple device for facilitating data restoration.
In some embodiments, such as this embodiment, the step S170 may include steps S171-S174a, as shown in fig. 5.
And S171, if a file name request sent by the restoring service is received, acquiring the identification information of the apple equipment.
In the embodiment of the invention, when the apple device responds to the data restoration request, the file name of the file to be restored is sent, and the identification information of the apple device can be acquired.
And S172, confirming the root directory corresponding to the identification information according to the identification information.
In the embodiment of the invention, different backup files of an apple device are usually stored in the same root directory, so that the root directory file matched with the identification information can be confirmed according to the identification information.
And S173, confirming the file to be restored in the root directory according to the file name request, and reading the file to be restored.
In the embodiment of the invention, after the root directory file is confirmed, the name of the file to be restored can be confirmed according to the file name request sent by the apple device, and the file to be restored is read.
And S174, sending the file to be restored to the apple equipment.
In the embodiment of the invention, the file to be restored is sent to the restoring service of the apple equipment to restore the data, and if a plurality of files to be restored exist, the steps are repeatedly executed until all the files to be restored are restored to the apple equipment.
And S174a, if the information that the data sent by the restoration service is successfully restored is received, disconnecting the connection with the restoration service.
In the embodiment of the invention, when the information that the data reduction is successful is received, which is sent by the apple equipment, the data reduction is successful and other files do not need to be continuously reduced, and the connection with the reduction service of the apple equipment can be disconnected.
Fig. 6 is a schematic block diagram of a data backup apparatus 100 according to an embodiment of the present invention. As shown in fig. 6, the present invention also provides a data backup apparatus 100 corresponding to the above data backup method. The data backup apparatus 100 includes a unit for performing the above-described data backup method. Specifically, referring to fig. 6, the data backup apparatus 100 includes a first identification unit 110, a first sending unit 120, a second sending unit 130, and a data backup unit 140.
The first identification unit 110 is configured to identify, if access of the apple device is detected, identification information of the apple device and establish connection with a Lockdown service of the apple device; the first sending unit 120 is configured to send a first connection request to the Lockdown service to establish a connection with a backup service in the Lockdown service; the second sending unit 130 is configured to send a data backup request to the backup service if it is detected that the connection with the backup service is successfully established, so that the apple device sends a file to be backed up through the backup service; the data backup unit 140 is configured to create a save file according to the file to be backed up, and write the file to be backed up into the save file.
In some embodiments, for example the present embodiment, referring to fig. 7, the first recognition unit 110 includes a second recognition unit 111 and a third recognition unit 112.
The second identifying unit 111 is configured to identify a type of the device if it is detected that the device is accessed; the third identifying unit 112 is configured to identify, if the device is the apple device, identification information of the apple device and establish a connection with a Lockdown service of the apple device, where the identification information includes an apple device ID and a connection ID.
In some embodiments, for example, in the present embodiment, referring to fig. 8, the data backup unit 140 includes a first creating unit 141, a second creating unit 142, a first writing unit 143, and a second processing unit 143a.
The first creating unit 141 is configured to create a root directory according to the identification information of the apple device; the second creating unit 142 is configured to create the saved file in the root directory according to the name of the file to be backed up; the first writing unit 143 is configured to write the file to be backed up into the saved file; the second processing unit 143a is configured to disconnect the connection with the backup service if receiving the information that the data backup sent by the backup service is successful.
In some embodiments, for example, in this embodiment, referring to fig. 9, the data backup apparatus 100 may further include: the first identification unit 110, the first transmission unit 120, the second transmission unit 130, the data backup unit 140, the third transmission unit 150, the fourth transmission unit 160, and the data restoration unit 170.
The first identification unit 110 is configured to identify, if access of the apple device is detected, identification information of the apple device and establish connection with a Lockdown service of the apple device; the first sending unit 120 is configured to send a first connection request to the Lockdown service to establish a connection with a backup service in the Lockdown service; the second sending unit 130 is configured to send a data backup request to the backup service if it is detected that the connection with the backup service is successfully established, so that the apple device sends a file to be backed up through the backup service; the data backup unit 140 is configured to create a save file according to the file to be backed up, and write the file to be backed up into the save file; the third sending unit 150 is configured to send a second connection request to the Lockdown service to establish a connection with a restoration service in the Lockdown service; the fourth sending unit 160 is configured to send a data restoring request to the restoring service if it is detected that the connection with the restoring service is successfully established; the data restoring unit 170 is configured to, if it is detected that the apple device responds to the data restoring request, read a file to be restored according to the identification information, and send the file to be restored to the apple device.
In some embodiments, for example, in the present embodiment, referring to fig. 10, the data restoring unit 170 includes a first obtaining unit 171, a first confirming unit 172, a first reading unit 173, a fifth sending unit 174, and a first processing unit 174a.
The first obtaining unit 171 is configured to obtain, if a file name request sent by the restore service is received, identification information of the apple device; the first confirming unit 172 is configured to confirm the root directory corresponding to the identification information according to the identification information; the first reading unit 173 is configured to determine the file to be restored in the root directory according to the file name request, and read the file to be restored; the fifth sending unit 174 is configured to send the file to be restored to the apple device; the first processing unit 174a is configured to disconnect the connection with the restore service if receiving information that the data restoration sent by the restore service is successful.
The data backup means may be implemented in the form of a computer program that is executable on a computer device as shown in fig. 11.
Referring to fig. 11, fig. 11 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 500 is a touch-enabled computer device with inductance value feedback, such as a tablet computer with a capacitive screen, an electronic tablet, a notebook with inductance value feedback, and the like.
Referring to fig. 11, the computer device 500 includes a processor 502, memory and interface 507 connected by a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer program 5032, when executed, causes the processor 502 to perform a data backup method.
The processor 502 is used to provide computing and control capabilities to support the operation of the overall computer device 500.
The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503, and when the computer program 5032 is executed by the processor 502, the processor 502 can be enabled to execute a data backup method.
The interface 505 is used to communicate with other devices. Those skilled in the art will appreciate that the configuration shown in fig. 11 is a block diagram of only a portion of the configuration associated with the present application and does not constitute a limitation of the computer device 500 to which the present application may be applied, and that a particular computer device 500 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
Wherein the processor 502 is configured to run the computer program 5032 stored in the memory to implement the following steps:
if the access of the apple equipment is detected, identifying the identification information of the apple equipment and establishing connection with the Lockdown service of the apple equipment;
sending a first connection request to the Lockdown service to establish connection with a backup service in the Lockdown service;
if the connection with the backup service is successfully established, sending a data backup request to the backup service so that the apple equipment sends a file to be backed up through the backup service;
and creating a saved file according to the file to be backed up, and writing the file to be backed up into the saved file.
It should be understood that in the embodiment of the present Application, the Processor 502 may be a Central Processing Unit (CPU), and the Processor 502 may also be other general purpose processors, digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will be understood by those skilled in the art that all or part of the flow of the method implementing the above embodiments may be implemented by a computer program instructing associated hardware. The computer program may be stored in a storage medium, which is a computer-readable storage medium. The computer program is executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program. The computer program, when executed by a processor, causes the processor to perform the steps of:
if the access of the apple equipment is detected, identifying the identification information of the apple equipment and establishing connection with the Lockdown service of the apple equipment;
sending a first connection request to the Lockdown service to establish connection with a backup service in the Lockdown service;
if the connection with the backup service is detected to be successfully established, sending a data backup request to the backup service so that the apple device sends a file to be backed up through the backup service;
and creating a saved file according to the file to be backed up, and writing the file to be backed up into the saved file.
The storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, which can store various computer readable storage media of program codes.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, various elements or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be merged, divided and deleted according to actual needs. In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a storage medium. Based on such understanding, the technical solution of the present invention essentially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device to execute all or part of the steps of the method according to the embodiments of the present invention.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to the related descriptions of other embodiments.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, while the invention has been described with respect to the specific embodiments, it will be understood by those skilled in the art that various changes and modifications may be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (9)

1. A data backup method is applied to an android system, and is characterized by comprising the following steps:
if the access of the apple equipment is detected, identifying the identification information of the apple equipment and establishing connection with the Lockdown service of the apple equipment;
sending a first connection request to the Lockdown service to establish connection with a backup service in the Lockdown service;
if the connection with the backup service is successfully established, sending a data backup request to the backup service so that the apple equipment sends a file to be backed up through the backup service;
creating a saved file according to the file to be backed up, and writing the file to be backed up into the saved file;
sending a second connection request to the Lockdown service to establish connection with a restoration service in the Lockdown service;
if the connection with the restoration service is successfully established, sending a data restoration request to the restoration service;
and if the fact that the apple equipment responds to the data restoration request is detected, reading a file to be restored according to the identification information and sending the file to be restored to the apple equipment.
2. The data backup method of claim 1, wherein if it is detected that the apple device responds to the data restore request, the step of reading the file to be restored according to the identification information and sending the file to be restored to the apple device comprises:
if a file name request sent by the reduction service is received, acquiring identification information of the apple equipment;
confirming a root directory corresponding to the identification information according to the identification information;
confirming the file to be restored in the root directory according to the file name request, and reading the file to be restored;
and sending the file to be restored to the apple equipment.
3. The data backup method of claim 2, wherein after the step of sending the file to be restored to the apple device, further comprising:
and if the information that the data sent by the restoration service is successfully restored is received, disconnecting the connection with the restoration service.
4. The data backup method of claim 1, wherein if the access of the apple device is detected, the identifying information of the apple device is identified and the connection with the Lockdown service of the apple device is established, comprising:
if the device access is detected, identifying the type of the device;
and if the equipment is the apple equipment, identifying identification information of the apple equipment and establishing connection with a Lockdown service of the apple equipment, wherein the identification information comprises an apple equipment ID and a connection ID.
5. The data backup method according to claim 1, wherein the step of creating a save file from the file to be backed up and writing the file to be backed up into the save file comprises:
creating a root directory according to the identification information of the apple equipment;
creating the saved file in the root directory according to the name of the file to be backed up;
and writing the file to be backed up into the saved file.
6. The data backup method according to claim 1, wherein after the step of writing the file to be backed up into the save file, further comprising:
and if the information of successful data backup sent by the backup service is received, disconnecting the connection with the backup service.
7. An apparatus for data backup, the apparatus comprising:
the first identification unit is used for identifying the identification information of the apple equipment and establishing connection with the Lockdown service of the apple equipment if the access of the apple equipment is detected;
the first sending unit is used for sending a first connection request to the Lockdown service so as to establish connection with a backup service in the Lockdown service;
the second sending unit is used for sending a data backup request to the backup service so that the apple equipment sends a file to be backed up through the backup service if the fact that the connection with the backup service is successfully established is detected;
the data backup unit is used for creating a saved file according to the file to be backed up and writing the file to be backed up into the saved file;
a third sending unit, configured to send a second connection request to the Lockdown service to establish a connection with a restoration service in the Lockdown service;
a fourth sending unit, configured to send a data restoration request to the restoration service if it is detected that the connection with the restoration service is successfully established;
and the data restoration unit is used for reading the file to be restored according to the identification information and sending the file to be restored to the apple equipment if the apple equipment is detected to respond to the data restoration request.
8. A computer device, comprising a memory and a processor coupled to the memory; the memory is used for storing a computer program; the processor is adapted to run a computer program stored in the memory to perform the steps of the method according to any of claims 1-6.
9. A computer-readable storage medium, characterized in that the storage medium stores a computer program which, when being executed by a processor, is adapted to carry out the steps of the method according to any one of claims 1-6 on a computer device having a capacitive touch screen.
CN202110733048.3A 2021-06-30 2021-06-30 Data backup method and device, computer equipment and storage medium Active CN113377581B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110733048.3A CN113377581B (en) 2021-06-30 2021-06-30 Data backup method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110733048.3A CN113377581B (en) 2021-06-30 2021-06-30 Data backup method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113377581A CN113377581A (en) 2021-09-10
CN113377581B true CN113377581B (en) 2023-02-10

Family

ID=77580041

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110733048.3A Active CN113377581B (en) 2021-06-30 2021-06-30 Data backup method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113377581B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107172165A (en) * 2017-05-25 2017-09-15 万兴科技股份有限公司 A kind of method of data synchronization and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8412934B2 (en) * 2010-04-07 2013-04-02 Apple Inc. System and method for backing up and restoring files encrypted with file-level content protection
US10248598B2 (en) * 2016-11-16 2019-04-02 POWER 7 TECHNOLOGY CORP. (Shenzhen) Intelligent storage device signal transmission method for backing up data on intelligent storage module based on system type of electronic device
CN111142892B (en) * 2019-12-30 2023-06-20 飞天诚信科技股份有限公司 ios application program automatic installation method and communication device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107172165A (en) * 2017-05-25 2017-09-15 万兴科技股份有限公司 A kind of method of data synchronization and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
新型智能终端取证技术研究;金波等;《信息安全学报》;20160715(第03期);全文 *

Also Published As

Publication number Publication date
CN113377581A (en) 2021-09-10

Similar Documents

Publication Publication Date Title
US8751457B2 (en) Mobile device data archiving
US10423585B2 (en) Method and device for making differential upgrade package, and method and device for system differential upgrading
US10021213B2 (en) Systems and methods for adaptive cloning of mobile devices
CN112597153A (en) Data storage method and device based on block chain and storage medium
CN106155596A (en) Method for writing data and device
CN111784354A (en) Data processing method, server, terminal and system for assisting unfreezing of frozen account
WO2015117356A1 (en) Start-up method and communication terminal
CN113377581B (en) Data backup method and device, computer equipment and storage medium
CN111400091B (en) Factory setting restoration method, factory setting restoration device and mobile terminal
CN104077053B (en) Terminal information operating method and device and mobile terminal
CN111444045A (en) Backup method, device and equipment for voiceprint data
CN106648772B (en) Task processing method based on dual systems and mobile terminal
CN105786650A (en) Data management method and device
CN114896641A (en) Data verification method and device, electronic equipment and computer readable storage medium
CN105700971A (en) Data backup method and device
CN114186976A (en) Workflow transfer method and device, computer equipment and storage medium
CN103108070A (en) Telephone book backup system and method thereof
CN113301203A (en) Method and device for updating historical information data based on address book
CN104615507A (en) Backup data batch reduction method and device
CN111427720A (en) Database repair method and device, computer equipment and storage medium
CN109618327A (en) A kind of method and apparatus of software adaptation, electronic equipment, readable storage medium storing program for executing
CN105867961A (en) System upgrading and degrading method and device
CN112116733A (en) Backup and acquisition method and system of vehicle Bluetooth key and electronic equipment
CN110267260B (en) Flashing method, device, terminal and computer readable storage medium
CN112115496B (en) Data decryption pattern recognition method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20211123

Address after: 518000 1001, block D, building 5, software industry base, Yuehai street, Nanshan District, Shenzhen City, Guangdong Province

Applicant after: Shenzhen Wanxing Software Co.,Ltd.

Address before: 518000 1002, block D, building 5, software industry base, Yuehai street, Nanshan District, Shenzhen City, Guangdong Province

Applicant before: SHENZHEN SIBO TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant