CN113010474A - File management method, instant messaging method and storage server - Google Patents

File management method, instant messaging method and storage server Download PDF

Info

Publication number
CN113010474A
CN113010474A CN202110280539.7A CN202110280539A CN113010474A CN 113010474 A CN113010474 A CN 113010474A CN 202110280539 A CN202110280539 A CN 202110280539A CN 113010474 A CN113010474 A CN 113010474A
Authority
CN
China
Prior art keywords
file
transmitted
storage system
storage
backup storage
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.)
Granted
Application number
CN202110280539.7A
Other languages
Chinese (zh)
Other versions
CN113010474B (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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202110280539.7A priority Critical patent/CN113010474B/en
Publication of CN113010474A publication Critical patent/CN113010474A/en
Application granted granted Critical
Publication of CN113010474B publication Critical patent/CN113010474B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/119Details of migration of file systems
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/1734Details of monitoring file system events, e.g. by the use of hooks, filter drivers, logs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Quality & Reliability (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a file management method, which relates to the technical field of communication and is applied to file management when a sending end transmits a file to a receiving end, and the method comprises the following steps: receiving a file to be transmitted sent by a sending end; and migrating the file to be transmitted to a backup storage system according to a preset strategy so that a receiving end downloads the file to be transmitted from the backup storage system. According to the file management method provided by the invention, the file to be transmitted sent by the sending end is migrated to the backup storage system, so that the stored time of the file is prolonged, the problem that the receiving end cannot download the file to be transmitted due to the fact that the storage time length exceeds the preset time length when the file to be transmitted is only stored in the storage server is avoided, and the user experience is improved. The invention also provides an instant messaging method, a storage server and an instant messaging system.

Description

File management method, instant messaging method and storage server
Technical Field
The invention relates to the technical field of communication, in particular to a file management method, an instant messaging method, a storage server and an instant messaging system.
Background
With the development of science and technology and the acceleration of life rhythm, people are more and more dependent on instant messaging tools for communication, such as WeChat. When the instant messaging tool transmits information, transmission of large files (pictures, videos, files and the like) is time-efficient, that is, if a receiving party does not download the large files in an effective time period (for example, within 72 hours of receiving the large files), the large files will fail, so that the receiving party cannot view the large files, and great inconvenience is brought to users.
Disclosure of Invention
The invention provides a file management method, an instant messaging method, a storage server and an instant messaging system, which are used for solving the problem that a user cannot view files after exceeding the period due to timeliness of file storage in the prior art.
In a first aspect, the present invention provides a file management method, including:
receiving a file to be transmitted sent by a sending end;
and migrating the file to be transmitted to a backup storage system according to a preset strategy so that a receiving end downloads the file to be transmitted from the backup storage system.
Preferably, the step of migrating the file to be transferred to the backup storage system according to a preset policy specifically includes:
storing the file to be transmitted locally;
monitoring whether the stored time length of the locally stored file to be transmitted exceeds a preset time length;
when the storage duration of the locally stored file to be transmitted exceeds the preset duration, uploading the locally stored file to be transmitted to the backup storage system, and deleting the locally stored file to be transmitted.
Preferably, the step of migrating the file to be transferred to the backup storage system according to a preset policy specifically includes:
storing the file to be transmitted locally;
monitoring whether the local residual storage space is smaller than a preset threshold value;
and when the monitored local residual storage space is smaller than a preset threshold value, uploading the locally stored file to be transmitted to the backup storage system, and deleting the locally stored file to be transmitted.
Preferably, the step of migrating the file to be transferred to the backup storage system according to a preset policy specifically includes:
storing the file to be transmitted locally, and uploading the file to be transmitted to the backup storage system;
monitoring whether the stored time length of the locally stored file to be transmitted exceeds a preset time length;
and deleting the locally stored file to be transmitted when the monitored storage duration of the locally stored file to be transmitted exceeds the preset duration.
Preferably, the step of migrating the file to be transferred to the backup storage system according to a preset policy specifically includes:
storing the file to be transmitted locally, and uploading the file to be transmitted to the backup storage system;
monitoring whether the local residual storage space is smaller than a preset threshold value;
and when the monitored local residual storage space is smaller than a preset threshold value, deleting at least one file occupying the largest storage space in the local historical storage files.
Preferably, the step of migrating the file to be transferred to the backup storage system according to a preset policy specifically includes:
uploading the file to be transmitted to a backup storage system while receiving the file to be transmitted;
and in response to the completion of uploading the file to be transmitted, deleting the file to be transmitted.
Preferably, after the step of migrating the file to be transferred to the backup storage system according to the preset policy, the method further includes:
receiving a storage address of the file to be transmitted in the backup storage system, which is returned by the backup storage system;
and sending the storage address to a message server so that the message server can send the storage address to a receiving end.
Preferably, the backup storage system is an IPFS system.
In a second aspect, the present invention further provides an instant messaging method, including:
uploading a file to be transmitted to a storage server; and
sending file transmission information to a receiving end through a message server, wherein the file transmission information comprises information of a file to be transmitted;
the storage server is used for realizing the file management method provided by the invention to carry out file management on the file to be transmitted.
In a third aspect, the present invention further provides a storage server, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the file management method provided by the present invention.
In a fourth aspect, the present invention further provides an instant messaging system, including: the system comprises a sending end, a receiving end, a storage server and a backup storage system; wherein, the storage server adopts the storage server provided by the third aspect of the present invention.
The invention has the beneficial technical effects that:
according to the file management method, the instant messaging method, the storage server and the instant messaging system, when the sending end transmits the file to the receiving end, the sending end uploads the file to be transmitted to the storage server, and the storage server receives the file to be transmitted and migrates the file to be transmitted to the backup storage system according to the preset strategy so as to be downloaded by the receiving end. Compared with the prior art, the file to be transmitted is migrated from the storage server to the backup storage system, so that the problem that the receiving end cannot download the file to be transmitted due to the fact that the storage time length exceeds the preset time length when the file to be transmitted is stored in the storage server is avoided, and user experience is improved.
Drawings
Fig. 1 is a schematic structural diagram of an instant messaging system according to the present invention;
FIG. 2 is a flowchart of a file management method according to the present invention;
FIG. 3 is a flow chart of another file management method provided by the present invention;
FIG. 4 is a flowchart of another file management method provided by the present invention;
FIG. 5 is a flowchart of another file management method according to the present invention;
FIG. 6 is a flowchart of another file management method according to the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the following describes the file management method, the instant messaging method, the storage server and the instant messaging system provided by the present invention in detail with reference to the accompanying drawings.
The file management method provided by the invention is used for managing the files involved in the interaction process when the sending end sends the files to the receiving end, and is particularly suitable for managing large files (such as pictures, videos, audios, documents and other files which occupy large memory space) in an instant communication scene. Preferably, the instant messaging tool may be an instant messaging application, such as WeChat or the like.
Fig. 1 is a schematic structural diagram of an instant messaging system in an instant messaging scenario to which the file management method provided in the embodiment of the present invention is applied.
As shown in fig. 1, in an instant messaging scenario, a sending end may be an instant messaging application (an instant messaging client) installed on a first user terminal, a receiving end may be an instant messaging application installed on a second user terminal, and instant messaging may be performed between the sending end and the receiving end through a message server. The first user terminal and the second user terminal may be mobile terminals, such as mobile phones, tablets, and the like.
Fig. 2 is a flowchart of a file management method according to an embodiment of the present invention, where the method is implemented based on the storage server 1 in fig. 1, and as shown in fig. 2, the method includes:
and step S1, receiving the file to be transmitted sent by the sending end.
And step S2, migrating the file to be transmitted to the backup storage system according to a preset strategy so that the receiving end can download the file to be transmitted from the backup storage system.
When a sending end transmits a file to a receiving end in advance, the sending end sends the file to be transmitted to a storage server, after the storage server receives the file to be transmitted, the file to be transmitted is migrated to a backup storage system based on a preset strategy, the backup storage system carries out persistent storage on the file to be transmitted, and when the receiving end downloads the file to be transmitted in advance, the file to be transmitted can be directly downloaded from the backup storage system. The preset policy may be set based on service resources of an operator, for example, the file may be migrated to the backup storage system based on a temporary storage mode, the file may be migrated to the backup storage system based on a dual backup mode, and the file may be migrated to the backup storage system based on a cache mode.
In the embodiment of the present invention, the file to be transmitted may include: files such as pictures, videos, audios and documents which occupy a large storage space, for example, files which occupy more than 1M of the storage space.
According to the file management method provided by the embodiment of the invention, when the sending end transmits the file to the receiving end, the sending end uploads the file to be transmitted to the storage server, and the storage server receives the file to be transmitted and migrates the file to be transmitted to the backup storage system according to the preset strategy so as to be downloaded by the receiving end. Compared with the prior art, the embodiment of the invention has the advantages that the file to be transmitted is migrated from the storage server to the backup storage system, so that the problem that the receiving end cannot download the file to be transmitted because the storage time length exceeds the preset time length when the file to be transmitted is only stored in the storage server is avoided, and the user experience is improved.
Fig. 3 is a flowchart of another file management method according to an embodiment of the present invention, as shown in fig. 3, in some embodiments, step S2 specifically includes:
and step S21a, storing the file to be transmitted locally.
And step S22a, monitoring whether the stored time length of the locally stored file to be transmitted exceeds the preset time length.
When it is monitored that the stored time length of the locally stored file to be transmitted exceeds the preset time length, step S23a is executed, and when it is monitored that the stored time length of the locally stored file to be transmitted does not exceed the preset time length, step S22a is continuously executed.
And step S23a, uploading the file to be transmitted stored locally to the backup storage system, and deleting the file to be transmitted stored locally.
In the embodiment of the invention, the strategy that the storage server migrates the storage file to the backup storage system is realized based on the temporary storage mode, namely, the file is uploaded to the backup storage system only when the storage server monitors that the storage time of the file stored by the storage server exceeds the preset time, the storage server only plays a temporary storage role, the temporary storage mode has low dependency on the backup storage system, and is suitable for the initial application process of the file transmission method, and the mode is favorable for the stability of the system.
In some embodiments, the storage server may further determine whether to upload the file to be transmitted to the backup storage system by monitoring the size of the local remaining storage space, and specifically, step S2 may include:
step S21 a', the file to be transmitted is stored locally.
Step S22 a', monitors whether the local remaining storage space is less than a preset threshold.
When the monitored local remaining storage space is less than the preset threshold, step S23a 'is performed, and when the monitored local remaining storage space is not less than the preset threshold, step S22 a' is performed.
Step S23 a', upload the file to be transmitted stored locally to the backup storage system, and delete the file to be transmitted stored locally.
In some embodiments, the storage server may also monitor both the stored time length of the file and the local remaining storage space, that is, the file to be transmitted is migrated to the backup storage system as long as the monitored stored time length of the file exceeds the preset time length and/or the monitored local remaining storage space is less than the preset threshold. The storage space utilization rate of the storage server can be further improved by carrying out double monitoring on the stored time length and the local residual space of the file.
Fig. 4 is a flowchart of another file management method according to an embodiment of the present invention, as shown in fig. 4, in some embodiments, step S2 specifically includes:
step S21b, while storing the file to be transmitted locally, uploading the file to be transmitted to the backup storage system.
And step S22b, monitoring whether the stored time length of the file to be transmitted stored locally exceeds the preset time length.
When the stored time length of the file to be transmitted stored locally is monitored to exceed the preset time length, the step S23b is executed, and when the stored time length of the file to be transmitted stored locally is monitored not to exceed the preset time length, the step S22b is continuously executed.
And step S23b, deleting the file to be transmitted stored locally.
In the embodiment of the invention, the strategy that the storage server migrates the file to be transmitted to the backup storage system is realized based on a double backup mode, namely, the storage server locally stores the file to be transmitted and simultaneously uploads the file to be transmitted to the backup storage system for storage, namely, the file to be transmitted realizes double backup in the storage server and the backup storage system, and the mode occupies more space of the backup storage system, but also improves the safety of the file and ensures that the file is not easy to lose.
As described above, in some embodiments, in order to effectively improve the utilization efficiency of the local storage space, the storage server monitors and manages the size of the local remaining storage space after uploading the file to be transmitted to the backup storage system, and specifically, the step S2 may include:
step S21 b', while storing the file to be transmitted locally, uploading the file to be transmitted to the backup storage system.
Step S22 b', monitoring whether the local residual storage space is less than a preset threshold value;
when the monitored local remaining storage space is less than the preset threshold, step S23b 'is performed, and when the monitored local remaining storage space is not less than the preset threshold, step S22 b' is continuously performed.
Step S23 b', delete at least one file occupying the largest storage space in the local history storage files.
In step S23 b', when it is monitored that the local remaining storage space is smaller than the preset threshold, the local storage space is released by deleting the local history storage file, and when the history storage file is deleted, the file occupying the largest storage space is preferentially deleted until the remaining storage space is not smaller than the preset threshold; in some embodiments, the deletion may also be performed according to the sequence of the storage time points, that is, the file with the storage time point before is preferentially deleted, so that the file retained in the local storage space is the file uploaded at the latest time point.
In some embodiments, the storage server may also monitor both the stored time length of the file and the local remaining storage space, that is, the local history storage file is deleted as long as the stored time length of the file is monitored to exceed the preset time length and/or the local remaining storage space is monitored to be smaller than the preset threshold, and the storage space utilization rate of the storage server can be further improved by performing double monitoring on the stored time length and the local remaining storage space of the file.
Fig. 5 is a flowchart of another file management method according to an embodiment of the present invention, as shown in fig. 5, in some embodiments, step S2 specifically includes:
and step S21c, uploading the file to be transmitted to the backup storage system while receiving the file to be transmitted.
And step S22c, in response to the uploading of the file to be transmitted being completed, deleting the file to be transmitted.
In the embodiment of the invention, the strategy that the storage server migrates the storage file to the backup storage system is realized based on a cache mode, namely, after receiving the file to be transmitted, the storage server immediately uploads the file to be transmitted to the backup storage system and deletes the file to be transmitted stored in the storage server after the uploading is successful, the storage of the file in the mode completely depends on the backup storage system, the function of the storage server is minimized, and only the function of caching is realized.
In the embodiment of the present invention, the backup storage System is preferably an IPFS System, which is also called an InterPlanetary File System (IPFS) and is a network transmission protocol for creating persistent and Distributed storage and File sharing, and is a peer-to-peer hypermedia distribution protocol with addressable content, nodes in the IPFS network form a Distributed File System, and the IPFS is a File storage and content distribution network protocol that combines an existing successful System Distributed Hash Table (DHTs), a bit stream (BitTorrent), a version control System Git, a Self-Certified File System (Self-Certified File systems-SFS) and a block chain, and the integration of these systems makes the IPFS System have the following characteristics: 1. persistent, decentralized save and share files (storage DHTs in blockchain mode); 2. point-to-point hypermedia: P2P holds various types of data (BitTorrent); 3. versioning: traceable file modification history (Git-Merkle DAG merkel directed acyclic graph); 4. content addressing: the file is identified by generating an independent hash value through the file content (called a content identifier), but not by the file storage position, and only one file with the same content exists in the system, so that the storage space is saved. The IPFS network stores files in network nodes by using a decentralized architecture, does not occupy server resources, has the characteristic of permanent storage, and can ensure that contents do not expire for a longer time.
The embodiment of the invention realizes the file management by means of matching the IPFS system and the storage server, reduces the resource occupation of the storage server, prolongs the storage time of the file and improves the user experience.
Of course, the embodiment of the present invention is not limited to using the IPFS system as the backup storage system, and other storage systems may be used as the backup storage system, as long as the storage time of the file can be extended, which all belong to the protection scope of the present invention.
Fig. 6 is a flowchart of another file management method according to an embodiment of the present invention, as shown in fig. 6, in some embodiments, after step S2 in the embodiment shown in fig. 1, the method further includes:
and step S3, receiving the storage address of the file to be transmitted in the backup storage system returned by the backup storage system.
And step S4, sending the storage address to the message server for the message server to send the storage address to the receiving end.
In the embodiment of the invention, after a storage server migrates a file to be transmitted to a backup storage system, the backup storage system returns a storage address of the file to be transmitted to the storage server, the storage server packages the storage address and original receiving end information of the file to be transmitted to a message server after receiving the storage address, the message server analyzes the original receiving end information from the packaged message and transmits the storage address to a corresponding receiving end so that the receiving end downloads the file to be transmitted sent from a transmitting end according to the storage address.
It should be noted that, in this embodiment, when the backup storage system is an IPFS system, the storage address of the file to be transmitted is a content identifier, the content identifier is an independent hash value generated based on the content of the file to be transmitted, and has uniqueness, and the receiving end can extract the file to be transmitted from the backup storage system according to the content identifier.
After step S4, the receiving end downloads the file to be transmitted from the backup storage system after receiving the storage address sent by the message server. In some embodiments, when the backup storage system is an IPFS system, the receiving end may access the IPFS system to read a file to be transmitted in a proxy manner, and specifically, the receiving end may access the IPFS system based on the following manner: 1. the access is carried out through an IPFS node (the node comprises a proxy function) matched with a message service provider; 2. accessing through an IPFS agent installed on a terminal where a receiving end is located; 3. access is made through an agent officially provided by IPFS (currently https:// IPFS. io/IPFS /).
In the embodiment of the invention, when the storage time of the file to be transmitted in the storage server does not exceed the preset time, or before the storage server does not transfer the file to be transmitted to the backup storage system and delete the local file to be transmitted, the receiving end can still directly download and read the file to be transmitted from the storage server.
An embodiment of the present invention further provides an instant messaging method, where the method manages a file sent between a sending end and a receiving end by applying the file management method provided in the foregoing embodiment of the present invention, and specifically, the method includes:
and step Sa, the sending end uploads the file to be transmitted to the storage server.
And Sb, after the file to be transmitted is uploaded, the transmitting end acquires the information of the file to be transmitted from the storage server.
The information of the file to be transmitted comprises a storage address of the file to be transmitted in the storage server.
And step Sc, the sending end sends file transmission information to the receiving end through the message server, wherein the file transmission information comprises information of a file to be transmitted.
The file transmission information specifically includes a storage address of the file to be transmitted in the storage server, and the file to be transmitted can be extracted from the storage server through the storage address.
And Sd, after the file to be transmitted is uploaded, the storage server migrates the file to be transmitted to a backup storage system according to a preset strategy.
In the embodiment of the present invention, the storage server manages the file to be transmitted based on the file management method in any one of the embodiments of the present invention, for details, refer to the description of the file management method in the embodiment above, and details are not described here.
The present invention also provides a storage server, comprising: at least one processor; and a memory communicatively coupled to at least one of the processors; the storage stores instructions executable by at least one of the processors, and the instructions are executed by at least one of the processors to enable the at least one of the processors to execute the file management method provided by the above-mentioned embodiment of the present application.
An embodiment of the present invention further provides an instant messaging system, as shown in fig. 1, the system includes: the system comprises a storage server 1, a backup storage system 2, a sending end 3, a receiving end 4 and a message server 5; the storage server 1 adopts the storage server provided by the above embodiment of the present invention.
The following describes the file management method provided by the embodiment of the present invention in detail based on the instant messaging system provided by the present invention.
Step 1, the sending end uploads the file to be transmitted to the storage server after detecting that the file to be transmitted is a large file.
And step 2, after the transmitting end confirms that the uploading is finished, transmitting file transmission information to the message server, wherein the file transmission information comprises a storage address of the file to be transmitted in the storage server.
And 3, the message server sends the file transmission information to a receiving end.
And 4, after receiving the file transmission information sent by the message server, the receiving end downloads the file to be transmitted according to the storage address of the file to be transmitted in the storage server, wherein the storage address of the file to be transmitted is contained in the file transmission information.
After step 1, the method further comprises the following steps:
and 2a, the storage server migrates the file to be transmitted to a backup storage system based on a preset strategy.
And 2b, the backup storage system feeds back the storage address of the file to be transmitted in the backup storage system to the message server.
And 2c, the message server sends the storage address of the file to be transmitted in the backup storage system, which is fed back by the backup storage system, to the receiving end.
And 2d, the receiving end downloads the file to be transmitted from the backup storage system according to the storage address of the file to be transmitted in the backup storage system.
In the embodiment of the invention, when the storage time of the file in the storage server does not exceed the preset time, the receiving end can download the file from the storage server, and when the storage time of the file in the storage server exceeds the preset time, the receiving end receives a new storage address of the file in the backup storage system, and the receiving end can download the file from the backup storage system based on the new storage address.
It will be understood that the above embodiments are merely exemplary embodiments taken to illustrate the principles of the present invention, which is not limited thereto. It will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the spirit and substance of the invention, and these modifications and improvements are also considered to be within the scope of the invention.

Claims (11)

1. A method of file management, the method comprising:
receiving a file to be transmitted sent by a sending end;
and migrating the file to be transmitted to a backup storage system according to a preset strategy so that a receiving end downloads the file to be transmitted from the backup storage system.
2. The method according to claim 1, wherein the step of migrating the file to be transferred to the backup storage system according to a preset policy specifically comprises:
storing the file to be transmitted locally;
monitoring whether the stored time length of the locally stored file to be transmitted exceeds a preset time length;
when the storage duration of the locally stored file to be transmitted exceeds the preset duration, uploading the locally stored file to be transmitted to the backup storage system, and deleting the locally stored file to be transmitted.
3. The method according to claim 1, wherein the step of migrating the file to be transferred to the backup storage system according to a preset policy specifically comprises:
storing the file to be transmitted locally;
monitoring whether the local residual storage space is smaller than a preset threshold value;
and when the monitored local residual storage space is smaller than a preset threshold value, uploading the locally stored file to be transmitted to the backup storage system, and deleting the locally stored file to be transmitted.
4. The method according to claim 1, wherein the step of migrating the file to be transferred to the backup storage system according to a preset policy specifically comprises:
storing the file to be transmitted locally, and uploading the file to be transmitted to the backup storage system;
monitoring whether the stored time length of the locally stored file to be transmitted exceeds a preset time length;
and deleting the locally stored file to be transmitted when the monitored storage duration of the locally stored file to be transmitted exceeds the preset duration.
5. The method according to claim 1, wherein the step of migrating the file to be transferred to the backup storage system according to a preset policy specifically comprises:
storing the file to be transmitted locally, and uploading the file to be transmitted to the backup storage system;
monitoring whether the local residual storage space is smaller than a preset threshold value;
and when the monitored local residual storage space is smaller than a preset threshold value, deleting at least one file occupying the largest storage space in the local historical storage files.
6. The method according to claim 1, wherein the step of migrating the file to be transferred to the backup storage system according to a preset policy specifically comprises:
uploading the file to be transmitted to a backup storage system while receiving the file to be transmitted;
and in response to the completion of uploading the file to be transmitted, deleting the file to be transmitted.
7. The method according to claim 1, wherein after the step of migrating the file to be transferred to the backup storage system according to the preset policy, the method further comprises:
receiving a storage address of the file to be transmitted in the backup storage system, which is returned by the backup storage system;
and sending the storage address to a message server so that the message server can send the storage address to a receiving end.
8. The method of any of claims 1-7, wherein the backup storage system is an IPFS system.
9. An instant messaging method, comprising:
uploading a file to be transmitted to a storage server; and
sending file transmission information to a receiving end through a message server, wherein the file transmission information comprises information of a file to be transmitted;
the storage server is used for file management of the file to be transmitted based on the file management method of any one of claims 1 to 8.
10. A storage server, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-8.
11. An instant messaging system, comprising: the system comprises a sending end, a receiving end, a storage server and a backup storage system; wherein the storage server adopts the storage server of claim 10.
CN202110280539.7A 2021-03-16 2021-03-16 File management method, instant messaging method and storage server Active CN113010474B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110280539.7A CN113010474B (en) 2021-03-16 2021-03-16 File management method, instant messaging method and storage server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110280539.7A CN113010474B (en) 2021-03-16 2021-03-16 File management method, instant messaging method and storage server

Publications (2)

Publication Number Publication Date
CN113010474A true CN113010474A (en) 2021-06-22
CN113010474B CN113010474B (en) 2023-10-24

Family

ID=76408175

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110280539.7A Active CN113010474B (en) 2021-03-16 2021-03-16 File management method, instant messaging method and storage server

Country Status (1)

Country Link
CN (1) CN113010474B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114791981A (en) * 2022-06-24 2022-07-26 山东欧通信息科技有限公司 Internet-based data query management system for file consultation
CN116074128A (en) * 2023-04-04 2023-05-05 北京久安世纪科技有限公司 SFTP (Small form-factor pluggable) authorization method and system based on portable operation and maintenance gateway

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060224824A1 (en) * 2005-03-31 2006-10-05 Inventec Corporation System and method for accessing and verifying the validity of data content stored in the cache memory on disk
CN101106542A (en) * 2007-08-20 2008-01-16 北京亿企通信息技术有限公司 A method and system for transferring file in instant communication tool
CN102868632A (en) * 2011-07-05 2013-01-09 句容博通科技咨询服务有限公司 P2P (peer-to-peer) traffic identification and monitoring system based on multi-dimensional vector machine
CN103581230A (en) * 2012-07-26 2014-02-12 深圳市腾讯计算机系统有限公司 File transmission system and method, receiving end and sending end
CN104484287A (en) * 2014-12-19 2015-04-01 北京麓柏科技有限公司 Nonvolatile cache realization method and device
US20150237113A1 (en) * 2012-11-06 2015-08-20 Tencent Technology (Shenzhen) Company Limited Method and system for file transmission
CN105404645A (en) * 2015-10-27 2016-03-16 北京乐动卓越科技有限公司 File management method in file server system and file server system
US20160148652A1 (en) * 2014-11-24 2016-05-26 Seagate Technology Llc Data Storage Device with Wear Level Identification
CN108574717A (en) * 2017-04-10 2018-09-25 北京金山云网络技术有限公司 A kind of cross-terminal file uploading method, apparatus and system
CN109992449A (en) * 2017-12-31 2019-07-09 中国移动通信集团四川有限公司 Backup image management system, method, equipment and medium
CN110958302A (en) * 2019-11-04 2020-04-03 广东小天才科技有限公司 File uploading method, user terminal, uploading management server and system
US20200192899A1 (en) * 2018-12-14 2020-06-18 Commvault Systems, Inc. Query caching during backup within an enterprise information management system

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060224824A1 (en) * 2005-03-31 2006-10-05 Inventec Corporation System and method for accessing and verifying the validity of data content stored in the cache memory on disk
CN101106542A (en) * 2007-08-20 2008-01-16 北京亿企通信息技术有限公司 A method and system for transferring file in instant communication tool
CN102868632A (en) * 2011-07-05 2013-01-09 句容博通科技咨询服务有限公司 P2P (peer-to-peer) traffic identification and monitoring system based on multi-dimensional vector machine
CN103581230A (en) * 2012-07-26 2014-02-12 深圳市腾讯计算机系统有限公司 File transmission system and method, receiving end and sending end
US20150237113A1 (en) * 2012-11-06 2015-08-20 Tencent Technology (Shenzhen) Company Limited Method and system for file transmission
US20160148652A1 (en) * 2014-11-24 2016-05-26 Seagate Technology Llc Data Storage Device with Wear Level Identification
CN104484287A (en) * 2014-12-19 2015-04-01 北京麓柏科技有限公司 Nonvolatile cache realization method and device
CN105404645A (en) * 2015-10-27 2016-03-16 北京乐动卓越科技有限公司 File management method in file server system and file server system
CN108574717A (en) * 2017-04-10 2018-09-25 北京金山云网络技术有限公司 A kind of cross-terminal file uploading method, apparatus and system
CN109992449A (en) * 2017-12-31 2019-07-09 中国移动通信集团四川有限公司 Backup image management system, method, equipment and medium
US20200192899A1 (en) * 2018-12-14 2020-06-18 Commvault Systems, Inc. Query caching during backup within an enterprise information management system
CN110958302A (en) * 2019-11-04 2020-04-03 广东小天才科技有限公司 File uploading method, user terminal, uploading management server and system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
MIN FU等: "Reducing Fragmentation for In-line Deduplication Backup Storage via Exploiting Backup History and Cache Knowledge", 《IEEE TRANSACTIONS ON PARALLEL AND DISTRIBUTED SYSTEMS》, vol. 27, no. 3, pages 855 - 868, XP011598387, DOI: 10.1109/TPDS.2015.2410781 *
张洁: "电信MMSC多媒体消息中心的建设实施设计", 《中国优秀硕士学位论文全文数据库信息科技辑》, no. 4, pages 136 - 664 *
重典: "无缝的缓存读取:双存储缓存策略,重典", pages 1, Retrieved from the Internet <URL:《https://blog.csdn.net/chsword/article/details/4042305》> *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114791981A (en) * 2022-06-24 2022-07-26 山东欧通信息科技有限公司 Internet-based data query management system for file consultation
CN116074128A (en) * 2023-04-04 2023-05-05 北京久安世纪科技有限公司 SFTP (Small form-factor pluggable) authorization method and system based on portable operation and maintenance gateway

Also Published As

Publication number Publication date
CN113010474B (en) 2023-10-24

Similar Documents

Publication Publication Date Title
US10708350B2 (en) Method and system for content delivery of mobile terminal applications
EP2735972B1 (en) Data transmission and reception system
CN111049884A (en) Distributed large file storage system and file uploading and downloading method
CN113010474B (en) File management method, instant messaging method and storage server
CN112311897A (en) Resource file downloading method, device, equipment and medium
US20180189315A1 (en) Method and device for calling a distributed file system
WO2008025297A1 (en) A method for downloading files by adopting the p2p technique and a p2p downloading system
CN110703980A (en) File transmission method and device
US8812718B2 (en) System and method of streaming data over a distributed infrastructure
CN111708743A (en) File storage management method, file management client and file storage management system
CN102420863B (en) Rapid file distribution system, method thereof and apparatus thereof
CN112035422B (en) Distributed real-time data synchronization method, node equipment and system based on IPFS
CN103220308B (en) A kind of document down loading method, apparatus and system
CN103297447A (en) Resource sharing method and resource sharing equipment
JP2023547256A (en) Data download methods, devices, and computer equipment
CN113810349B (en) Data transmission method, device, computer equipment and storage medium
CN114553693A (en) Gateway upgrading method and device
CN103746768A (en) Data packet identification method and equipment thereof
EP1421759A1 (en) Terminals adapted to act as relay servers for distributing packets in a client-server network
KR101325351B1 (en) Asynchronous Multi-Source Streaming
CN116405547A (en) Message pushing method and device, processor, electronic equipment and storage medium
CN110196842A (en) File memory method, management method, device, server and storage medium
CN113612811B (en) Method, system, equipment and medium for client mounting in multiple channels
CN113067868B (en) Method, device and computer equipment for maintaining long connection
CN114900510A (en) Information pushing method, server, client 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
GR01 Patent grant
GR01 Patent grant