CN113010474B - File management method, instant messaging method and storage server - Google Patents
File management method, instant messaging method and storage server Download PDFInfo
- Publication number
- CN113010474B CN113010474B CN202110280539.7A CN202110280539A CN113010474B CN 113010474 B CN113010474 B CN 113010474B CN 202110280539 A CN202110280539 A CN 202110280539A CN 113010474 B CN113010474 B CN 113010474B
- Authority
- CN
- China
- Prior art keywords
- file
- transmitted
- storage system
- backup storage
- 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.)
- Active
Links
- 238000007726 management method Methods 0.000 title claims abstract description 35
- 238000000034 method Methods 0.000 title claims abstract description 26
- 230000005540 biological transmission Effects 0.000 claims description 15
- 238000012544 monitoring process Methods 0.000 claims description 14
- 239000004973 liquid crystal related substance Substances 0.000 claims description 4
- 230000009977 dual effect Effects 0.000 claims description 3
- 230000004044 response Effects 0.000 claims description 3
- 230000006854 communication Effects 0.000 abstract description 9
- 238000004891 communication Methods 0.000 abstract description 8
- 230000002035 prolonged effect Effects 0.000 abstract description 2
- 239000003795 chemical substances by application Substances 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000002085 persistent effect Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000002349 favourable effect Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000033764 rhythmic process Effects 0.000 description 1
- 239000000126 substance Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/11—File system administration, e.g. details of archiving or snapshots
- G06F16/119—Details of migration of file systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
- G06F11/1464—Management of the backup or restore process for networked environments
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
- G06F16/162—Delete operations
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/172—Caching, prefetching or hoarding of files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/1734—Details of monitoring file system events, e.g. by the use of hooks, filter drivers, logs
Abstract
The application provides a file management method, which relates to the technical field of communication and is applied to file management when a sending end transmits files 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 application, the file to be transmitted, which is 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 exceeds the preset time when the file to be transmitted is only stored in the storage server is avoided, and the user experience is improved. The application also provides an instant messaging method, a storage server and an instant messaging system.
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to a file management method, an instant messaging method, a storage server, and an instant messaging system.
Background
With development of technology and acceleration of life rhythm, people increasingly rely on instant messaging tools for communication, such as micro-messaging. When the instant messaging tool transmits information, the transmission of large files (pictures, videos, files and the like) is time-efficient, that is, if the receiving party does not download the large files within a valid period of time (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, which brings great inconvenience to the user.
Disclosure of Invention
The application 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 in the prior art, a user cannot check a file after the time of file storage exceeds the time.
In a first aspect, the present application provides a file management method, the 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 stored time length of the locally stored files to be transmitted exceeds the preset time length, uploading the locally stored files to be transmitted to the backup storage system, and deleting the locally stored files 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 uploading the file to be transmitted which is stored locally to the backup storage system when the local residual storage space is monitored to be smaller than a preset threshold value, and deleting the file to be transmitted which is stored locally.
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 stored time length of the locally stored file to be transmitted is monitored to exceed the preset time length.
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 deleting at least one file occupying the largest storage space in the local historical storage files when the local residual storage space is monitored to be smaller than the preset threshold value.
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 deleting the file to be transmitted in response to the completion of uploading 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 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 application further provides an instant messaging method, including:
uploading a file to be transmitted to a storage server; and
transmitting 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 application to manage the files to be transmitted.
In a third aspect, the present application also provides a storage server, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
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 application.
In a fourth aspect, the present application also 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 in the third aspect of the present application.
The beneficial technical effects of the application are as follows:
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 transfers the file to be transmitted to the backup storage system according to a preset strategy so as to be downloaded by the receiving end. Compared with the prior art, the method and the device for transferring the file to be transferred from the storage server to the backup storage system avoid the problem that the receiving end cannot download the file to be transferred due to the fact that the storage time exceeds the preset time when the file to be transferred is stored in the storage server, and therefore user experience is improved.
Drawings
Fig. 1 is a schematic structural diagram of an instant messaging system according to the present application;
FIG. 2 is a flow chart of a file management method according to the present application;
FIG. 3 is a flowchart of another file management method according to the present application;
FIG. 4 is a flowchart of another file management method according to the present application;
FIG. 5 is a flowchart of another file management method according to the present application;
fig. 6 is a flowchart of another file management method provided by the present application.
Detailed Description
In order to enable those skilled in the art to better understand the technical scheme of the present application, the file management method, the instant messaging method, the storage server and the instant messaging system provided by the present application are described in detail below with reference to the accompanying drawings.
The file management method provided by the application 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 files occupying large memory space, such as pictures, videos, audios, documents and the like) in an instant messaging scene. Preferably, the instant messaging tool may be an instant messaging application, such as a micro-message or the like.
Fig. 1 is a schematic diagram of an instant messaging system in an instant messaging scenario to which the file management method provided in the embodiment of the present application is applicable.
As shown in fig. 1, in an instant communication scenario, a sending end may be an instant communication application program (an instant communication client) installed on a first user terminal, a receiving end may be an instant communication application program installed on a second user terminal, instant communication may be performed between the sending end and the receiving end through a message server, and in the instant communication process, when the sending end needs to transmit a large file to the receiving end, the sending end first sends the file to be transmitted to a storage server for file management by the storage 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 application, where the method is implemented based on the storage server 1 in fig. 1, and as shown in fig. 2, the method includes:
step S1, receiving a file to be transmitted sent by a sending end.
And S2, migrating the file to be transmitted to a backup storage system according to a preset strategy so that the receiving end downloads the file to be transmitted from the backup storage system.
When the sending end pre-transmits the file to the receiving end, the sending end sends the file to be transmitted to the storage server, the storage server transfers the file to be transmitted to the backup storage system based on a preset strategy after receiving the file to be transmitted, the backup storage system performs persistent storage on the file to be transmitted, and when the receiving end pre-downloads the file to be transmitted, 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 the 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 an embodiment of the present application, the file to be transmitted may include: files occupying a large storage space, such as files occupying more than 1M of storage space, such as pictures, videos, audios, documents, and the like.
According to the file management method provided by the embodiment of the application, 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 transfers 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 method and the device for transferring the files to be transferred have the advantages that the problem that when the files to be transferred are only stored in the storage server, the receiving end cannot download the files to be transferred due to the fact that the storage time exceeds the preset time is avoided, and therefore user experience is improved.
Fig. 3 is a flowchart of another file management method according to an embodiment of the present application, as shown in fig. 3, in some embodiments, step S2 specifically includes:
step S21a, storing the file to be transmitted locally.
Step S22a, monitoring whether the stored time length of the locally stored file to be transmitted exceeds a preset time length.
When the stored time period of the locally stored file to be transmitted is monitored to exceed the preset time period, step S23a is executed, and when the stored time period of the locally stored file to be transmitted is monitored to not exceed the preset time period, step S22a is executed continuously.
Step S23a, uploading the locally stored file to be transmitted to a backup storage system, and deleting the locally stored file to be transmitted.
In the embodiment of the application, the strategy of the storage server for transferring the storage file to the backup storage system is realized based on a temporary storage mode, namely, the storage server only plays a temporary storage role when the storage server monitors that the storage time of the self-stored file exceeds the preset time, the temporary storage mode has lower dependence on the backup storage system, and the mode is suitable for the initial application process of the file transmission method and is favorable for the stability of the system.
In some embodiments, the storage server may further determine whether to upload the file to be transferred to the backup storage system by monitoring the size of the local remaining storage space, and specifically, step S2 may include:
step S21a', the file to be transferred is stored locally.
Step S22a', monitor whether the local remaining storage space is smaller than a preset threshold.
When the local remaining storage space is monitored to be smaller than the preset threshold, step S23a 'is performed, and when the local remaining storage space is monitored to be not smaller than the preset threshold, step S22a' is performed.
Step S23a', uploading the locally stored file to be transmitted to a backup storage system, and deleting the locally stored file to be transmitted.
In some embodiments, the storage server may monitor both the stored duration of the file and the local remaining storage space, that is, migrate the file to be transferred to the backup storage system whenever the stored duration of the file is monitored to exceed a preset duration and/or the local remaining storage space is monitored to be less than a preset threshold. 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 residual space of the file.
Fig. 4 is a flowchart of another file management method according to an embodiment of the present application, as shown in fig. 4, in some embodiments, step S2 specifically includes:
step S21b, uploading the file to be transmitted to a backup storage system while storing the file to be transmitted locally.
Step S22b, monitoring whether the stored time length of the file to be transmitted stored locally exceeds a preset time length.
When the stored time period of the locally stored file to be transmitted is monitored to exceed the preset time period, step S23b is executed, and when the stored time period of the locally stored file to be transmitted is monitored to not exceed the preset time period, step S22b is executed continuously.
Step S23b, deleting the file to be transmitted which is stored locally.
In the embodiment of the application, the strategy of the storage server for transferring the file to be transferred to the backup storage system is realized based on a dual-backup mode, namely, the storage server uploads the file to be transferred to the backup storage system for storage while locally storing the file to be transferred, namely, the file to be transferred realizes dual-backup in the storage server and the backup storage system, and the mode occupies more space of the backup storage system, but simultaneously improves the safety of the file and ensures that the file is not easy to lose.
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 step S2 may specifically include:
step S21b', uploading the file to be transferred to the backup storage system while storing the file to be transferred locally.
Step S22b', monitoring whether the local residual storage space is smaller than a preset threshold value;
when the local remaining storage space is monitored to be smaller than the preset threshold, step S23b 'is performed, and when the local remaining storage space is monitored to be not smaller than the preset threshold, step S22b' is continued to be performed.
Step S23b', delete at least one file with the largest occupied storage space in the local history storage file.
In step S23b', 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 in the order of the storage time points, that is, the files before the storage time point are preferentially deleted, so that the files reserved in the local storage space are the files uploaded at the latest time point.
In some embodiments, the storage server may monitor the stored time length of the file and monitor the local remaining storage space, that is, delete the local history storage file 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 further improve the storage space utilization rate of the storage server by performing dual monitoring on the stored time length of the file and the local remaining storage space.
Fig. 5 is a flowchart of another file management method according to an embodiment of the present application, as shown in fig. 5, in some embodiments, step S2 specifically includes:
step S21c, uploading the file to be transmitted to the backup storage system while receiving the file to be transmitted.
And step S22c, deleting the file to be transmitted in response to completion of uploading the file to be transmitted.
In the embodiment of the application, the strategy of the storage server for transferring the storage file to the backup storage system is realized based on a cache mode, namely, the storage server immediately uploads the file to be transferred to the backup storage system after receiving the file to be transferred and deletes the file to be transferred stored by the storage server after uploading is successful.
In the embodiment of the present application, the backup storage system is preferably an IPFS system, which is also called an interplanetary file system (InterPlanetary File System, abbreviated as IPFS), and is a network transmission protocol for creating persistent and distributed storage and sharing files, and is a content addressable peer-to-peer hypermedia distribution protocol, nodes in the IPFS network form a distributed file system, and the IPFS is a file storage and content distribution network protocol that combines existing successful system distributed hash tables (Distributed Hash Tables (DHTs)), bit streams (BitTorrent), version control systems Git, self-authentication file systems (Self-Certified Filesystems-SFS), and blockchains, and the comprehensive advantages of these systems enable the following characteristics to be provided in the IPFS system: 1. permanent, decentralised 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 merck directed acyclic graph); 4. content addressable: the files (called content identifiers) are identified through generating independent hash values by the file contents, rather than identifying by file storage positions, only one file with the same content exists in the system, and storage space is saved. The IPFS network stores the files in the network nodes by using a decentralization architecture, does not occupy server resources, has the characteristic of permanent storage, and can ensure that the content is not expired for a longer time.
The embodiment of the application realizes the management of the file by means of the cooperation of 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 application is not limited to using the IPFS system as a backup storage system, and other storage systems may be used as backup storage systems, so long as the storage time of the file can be prolonged, which all fall into the protection scope of the application.
Fig. 6 is a flowchart of another file management method according to an embodiment of the present application, as shown in fig. 6, in some embodiments, after step S2 in the embodiment shown in fig. 1, further includes:
and step S3, receiving the storage address of the file to be transmitted in the backup storage system, which is returned by the backup storage system.
And step S4, the storage address is sent to the message server, so that the message server can send the storage address to the receiving end.
In the embodiment of the application, after the storage server transfers the file to be transmitted to the backup storage system, the backup storage system returns the storage address of the file to be transmitted to the storage server, the storage server packages and sends the storage address and the original receiving end information of the file to be transmitted to the message server after receiving the storage address, the message server analyzes the original receiving end information from the packaged message, and sends the storage address to the corresponding receiving end so that the receiving end downloads the file to be transmitted sent by the sending 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, where 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 by proxy to read the file to be transferred, and specifically, the receiving end may access the IPFS system based on the following ways: 1. accessing through IPFS node (node includes proxy function) matched with message service provider; 2. accessing through an IPFS agent installed on a terminal where a receiving end is located; 3. access is via agents provided by IPFS authorities (currently https:// IPFS. Io/IPFS /).
In the embodiment of the application, 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 migrate 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.
The embodiment of the application also provides an instant messaging method, which is used for managing files between a sending end and a receiving end by using the file management method provided by the embodiment of the application, and specifically comprises the following steps:
step Sa, the sending end uploads the file to be transmitted to the storage server.
And step Sb, after the uploading of the file to be transmitted is completed, 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 a 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 step Sd, after the uploading of the file to be transmitted is completed, the storage server transfers the file to be transmitted to the backup storage system according to a preset strategy.
In the embodiment of the present application, the storage server manages the file to be transmitted based on the file management method in any of the above embodiments of the present application, and the description of the file management method in the above embodiment is specifically referred to, and is not repeated here.
The present application also provides a storage server comprising: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by at least one of the processors, the instructions being executable by the at least one of the processors to enable the at least one of the processors to perform the file management method provided by the above-described embodiments of the present application.
The embodiment of the application also provides an instant messaging system, as shown in fig. 1, which comprises: a storage server 1, a backup storage system 2, a transmitting end 3, a receiving end 4 and a message server 5; the storage server 1 is a storage server provided in the above embodiment of the present application.
The file management method provided by the embodiment of the application is described in detail below based on the instant messaging system provided by the application.
Step 1, the sending end uploads the file to be transmitted to a 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 a file to be transmitted in the storage server.
And step 3, the message server sends the file transmission information to the receiving end.
And step 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 is included in the file transmission information.
After step 1, further comprising:
and 2a, the storage server migrates the file to be transmitted to the 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 step 2c, the message server sends the storage address of the file to be transmitted fed back by the backup storage system in 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 application, 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 is to be understood that the above embodiments are merely illustrative of the application of the principles of the present application, but not in limitation thereof. Various modifications and improvements may be made by those skilled in the art without departing from the spirit and substance of the application, and are also considered to be within the scope of the application.
Claims (6)
1. A method of file management, the method comprising:
receiving a file to be transmitted sent by a sending end;
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; the preset policy is set based on service resources of an operator, and the method comprises the following steps: temporary storage mode, dual backup mode, and cache mode;
the step of migrating the file to be transmitted to a backup storage system according to the preset strategy specifically comprises the following steps:
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 stored time length of the locally stored files to be transmitted exceeds the preset time length, uploading the locally stored files to be transmitted to the backup storage system, and deleting the locally stored files to be transmitted;
the step of migrating the file to be transmitted to a backup storage system according to the preset strategy specifically comprises the following steps:
storing the file to be transmitted locally;
monitoring whether the local residual storage space is smaller than a preset threshold value;
when the fact that the local residual storage space is smaller than a preset threshold value is monitored, uploading the locally stored files to be transmitted to the backup storage system, and deleting the locally stored files to be transmitted;
the step of migrating the file to be transmitted to a backup storage system according to the preset strategy specifically comprises the following steps:
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;
deleting the locally stored file to be transmitted when the stored time length of the locally stored file to be transmitted is monitored to exceed the preset time length;
the step of migrating the file to be transmitted to a backup storage system according to the preset strategy specifically comprises the following steps:
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;
when the local residual storage space is monitored to be smaller than a preset threshold value, deleting at least one file occupying the largest storage space in the local historical storage files;
the step of migrating the file to be transmitted to a backup storage system according to the preset strategy specifically comprises the following steps:
uploading the file to be transmitted to a backup storage system while receiving the file to be transmitted;
and deleting the file to be transmitted in response to the completion of uploading the file to be transmitted.
2. The method of claim 1, further comprising, after the step of migrating the file to be transferred to a backup storage system according to a preset policy:
receiving a storage address of the file to be transmitted in the backup storage system 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.
3. The method of any of claims 1-2, wherein the backup storage system is an IPFS system.
4. An instant messaging method, comprising:
uploading a file to be transmitted to a storage server; and
transmitting 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 configured to perform file management on the file to be transferred based on the file management method according to any one of claims 1 to 3.
5. A storage server, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
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-3.
6. 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 employs the storage server of claim 5.
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 CN113010474A (en) | 2021-06-22 |
CN113010474B true 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) |
Families Citing this family (2)
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 (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
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 |
CN110958302A (en) * | 2019-11-04 | 2020-04-03 | 广东小天才科技有限公司 | File uploading method, user terminal, uploading management server and system |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7263581B2 (en) * | 2005-03-31 | 2007-08-28 | Inventec Corporation | System and method for accessing and verifying the validity of data content stored in the cache memory on disk |
CN103812882B (en) * | 2012-11-06 | 2018-01-30 | 腾讯科技(深圳)有限公司 | A kind of method and system of file transmission |
US9390761B2 (en) * | 2014-11-24 | 2016-07-12 | Seagate Technology Llc | Data storage device with wear level identification |
US20200192899A1 (en) * | 2018-12-14 | 2020-06-18 | Commvault Systems, Inc. | Query caching during backup within an enterprise information management system |
-
2021
- 2021-03-16 CN CN202110280539.7A patent/CN113010474B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
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 |
CN110958302A (en) * | 2019-11-04 | 2020-04-03 | 广东小天才科技有限公司 | File uploading method, user terminal, uploading management server and system |
Non-Patent Citations (2)
Title |
---|
Reducing Fragmentation for In-line Deduplication Backup Storage via Exploiting Backup History and Cache Knowledge;Min Fu等;《IEEE Transactions on Parallel and Distributed Systems》;第27卷(第3期);第855-868页 * |
电信MMSC多媒体消息中心的建设实施设计;张洁;《中国优秀硕士学位论文全文数据库信息科技辑》(第4期);第I136-664页 * |
Also Published As
Publication number | Publication date |
---|---|
CN113010474A (en) | 2021-06-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9418132B2 (en) | System for an open architecture deployment with centralized synchronization | |
US7240104B2 (en) | Method and apparatus for managing resources stored on a communication device | |
CN113010474B (en) | File management method, instant messaging method and storage server | |
TWI528191B (en) | File Handling Method Based on Cloud Storage, System and Server Cluster System | |
KR100713627B1 (en) | Peer to peer software distribution system | |
US10579595B2 (en) | Method and device for calling a distributed file system | |
CN103024081B (en) | Be applicable to the terminal scheduling method of the point-to-point communication of effective guarantee communication system | |
CN107105050B (en) | Storage and downloading method and system for service objects | |
WO2007056954A1 (en) | A method for processing data synchronization and client terminal, server and data synchronization system thereof | |
CN101090376A (en) | Method for creating virtual label file, sharing and download file | |
CN110703980A (en) | File transmission method and device | |
CN111708743A (en) | File storage management method, file management client and file storage management system | |
CN112035422B (en) | Distributed real-time data synchronization method, node equipment and system based on IPFS | |
JP2013504806A (en) | Method, apparatus and system for file transfer based on file directory | |
CN101771548A (en) | File synchronizing method and system | |
CN102257792B (en) | Method for content delivery involving a policy database | |
CN101159676B (en) | Data transmission method and system | |
CN114553693A (en) | Gateway upgrading method and device | |
CN116405547A (en) | Message pushing method and device, processor, electronic equipment and storage medium | |
CN117331576A (en) | Application pre-download method, device, computer and storage medium | |
CN107483637B (en) | NFS-based client link management method and device | |
KR20120052444A (en) | File transmission management system and file transmission mangement method for supporting file transmission in mobile messaging service | |
CN113612811B (en) | Method, system, equipment and medium for client mounting in multiple channels | |
KR100657523B1 (en) | The method for allocating the resource of relay server in peer to peer network | |
CN113992732B (en) | Terminal management control method, device, server 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 |