Search

CN-122001903-A - Multi-terminal full-quantity synchronization method, device, equipment, medium and product for storage service

CN122001903ACN 122001903 ACN122001903 ACN 122001903ACN-122001903-A

Abstract

The application discloses a multi-terminal full-quantity synchronization method, a device, equipment, a medium and a product of a storage service, which are characterized in that file information of a synchronous folder in a cloud is obtained, and virtual directory information of the synchronous folder is displayed; when a user receives an access request of the user to the target file in the synchronous folder, metadata of the target file is obtained, the target file is downloaded to be opened locally, and when the user stores the target file, the target file in the cloud is synchronized according to the stored metadata. The scheme of the application can accurately understand the user input and accurately output the service processing result.

Inventors

  • SHEN HONGWEI
  • QIN ZHENZHEN
  • SONG YAFENG
  • CHEN LONGPENG
  • CHEN MIN

Assignees

  • 中移(苏州)软件技术有限公司
  • 中国移动通信集团有限公司

Dates

Publication Date
20260508
Application Date
20260408

Claims (17)

  1. 1. A method for multi-port full synchronization of storage services, the method comprising: acquiring file information of a synchronous folder of a cloud end, and displaying virtual directory information of the synchronous folder; when receiving an access request of a user to a target file in the synchronous folder, acquiring metadata of the target file, and downloading the target file to be opened locally; and when the user stores the target file, synchronizing the target file of the cloud according to the stored metadata.
  2. 2. The method for multi-terminal full synchronization of storage services according to claim 1, wherein synchronizing the target file of the cloud according to the saved metadata comprises: Acquiring metadata of the target file at the cloud; judging whether conflict exists or not according to the comparison of the cloud and the local metadata; And uploading the local metadata and file data of the target file to the cloud when no conflict exists.
  3. 3. The storage service multi-port full synchronization method of claim 2, further comprising: When a conflict exists, updating the local or cloud target data according to a preset conflict rule.
  4. 4. The method of claim 2, wherein the determining whether there is a conflict according to the cloud and local metadata comprises: according to the file version, the file name and the file parent directory in the local metadata, respectively comparing the file version, the file name and the file parent directory in the cloud metadata; And determining whether a conflict exists according to the comparison result.
  5. 5. The storage service multi-port full synchronization method of claim 1, wherein the downloading the target file to a local opening comprises: judging whether the target file is pulled to the local; if the version information of the target file is pulled to the local, judging whether the version information of the target file is consistent with the cloud; And if the version information is consistent with the cloud end, calling a local tool to open the target file.
  6. 6. The storage service multi-port full synchronization method of claim 5, further comprising: If the local or version information is not pulled out to be inconsistent with the cloud, acquiring metadata of the target file of the cloud, recording the metadata, downloading the target file of the cloud to the local, and calling a local tool to open the target file.
  7. 7. The method of claim 4, wherein the determining whether there is a conflict according to the comparison result comprises: when the file versions of the local and cloud sides are inconsistent, a conflict prompt that the target file is updated in the cloud side is fed back; When the file names of the local and cloud sides are inconsistent, a conflict prompt for file name modification is fed back; And when the local file parent directory is inconsistent with the cloud file parent directory, feeding back a conflict prompt that the target file is moved.
  8. 8. The method of claim 3, wherein updating the local or cloud target data according to the preset conflict rule comprises: when the file versions of the local and the cloud are inconsistent, outputting a conflict prompt updated by the target file in the cloud to a user, and covering the local or the target file in the cloud according to a selection result fed back by the user; when the file names of the local and cloud are inconsistent, the file names of the local are updated preferentially, and then the file uploading interface is called to update the metadata of the local file after the content of the file is updated; When the local file parent directory is inconsistent with the cloud file parent directory, the file uploading interface is preferentially called to update the content of the cloud file, metadata of the latest file is further acquired and updated to the local file, and the local file is moved.
  9. 9. The method for multi-terminal full synchronization of storage services according to claim 1, wherein the obtaining file information of a synchronous folder in a cloud and displaying virtual directory information of the synchronous folder comprises: acquiring file information of the next layer of the synchronous folder of the cloud end, and displaying virtual directory information of the next layer of the synchronous folder; when a user accesses the directory of the next layer of the folder in the current directory, acquiring the file information of the next layer of the folder, and displaying the information of the virtual directory of the next layer.
  10. 10. The storage service multi-port full synchronization method of claim 1, further comprising: The cloud files of the cloud synchronous folder list are acquired layer by layer; According to the file list information, immediately executing the task of the folder creation type; and generating a synchronous task for the task of the file class, and scheduling and executing the synchronous task.
  11. 11. The storage service multi-port full synchronization method of claim 10, wherein the scheduling and executing of the synchronization tasks comprises: monitoring the CPU, the memory and the network bandwidth utilization rate of the local terminal; When the monitored numerical value exceeds the corresponding specified threshold, a new task is not started, and when the number of the executing tasks is lower than the preset value, a task is started to execute; In the task execution process, if a certain file ID is found to exist locally, the execution is skipped.
  12. 12. The storage service multi-port full synchronization method of claim 10, wherein the scheduling and executing of the synchronization tasks comprises: Judging whether all synchronous tasks are executed completely or not; if not, continuing to schedule and execute the synchronous task; If yes, the virtual switch is closed, the local synchronous mode is switched, one-time increment change synchronization is carried out, a follow-up cloud file change record is obtained through a starting cursor obtained by obtaining cloud files layer by layer, and the cloud file change record is converted into a synchronous task one by one.
  13. 13. The storage service multi-terminal full-volume synchronization method according to claim 1, wherein before acquiring file information of a synchronization folder of a cloud, the method further comprises: And setting the synchronous state as synchronous completion, and opening the virtual display switch.
  14. 14. A storage service multi-port full synchronization apparatus, the apparatus comprising: The virtual module is used for acquiring file information of a synchronous folder of the cloud end by a user and displaying virtual directory information of the synchronous folder; the downloading module is used for acquiring metadata of the target file when receiving an access request of a user to the target file in the synchronous folder, and downloading the target file to be opened locally; And the storage module is used for synchronizing the target file of the cloud according to the stored metadata when the user stores the target file.
  15. 15. A communication device comprising a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, the processor implementing the storage service multi-port full synchronization method of any one of claims 1 to 13 when the computer program is executed.
  16. 16. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored computer program, wherein the computer program, when run, controls a device in which the computer readable storage medium is located to perform the storage service multi-port full synchronization method according to any one of claims 1 to 13.
  17. 17. A computer program product comprising computer programs/instructions which, when executed by a processor, implement the steps of the method of any of claims 1 to 13.

Description

Multi-terminal full-quantity synchronization method, device, equipment, medium and product for storage service Technical Field The invention relates to the technical field of cloud storage, in particular to a multi-terminal full-quantity synchronization method, device, equipment, medium and product of storage service. Background Along with the development of internet technology, more and more users like to use file synchronization to manage files on different terminals, so that the users can use the needed file content at each terminal at any time, the whole data magnitude of the synchronous file is larger and larger along with continuous use, when the synchronization is needed at a new terminal, the time consumption of the first full synchronization can be very long, and the users cannot use the needed synchronous file content in the period, so that great inconvenience is brought to the users. Disclosure of Invention In order to solve the problems, the invention provides a multi-terminal full-quantity synchronization method, a device, equipment, media and products for storage service, which enable a user to operate a synchronous folder without waiting for complete synchronization of all files, and effectively improve user experience. The embodiment of the invention provides a multi-terminal full-quantity synchronization method for storage services, which comprises the following steps: acquiring file information of a synchronous folder of a cloud end, and displaying virtual directory information of the synchronous folder; when receiving an access request of a user to a target file in the synchronous folder, acquiring metadata of the target file, and downloading the target file to be opened locally; and when the user stores the target file, synchronizing the target file of the cloud according to the stored metadata. Preferably, the synchronizing the target file of the cloud according to the saved metadata includes: Acquiring metadata of the target file at the cloud; judging whether conflict exists or not according to the comparison of the cloud and the local metadata; And uploading the local metadata and file data of the target file to the cloud when no conflict exists. Preferably, the method further comprises: When a conflict exists, updating the local or cloud target data according to a preset conflict rule. Preferably, the determining whether there is a conflict according to the cloud and the local metadata includes: according to the file version, the file name and the file parent directory in the local metadata, respectively comparing the file version, the file name and the file parent directory in the cloud metadata; And determining whether a conflict exists according to the comparison result. Preferably, the downloading the target file to a local opening includes: judging whether the target file is pulled to the local; if the version information of the target file is pulled to the local, judging whether the version information of the target file is consistent with the cloud; And if the version information is consistent with the cloud end, calling a local tool to open the target file. Preferably, the method further comprises: If the local or version information is not pulled out to be inconsistent with the cloud, acquiring metadata of the target file of the cloud, recording the metadata, downloading the target file of the cloud to the local, and calling a local tool to open the target file. Preferably, the determining whether there is a conflict according to the comparison result includes: when the file versions of the local and cloud sides are inconsistent, a conflict prompt that the target file is updated in the cloud side is fed back; When the file names of the local and cloud sides are inconsistent, a conflict prompt for file name modification is fed back; And when the local file parent directory is inconsistent with the cloud file parent directory, feeding back a conflict prompt that the target file is moved. Preferably, the calling file uploading interface updates the metadata of the cloud according to the local metadata, and the method comprises the following steps: when the file versions of the local and the cloud are inconsistent, outputting a conflict prompt updated by the target file in the cloud to a user, and covering the local or the target file in the cloud according to a selection result fed back by the user; when the file names of the local and cloud are inconsistent, the file names of the local are updated preferentially, and then the file uploading interface is called to update the metadata of the local file after the content of the file is updated; When the local file parent directory is inconsistent with the cloud file parent directory, the file uploading interface is preferentially called to update the content of the cloud file, metadata of the latest file is further acquired and updated to the local file, and the local file is moved. Preferably, the obtaining file information of t