CN110958293B - File transmission method, system, server and storage medium based on cloud server - Google Patents

File transmission method, system, server and storage medium based on cloud server Download PDF

Info

Publication number
CN110958293B
CN110958293B CN201910967577.2A CN201910967577A CN110958293B CN 110958293 B CN110958293 B CN 110958293B CN 201910967577 A CN201910967577 A CN 201910967577A CN 110958293 B CN110958293 B CN 110958293B
Authority
CN
China
Prior art keywords
cloud server
document
update
control system
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910967577.2A
Other languages
Chinese (zh)
Other versions
CN110958293A (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.)
Shaanxi Heyou Network Technology Co ltd
Shenzhen Lian Intellectual Property Service Center
Original Assignee
Shaanxi Heyou Network Technology 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 Shaanxi Heyou Network Technology Co ltd filed Critical Shaanxi Heyou Network Technology Co ltd
Priority to CN201910967577.2A priority Critical patent/CN110958293B/en
Publication of CN110958293A publication Critical patent/CN110958293A/en
Application granted granted Critical
Publication of CN110958293B publication Critical patent/CN110958293B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Abstract

The invention relates to the technical field of clouds, and discloses a file transmission method, a file transmission system, a file transmission server and a file storage medium based on cloud servers, wherein the file transmission method, the file transmission system, the file transmission server and the file storage medium are used for determining the priority of an update file through the update time of the update file and guaranteeing the consistency of update file versions in a plurality of cloud servers. The method comprises the following steps: the first cloud server uploads the initial update document to the version control system; the version control system stores the initial update document in each second cloud server in the version control system and records version information; the monitoring server traverses the version control system at regular time, and monitors version information of initial update documents on each second cloud server in the version control system; if the monitoring server monitors that the version information changes, the monitoring server determines a target update document with the version information changed and sends an update notification to the third cloud server; the version control system stores the target update document in a preset local path of the third cloud server.

Description

File transmission method, system, server and storage medium based on cloud server
Technical Field
The present invention relates to the field of cloud technologies, and in particular, to a method, a system, a server, and a storage medium for transmitting files based on a cloud server.
Background
With the development and popularization of the Internet, people are becoming more and more popular to process related files and transact business on line through different client tools, and work cooperatively under different office environments through different devices, so that the daily work and living efficiency of people is greatly improved, and the daily life of people is changed.
The existing synchronization scheme is only limited to the mapping, the documents are synchronized to the cloud, and when the data cannot be synchronized timely under the condition that a network cannot be connected, priority among the synchronized documents is disordered if a plurality of servers are synchronized at the same time, and the version of the updated file downloaded by the servers is inconsistent.
Disclosure of Invention
The invention provides a file transmission method, a system, a server and a storage medium based on a cloud server, which are used for acquiring an update document through a web service interface, uploading the update document to all cloud servers in a version control system, determining the priority of the update document through the update time of the update document, enabling a download server to download the update document with late update time, and ensuring the consistency of update document versions in a plurality of cloud servers.
A first aspect of an embodiment of the present invention provides a file transmission method based on a cloud server, including: the method comprises the steps that a first cloud server uploads an initial update document to a version control system through a preset world wide web service interface, the first cloud server is used for generating the initial update document, and the version control system comprises a plurality of second cloud servers; the version control system stores the initial update document in each second cloud server in the version control system, and records version information of the initial update document in each second cloud server; the monitoring server traverses the version control system at regular time, and monitors version information of a current updated document on each second cloud server in the version control system; if the monitoring server monitors that the version information of the current update document on any second cloud server changes, the monitoring server determines a target update document with the changed version information and sends an update notification to a third cloud server so that the third cloud server downloads the target update document according to the update notification; and the version control system acquires a downloading request sent by the third cloud server, and stores the target updating document in a preset local storage path of the third cloud server.
Optionally, in a first implementation manner of the first aspect of the embodiment of the present invention, the first cloud server uploads, through a preset web service interface, an initial update document to a version control system, where the first cloud server is configured to generate the initial update document, and the version control system includes a plurality of second cloud servers, including: the first cloud server generates an initial update document based on preset configuration information; the first cloud server sends the initial update document to each second cloud server in the version control system through the web service interface.
Optionally, in a second implementation manner of the first aspect of the embodiment of the present invention, the sending, by the first cloud server, the initial update document to each second cloud server in the version control system through the web service interface includes: the first cloud server sends an update request to the version control system; the version control system receives an update request of a first cloud server and displays a parameter submitting page to the first cloud server, wherein the parameter submitting page is used for acquiring an incoming parameter submitted by the first cloud server; the version control system acquires the input parameters submitted by the first cloud server; the version control system invokes a preset web service interface based on the incoming parameters; the version control system connects the first cloud server with each second cloud server in the version control system through the web service interface, and prompts the first cloud server to submit an initial update document; the first cloud server sends the initial update document to each second cloud server in the version control system.
Optionally, in a third implementation manner of the first aspect of the embodiment of the present invention, the monitoring server traverses the version control system at regular time, monitors version information of a current update document on each second cloud server in the version control system, including: the monitoring server judges whether a document identifier exists in the version information of the current updated document, and the document identifier is used for recording the update times of the current updated document; when the current updated document does not have the document identification, the monitoring server acquires a preset storage path, and stores the current updated document into all second cloud servers of the version control system based on the preset storage path; when the current update document has the document identification, the monitoring server retrieves all versions of the current update document according to the document identification, screens out a first update document and a second update document, the creation time of the first update document is earlier than that of the second update document, returns the first update document to the first cloud server, covers the second update document to each second cloud server, and prompts that the versions are updated.
Optionally, in a fourth implementation manner of the first aspect of the present invention, when the current update document has the document identifier, the monitoring server retrieves all versions of the current update document according to the document identifier, filters a first update document and a second update document, where a creation time of the first update document is earlier than that of the second update document, returns the first update document to the first cloud server, covers the second update document to each second cloud server, and prompts that the versions are updated, including: when the current updated document has the document identification, the monitoring server invokes all versions of the current updated document based on the document identification, and obtains the creation time of all versions; the monitoring server invokes the creation time of the last version of the updated document and compares the creation time of the last version with the creation time of all versions; the monitoring server extracts a first updated document with the same creation time as the creation time of the previous version or a second updated document with the creation time after the creation time of the previous version from all versions; the monitoring server compares the difference between the extracted second updated document and the first updated document; when the extracted second updated document has content difference with the first updated document, the monitoring server returns the first updated document to the first cloud server and prompts that the version is updated.
Optionally, in a fifth implementation manner of the first aspect of the embodiment of the present invention, if the monitoring server monitors that version information of a current update document on any second cloud server changes, the monitoring server determines a target update document with the changed version information, and sends an update notification to a third cloud server, so that the third cloud server downloads the target update document according to the update notification, including: if the monitoring server monitors that the version information of the current update document on any second cloud server changes, the monitoring server determines a second cloud server list to which the second cloud server belongs according to the second update document; the monitoring server determines preset incoming parameters and version information of the second updated document according to the second cloud server list, and simultaneously invokes a third cloud server list preset in the version control system; and the monitoring server generates an update notification based on the input parameters and version information of the second update document, takes the second update document as a target update document, and sends the update notification to a third cloud server in the third cloud server list so that the third cloud server downloads the target update document according to the update notification.
Optionally, in a sixth implementation manner of the first aspect of the embodiment of the present invention, the obtaining, by the version control system, a download request sent by the third cloud server, and saving, by the version control system, the target update document in a preset local storage path of the third cloud server includes: the version control system receives a downloading request of a third cloud server, displays a downloading page based on the downloading request, and prompts the third cloud server to submit an incoming parameter; the version control system acquires the incoming parameters; the version control system invokes a preset web service interface based on the input parameters, queries a corresponding second cloud server through the web service interface, copies a target update document in the second cloud server, and prompts a third cloud server to submit a preset local storage path; the version control system acquires a submitted preset local storage path, and based on the preset local storage path, the copied target update document is stored in a folder under the preset local storage path.
A second aspect of an embodiment of the present invention provides a file transfer system based on a cloud server, including: the system comprises a first cloud server, a second cloud server, a third cloud server and a monitoring server; the first cloud server is used for generating an initial update document, the second cloud server is used for storing a current update document, the third cloud server is used for downloading a target update document, and the initial update document, the current update document and the target update document are update documents in different states; the monitoring server is used for monitoring the current updated document in the version control system, and the version control system comprises a plurality of second cloud servers.
A third aspect of the embodiment of the present invention provides a server, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements the cloud server-based file transfer method according to any one of the foregoing embodiments when executing the computer program.
A fourth aspect of the embodiments of the present invention provides a computer readable storage medium, including instructions, which when executed on a computer, cause the computer to perform the steps of the cloud server-based file transfer method according to any one of the foregoing embodiments.
In the technical scheme provided by the embodiment of the invention, a first cloud server uploads an initial update document to a version control system through a preset world wide web service interface, the first cloud server is used for generating the initial update document, and the version control system comprises a plurality of second cloud servers; the version control system stores the initial update document in each second cloud server in the version control system, and records version information of the initial update document in each second cloud server; the monitoring server traverses the version control system at regular time, and monitors version information of the current updated document on each second cloud server in the version control system; if the monitoring server monitors that the version information of the current update document on any second cloud server changes, the monitoring server determines a target update document with the changed version information and sends an update notification to a third cloud server so that the third cloud server downloads the target update document according to the update notification; and the version control system acquires a downloading request sent by the third cloud server, and stores the target updating document in a preset local storage path of the third cloud server. According to the embodiment of the invention, the update document is acquired through setting the web service interface, and is uploaded to all cloud servers in the version control system, and the priority of the update document is determined through the update time of the update document, so that the download server downloads the update document with late update time, and the consistency of the versions of the update document in the cloud servers is ensured.
Drawings
Fig. 1 is a schematic diagram of an embodiment of a file transmission method based on a cloud server according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an embodiment of a file transfer system based on a cloud server according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an embodiment of a server according to an embodiment of the present invention.
Detailed Description
The invention provides a file transmission method, a system, a server and a storage medium based on a cloud server, which are used for acquiring an update document through a web service interface, uploading the update document to all cloud servers in a version control system, determining the priority of the update document through the update time of the update document, enabling a download server to download the update document with late update time, and ensuring the consistency of update document versions in a plurality of cloud servers.
In order to enable those skilled in the art to better understand the present invention, embodiments of the present invention will be described below with reference to the accompanying drawings.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be implemented in other sequences than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus.
Referring to fig. 1, a flowchart of a file transmission method based on a cloud server according to an embodiment of the present invention specifically includes:
101. the first cloud server uploads the initial update document to the version control system through a preset web service interface, the first cloud server is used for generating the initial update document, and the version control system comprises a plurality of second cloud servers.
In this embodiment, there are a plurality of cloud servers, which are a first cloud server, a second cloud server, and a third cloud server, respectively, where the first cloud server is configured to generate an initial update document; the second cloud server is used for storing the current updated document and is distributed at different positions in the version control system, namely the version control system comprises a plurality of second cloud servers; and the third cloud server is used for downloading a target update document for a user, wherein the target update document is the update document with the latest update time in all update file versions. The main purpose of the step is to synchronize the update document in the second cloud server by using the version control system, so as to ensure that the document downloaded by the third cloud server is a target version, and the method specifically comprises the following steps: the first cloud server generates an initial update document based on preset configuration information; the first cloud server sends an initial update document to each second cloud server in the version control system through the web service interface.
Optionally, the first cloud server sends the initial update document to each second cloud server in the version control system through the web service interface, specifically including: the first cloud server sends an update request to the version control system; the version control system receives an update request of the first cloud server and displays a parameter submitting page to the first cloud server, wherein the parameter submitting page is used for acquiring an incoming parameter submitted by the first cloud server; the version control system acquires the input parameters submitted by the first cloud server; the version control system invokes a preset web service interface based on the incoming parameters; the version control system connects the first cloud server with each second cloud server in the version control system through a web service interface and prompts the first cloud server to submit an initial update document; the first cloud server sends the initial update document to each second cloud server in the version control system.
It can be understood that the incoming parameters include a first cloud server address, an account number, a password and a document path, the first cloud server is connected with the version control system through a preset web service interface, and any web service interface corresponds to a unique incoming parameter.
For example: the [ { "192.168.1.10", "root", "123", "/usr/tmpdir/1.Txt" }, { "192.168.1.11", "root", "345", "/root/tmpdir/2.Txt" } ] respectively represent the incoming parameters of the server A, B, and the address, account number, password, and document path of the server A, B are recorded in the incoming parameters.
The web service interface adopted in the embodiment has the functions of downloading and uploading documents, and supports the functions of downloading and uploading a plurality of documents in batches at the same time. When the input parameters are in the form of list, the method is in batch uploading or batch downloading, and can meet the requirements of uploading or downloading update documents of cloud servers corresponding to the web service interfaces, wherein the update cloud servers are connected with a version control system to upload the update documents, and the synchronous cloud servers are connected with the version control system to download the update documents.
According to the embodiment of the invention, the initial update document generated by the first cloud server is submitted to the version control system in time, and the initial update document is stored in the preset second cloud server, so that the synchronization of data is completed.
102. The version control system stores the initial update document in each second cloud server in the version control system, and records version information of the initial update document in each second cloud server.
It will be appreciated that whether the updated document can be successfully uploaded depends on whether there are other servers that have updated the document after the creation time of the previous version, and thus the distinction and processing is performed by comparing the creation time and the difference comparison, as will be described in the following two cases: for example: (1) When a plurality of servers modify the same document, the document is updated to a storage server, and only the updated document based on the latest version can be successfully uploaded to the storage server appointed in the version control system. (2) Server A, B modifies the same historical version, server a downloads the latest historical version from the version control system, server B downloads the same version from the version control system, server a successfully uploads the update document to the version control system and time is before server B, server B also needs to upload the update document, and the upload will fail. The reason is that when server B uploads an update document, the latest historical version of the version control system is the update document of server a, i.e., server B is not based on the modification made by the latest version, so the upload fails. At this point, server B must re-download the latest version for modification.
The version control system adopted in the embodiment is an open source version control system and is a centralized version management server for document storage. All documents in the version control system are stored in a plurality of preset second cloud servers, and the plurality of second cloud servers used for storing the documents in the version control system enable the version control system to be systematic, the document versions can be balanced integrally, and the problem of reading and writing shared files can be effectively solved. The version control system is adopted, so that quick storage can be realized, offline storage is supported, all versions of a document can be backed up, but the version control system does not have a rollback function, all versions of the document are directly stored without modification, and the previous versions are stored and have traceable histories.
103. The monitoring server traverses the version control system at regular time, and monitors version information of the current updated document on each second cloud server in the version control system.
The monitoring server traverses the version control system at regular time so as to acquire the detailed information of the current updated document in the version control system. It should be noted that, there are two list modes for obtaining the second cloud server with version information change: 1. the monitoring server traverses all documents in the version control system at regular time to acquire the creation time of all the documents. The monitoring server can be selected as a monitoring platform jenkins, a monitoring task is configured on jenkins, the monitoring task is to monitor whether update files in the version control system are updated or not, and if the update files exist, the update files are automatically detected and a list of a second cloud server storing the update files is read. The timing traversal time is preset to N, for example, optionally once for 5 minutes. 2. The monitoring server compares the creation time of all the documents with the time of last traversing all the documents, records a list of a second cloud server where the documents are located when the creation time is after the time of last traversing all the documents, and invokes the version information of the documents. When the situation that the creation time is after the time of last traversing all the documents is acquired, the documents are described as updated documents, and in order to ensure confidentiality of the updated documents, a list of a second cloud server to which the documents belong is recorded, so that the incoming parameters of a web service interface required for downloading the updated documents are obtained.
It is to be understood that the version information in this embodiment may include, in addition to the document identification, the creation timing, version number, and document name of the updated document. The generated version information is used for recording the creation time of the updated document and the information of the updated document on one hand, distinguishing the uniqueness of the version on the other hand and judging whether the version is the first version or not. If the version information has the document identification, the updated document is described as a non-first version updated according to the last version of the updated document in the version control system, and if the version information does not have the document identification, the updated document is described as a first version in the version control system, and the version number rules of the version information created by the two versions are different. The specific rules are as follows: (1) The first version generates a version number according to a version recording rule of the preset first version, and the version number is numbered from an initial mark, specifically, the sequence of Arabic numerals combined with English letters is selected; (2) The non-first version increases according to a preset version recording rule to generate a version number, and the version number is increased on the basis of the version number of the previous version.
Optionally, step 103 specifically includes the following steps: (1) The monitoring server judges whether a document identifier exists in the version information of the current updated document, and the document identifier is used for recording the update times of the current updated document; (2) When the current updated document does not have the document identification, the monitoring server acquires a preset storage path, and stores the current updated document into all second cloud servers of the version control system based on the preset storage path; (3) When the current update document has the document identification, the monitoring server retrieves all versions of the current update document according to the document identification, screens out a first update document and a second update document, the creation time of the first update document is earlier than that of the second update document, returns the first update document to the first cloud server, covers the second update document to each second cloud server, and prompts that the versions are updated.
Optionally, step (3) in step 103 specifically includes: when the current updated document has a document identifier, the monitoring server invokes all versions of the current updated document based on the document identifier, and obtains creation time of all versions; the monitoring server invokes the creation time of the last version of the updated document, and compares the creation time of the last version with the creation time of all versions; the monitoring server extracts a first updated document with the same creation time as the creation time of the previous version or a second updated document with the creation time after the creation time of the previous version from all versions; the monitoring server compares the difference between the extracted second updated document and the first updated document; when the extracted second updated document has content difference with the first updated document, the monitoring server returns the first updated document to the first cloud server and prompts that the version is updated.
According to the embodiment of the invention, the monitoring process is refined, the mode of acquiring the latest updated document under different scenes is clarified, the operability is improved, and the acquisition efficiency of the version information is improved.
104. If the monitoring server monitors that the version information of the current update document on any second cloud server changes, the monitoring server determines a target update document with the changed version information and sends an update notification to a third cloud server, so that the third cloud server downloads the target update document according to the update notification.
The third cloud server list is preset in the version control system and serves as a reference basis for timely notifying a related server (third cloud server), when the third cloud server needing to acquire notification is added or deleted, the third cloud server list must be modified, otherwise, the notification cannot be issued, and the occurrence of notification omission is effectively avoided.
It can be understood that the notification mode in this step may be selected to send an update notification by mail, where the update notification includes an incoming parameter of a web service interface for downloading an update document and version information of the update document, and the incoming parameter of the web service interface is functionally the same as the incoming parameter in the foregoing step. In the process of downloading the updated document, the third cloud server can utilize the input parameters to call a web service interface, and access a version control system through the web service interface to acquire the authority of downloading the updated document; and the user of the third cloud server can judge whether the update document needs to be downloaded through the third cloud server according to the version information.
Optionally, step 104 specifically includes:
if the monitoring server monitors that the version information of the current update document on any second cloud server changes, the monitoring server determines a second cloud server list to which the second cloud server belongs according to the second update document; the monitoring server determines preset incoming parameters and version information of a second updated document according to a second cloud server list, and simultaneously invokes a third cloud server list preset in a version control system; the monitoring server generates an update notification based on the incoming parameters and version information of the second update document, takes the second update document as a target update document, and sends the update notification to a third cloud server in the third cloud server list so that the third cloud server downloads the target update document according to the update notification.
According to the embodiment of the invention, the process of determining the target update document and acquiring the third cloud server list to be notified is refined, the determination scheme of the target update document is clarified, the operability is improved, and the time for generating the third cloud server list is reduced.
105. And the version control system acquires a downloading request sent by the third cloud server, and stores the target updating document in a preset local storage path of the third cloud server.
Specifically, the version control system receives a downloading request of the third cloud server, displays a downloading page based on the downloading request, and prompts the third cloud server to submit an incoming parameter; the version control system acquires the input parameters; the version control system invokes a preset web service interface based on the input parameters, queries a corresponding second cloud server through the web service interface, copies a target update document in the second cloud server, and prompts a third cloud server to submit a preset local storage path; the version control system acquires a submitted preset local storage path, and based on the preset local storage path, the copied target update document is stored in a folder under the preset local storage path.
It should be noted that, the download page in this embodiment is a preset download page, and is used for inputting the parameters of calling the web service interface, i.e. the server address, account number, password, and path, by the corresponding personnel. The download page comprises an incoming parameter submission field and a confirmation option, and can be downloaded by one key; if the input parameters are in list form, multiple update documents in the version control system can be downloaded by one key.
It will be appreciated that the web service interface corresponds to a unique second cloud server, and that when the update document in the second cloud server is invoked, a connection must be made through the corresponding web service interface.
According to the embodiment of the invention, the update document is acquired through setting the web service interface, and is uploaded to all cloud servers in the version control system, and the priority of the update document is determined through the update time of the update document, so that the download server downloads the update document with late update time, and the consistency of the versions of the update document in the cloud servers is ensured.
The above describes a file transmission method based on a cloud server in the embodiment of the present invention, and the following describes a file transmission system based on a cloud server in the embodiment of the present invention, please refer to fig. 2, and one embodiment of a file transmission system 200 based on a cloud server in the embodiment of the present invention includes:
a first cloud server 201, a second cloud server 202, a third cloud server 203, and a monitoring server 204;
the first cloud server 201 is configured to generate an initial update document, the second cloud server 202 is configured to store a current update document, and the third cloud server 203 is configured to download a target update document, where the initial update document, the current update document, and the target update document are update documents in different states;
The monitoring server 204 is configured to monitor a version control system 205, where the version control system 205 includes a plurality of second cloud servers 202.
According to the embodiment of the invention, the update document is acquired through setting the web service interface, and is uploaded to all cloud servers in the version control system, and the priority of the update document is determined through the update time of the update document, so that the download server downloads the update document with late update time, and the consistency of the versions of the update document in the cloud servers is ensured.
The server in the embodiment of the present invention is described in detail from the viewpoint of hardware processing.
Fig. 3 is a schematic structural diagram of a server provided in an embodiment of the present invention, where the server is any cloud server in this embodiment, and the server 300 may have a relatively large difference due to different configurations or performances, and may include one or more processors (central processing units, CPU) 301 (e.g., one or more processors) and a memory 309, and one or more storage media 308 (e.g., one or more mass storage devices) storing application 307 or data 306. Wherein the memory 309 and storage medium 308 may be transitory or persistent storage. The program stored on the storage medium 308 may include one or more modules (not shown), each of which may include a series of instruction operations on a server. Still further, the processor 301 may be configured to communicate with a storage medium 308 and execute a series of instruction operations in the storage medium 308 on the server 300.
The server 300 may also include one or more power supplies 302, one or more wired or wireless network interfaces 303, one or more input/output interfaces 304, and/or one or more operating systems 305, such as Windows Serve, mac OS X, unix, linux, freeBSD, and the like. Those skilled in the art will appreciate that the server architecture shown in fig. 3 is not limiting of the server and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The following describes the respective constituent elements of the server in detail with reference to fig. 3:
the processor 301 is a control center of the server, and may perform processing according to a set file transfer method based on the cloud server. The processor 301 connects the various parts of the entire server using various interfaces and lines, performs various functions of the server by running or executing software programs and/or modules stored in the memory 309 and invoking data stored in the memory 309, uploads the update document to the version control system, ensures consistency of the version of the update document in the plurality of cloud servers, and realizes sharing, synchronous update and update notification of the distributed document. The storage medium 308 and the memory 309 are both carriers for storing data, and in the embodiment of the present invention, the storage medium 308 may be an internal memory with a small storage capacity but a high speed, and the memory 309 may be an external memory with a large storage capacity but a low storage speed.
The memory 309 may be used to store software programs and modules, and the processor 301 executes the software programs and modules stored in the memory 309, thereby performing various functional applications and data processing of the server 300. The memory 309 may mainly include a storage program area and a storage data area, where the storage program area may store an operating system, an application program required by at least one function (for example, a version control system obtains a download request sent by the third cloud server, and stores the target update document in a preset local storage path of the third cloud server); the storage data area may store data created from the use of the server (such as an initial update document), and the like. In addition, memory 309 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. The cloud server-based file transfer method program and the received data stream provided in the embodiment of the present invention are stored in the memory, and when necessary for use, the processor 301 is called from the memory 309.
When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present invention, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, twisted pair), or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer readable storage medium may be any available medium that can be stored by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., an optical disk), or a semiconductor medium (e.g., a Solid State Disk (SSD)), or the like.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in the present invention, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiment of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. The file transmission method based on the cloud server is characterized by comprising the following steps of:
the method comprises the steps that a first cloud server uploads an initial update document to a version control system through a preset world wide web service interface, the first cloud server is used for generating the initial update document, and the version control system comprises a plurality of second cloud servers;
the version control system stores the initial update document in each second cloud server in the version control system, and records version information of the initial update document in each second cloud server;
the monitoring server traverses the version control system at regular time, and monitors version information of a current updated document on each second cloud server in the version control system;
If the monitoring server monitors that the version information of the current update document on any second cloud server changes, the monitoring server determines a target update document with the changed version information and sends an update notification to a third cloud server so that the third cloud server downloads the target update document according to the update notification;
and the version control system acquires a downloading request sent by the third cloud server, and stores the target updating document in a preset local storage path of the third cloud server.
2. The cloud server-based file transfer method of claim 1, wherein the first cloud server uploads the initial update document to a version control system through a preset web service interface, the first cloud server is configured to generate the initial update document, and the version control system includes a plurality of second cloud servers, including:
the first cloud server generates an initial update document based on preset configuration information;
the first cloud server sends the initial update document to each second cloud server in the version control system through the web service interface.
3. The cloud server-based file transfer method of claim 2, wherein the first cloud server sending the initial update document to each second cloud server in the version control system through the web service interface comprises:
the first cloud server sends an update request to the version control system;
the version control system receives an update request of a first cloud server and displays a parameter submitting page to the first cloud server, wherein the parameter submitting page is used for acquiring an incoming parameter submitted by the first cloud server;
the version control system acquires the input parameters submitted by the first cloud server;
the version control system invokes a preset web service interface based on the incoming parameters;
the version control system connects the first cloud server with each second cloud server in the version control system through the web service interface, and prompts the first cloud server to submit an initial update document;
the first cloud server sends the initial update document to each second cloud server in the version control system.
4. The cloud server-based file transfer method of claim 1, wherein the monitoring server traverses the version control system at regular time, monitors version information of a current update document on each second cloud server in the version control system, and comprises:
The monitoring server judges whether a document identifier exists in the version information of the current updated document, and the document identifier is used for recording the update times of the current updated document;
when the current updated document does not have the document identification, the monitoring server acquires a preset storage path, and stores the current updated document into all second cloud servers of the version control system based on the preset storage path;
when the current update document has the document identification, the monitoring server retrieves all versions of the current update document according to the document identification, screens out a first update document and a second update document, the creation time of the first update document is earlier than that of the second update document, returns the first update document to the first cloud server, covers the second update document to each second cloud server, and prompts that the versions are updated.
5. The cloud server-based file transfer method of claim 4, wherein when the current update document has the document identifier, the monitoring server retrieves all versions of the current update document according to the document identifier, screens out a first update document and a second update document, the creation time of the first update document is earlier than that of the second update document, returns the first update document to the first cloud server, covers the second update document to each second cloud server, and prompts that the versions have been updated, including:
When the current updated document has the document identification, the monitoring server invokes all versions of the current updated document based on the document identification, and obtains the creation time of all versions;
the monitoring server invokes the creation time of the last version of the updated document and compares the creation time of the last version with the creation time of all versions;
the monitoring server extracts a first updated document with the same creation time as the creation time of the previous version or a second updated document with the creation time after the creation time of the previous version from all versions;
the monitoring server compares the difference between the extracted second updated document and the first updated document;
when the extracted second updated document has content difference with the first updated document, the monitoring server returns the first updated document to the first cloud server and prompts that the version is updated.
6. The cloud server-based file transfer method according to claim 5, wherein if the monitoring server monitors that version information of a current update document on any one of the second cloud servers changes, the monitoring server determines a target update document whose version information changes, and sends an update notification to a third cloud server, so that the third cloud server downloads the target update document according to the update notification, including:
If the monitoring server monitors that the version information of the current update document on any second cloud server changes, the monitoring server determines a second cloud server list to which the second cloud server belongs according to the second update document;
the monitoring server determines preset incoming parameters and version information of the second updated document according to the second cloud server list, and simultaneously invokes a third cloud server list preset in the version control system;
and the monitoring server generates an update notification based on the input parameters and version information of the second update document, takes the second update document as a target update document, and sends the update notification to a third cloud server in the third cloud server list so that the third cloud server downloads the target update document according to the update notification.
7. The cloud server-based file transfer method according to any one of claims 1 to 6, wherein the version control system obtaining a download request sent by the third cloud server, and saving the target update document in a preset local storage path of the third cloud server, includes:
the version control system receives a downloading request of a third cloud server, displays a downloading page based on the downloading request, and prompts the third cloud server to submit an incoming parameter;
The version control system acquires the incoming parameters;
the version control system invokes a preset web service interface based on the input parameters, queries a corresponding second cloud server through the web service interface, copies a target update document in the second cloud server, and prompts a third cloud server to submit a preset local storage path;
the version control system acquires a submitted preset local storage path, and based on the preset local storage path, the copied target update document is stored in a folder under the preset local storage path.
8. A cloud server-based file transfer system, comprising:
a first cloud server, a version control system, a third cloud server and a monitoring server, the version control system comprising a plurality of second cloud servers, the cloud server-based file transfer system performing the cloud server-based file transfer method according to any of claims 1-7.
9. A server comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the cloud server based file transfer method according to any of claims 1-7 when executing the computer program.
10. A computer readable storage medium comprising instructions that when run on a computer cause the computer to perform the cloud server-based file transfer method of any of claims 1-7.
CN201910967577.2A 2019-10-12 2019-10-12 File transmission method, system, server and storage medium based on cloud server Active CN110958293B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910967577.2A CN110958293B (en) 2019-10-12 2019-10-12 File transmission method, system, server and storage medium based on cloud server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910967577.2A CN110958293B (en) 2019-10-12 2019-10-12 File transmission method, system, server and storage medium based on cloud server

Publications (2)

Publication Number Publication Date
CN110958293A CN110958293A (en) 2020-04-03
CN110958293B true CN110958293B (en) 2023-10-24

Family

ID=69975612

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910967577.2A Active CN110958293B (en) 2019-10-12 2019-10-12 File transmission method, system, server and storage medium based on cloud server

Country Status (1)

Country Link
CN (1) CN110958293B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112257391A (en) * 2020-10-26 2021-01-22 苏宁云计算有限公司 Online document submission method and device, computer equipment and storage medium
CN113138769A (en) * 2021-05-17 2021-07-20 上海交通大学 Biological analysis code storage method and device based on cloud storage

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09190393A (en) * 1996-01-10 1997-07-22 Canon Inc Information processing method, information processor and information processing system
CN104516744A (en) * 2013-09-27 2015-04-15 无锡华润微电子有限公司 Software updating method and system
CN108182075A (en) * 2017-12-29 2018-06-19 成都三零凯天通信实业有限公司 A kind of program by the automatic escalation target software of socket communication modes
CN108536460A (en) * 2018-04-17 2018-09-14 南京高盛信息科技有限公司 A kind of software automatic updating system of lightweight
CN109189855A (en) * 2018-08-14 2019-01-11 平安普惠企业管理有限公司 Method of data synchronization and terminal device based on distribution memory technology
CN109828773A (en) * 2018-12-11 2019-05-31 湖南明康中锦医疗科技发展有限公司 A kind of Breathing Suppotion device systems remote upgrade terminal and its implementation

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9639448B2 (en) * 2013-06-27 2017-05-02 Sap Se Multi-version systems for zero downtime upgrades

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09190393A (en) * 1996-01-10 1997-07-22 Canon Inc Information processing method, information processor and information processing system
CN104516744A (en) * 2013-09-27 2015-04-15 无锡华润微电子有限公司 Software updating method and system
CN108182075A (en) * 2017-12-29 2018-06-19 成都三零凯天通信实业有限公司 A kind of program by the automatic escalation target software of socket communication modes
CN108536460A (en) * 2018-04-17 2018-09-14 南京高盛信息科技有限公司 A kind of software automatic updating system of lightweight
CN109189855A (en) * 2018-08-14 2019-01-11 平安普惠企业管理有限公司 Method of data synchronization and terminal device based on distribution memory technology
CN109828773A (en) * 2018-12-11 2019-05-31 湖南明康中锦医疗科技发展有限公司 A kind of Breathing Suppotion device systems remote upgrade terminal and its implementation

Also Published As

Publication number Publication date
CN110958293A (en) 2020-04-03

Similar Documents

Publication Publication Date Title
US20180322017A1 (en) Restoring partitioned database tables from backup
EP3223165B1 (en) File processing method, system and server-clustered system for cloud storage
JP5727020B2 (en) Cloud computing system and data synchronization method thereof
US9992274B2 (en) Parallel I/O write processing for use in clustered file systems having cache storage
US11943291B2 (en) Hosted file sync with stateless sync nodes
US20160253339A1 (en) Data migration systems and methods including archive migration
US11553014B2 (en) Downloading of server-based content through peer-to-peer networks
WO2016148670A1 (en) Deduplication and garbage collection across logical databases
US9747291B1 (en) Non-disruptive upgrade configuration translator
US11442897B2 (en) Optimizing content storage through stubbing
US8660996B2 (en) Monitoring files in cloud-based networks
US10893102B2 (en) Systems and methods for restoring an interface to a global file system
CN110958293B (en) File transmission method, system, server and storage medium based on cloud server
US11106635B2 (en) Computer system, file storage controller, and data sharing method
US20100293148A1 (en) Network attached storage backup
US20240015135A1 (en) Domain management and synchronization system
US11507392B2 (en) Automatically configuring computing clusters
KR101436406B1 (en) Client, server, system and method for updating data based on peer to peer
US20210344771A1 (en) System and Method for Cloud Computing
CN117009310B (en) File synchronization method and device, distributed global content library system and electronic equipment
US20220391409A1 (en) Hybrid cloud asynchronous data synchronization

Legal Events

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

Effective date of registration: 20230710

Address after: 518000 Room 202, block B, aerospace micromotor building, No.7, Langshan No.2 Road, Xili street, Nanshan District, Shenzhen City, Guangdong Province

Applicant after: Shenzhen LIAN intellectual property service center

Address before: Room 201, building a, No.1 Qianwan 1st Road, Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong Province (settled in Shenzhen Qianhai business secretary Co., Ltd.)

Applicant before: PING AN PUHUI ENTERPRISE MANAGEMENT Co.,Ltd.

Effective date of registration: 20230710

Address after: Room 5-01, 5th Floor, Building 6, Headquarters Economic Park, No. 1309 Shangye Road, Fengxi New City, Xixian New District, Xi'an City, Shaanxi Province, 710100

Applicant after: SHAANXI HEYOU NETWORK TECHNOLOGY CO.,LTD.

Address before: 518000 Room 202, block B, aerospace micromotor building, No.7, Langshan No.2 Road, Xili street, Nanshan District, Shenzhen City, Guangdong Province

Applicant before: Shenzhen LIAN intellectual property service center

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