Summary of the invention
The object of the present invention is to provide in the storage of a kind of cloud synchronous documents in each high in the clouds instant synchronous method, make the user remove the step of manual download from each terminal, after a terminal was upgraded shared file, other each terminal can be upgraded shared file immediately synchronously.
Technical scheme of the present invention is as follows:
The instant method for synchronous of cloud storage is used during with cloud storage server network connection in a plurality of terminals with high in the clouds api interface; The user file tabulation of described high in the clouds api interface comprises at least one synchronization folder, described cloud storage server comprises cloud storage managing server, cloud storage read-write server and cloud memory space, and described cloud storage managing server comprises with the corresponding user file tabulation of terminal use and synchronization folder; May further comprise the steps:
Steps A, user and user's terminal is finished authentication with the cloud storage server;
The synchronization folder of the high in the clouds api interface of step B, any one terminal is received operational order, and described operational order is sent to described cloud storage server;
The cloud storage managing server of step C, described cloud storage server and cloud storage read-write server are carried out described operational order; Described cloud storage managing server upgrades the synchronization folder of itself according to this operational order afterwards, and upgrades the synchronization folder of the user file tabulation of transmit operation command terminal;
Step D, described cloud storage server read the tabulation of the user file on the other-end beyond the transmit operation instruction, the synchronization folder of itself is compared with the synchronization folder of other-end respectively, upgrade respectively the synchronization folder of the user file tabulation on the other-end.
Described instant method for synchronous, wherein, the operational order among the described step B is upper teletype command, described method for synchronous is further comprising the steps of:
Step e, described cloud storage server are to sending the in addition download unit sending controling instruction of other-end of upper teletype command; The upper download unit of other-end beyond the teletype command in the transmission sends respectively the down operation instruction of new file in the synchronization folder to described cloud storage server; Described cloud storage server is carried out this down operation instruction, and the new file that will download sends to respectively teletype command other-end in addition.
Described instant method for synchronous, wherein, described method for synchronous is further comprising the steps of:
Download unit on the other-end in step F, the transmission beyond the teletype command is after download is complete, and described file download unit is to file broadcast unit sending controling instruction; Described file broadcast unit starts, and plays the new file of downloading.
Described instant method for synchronous, wherein, the user in the described steps A is same user, described terminal is a plurality of terminals of same user.
Described instant method for synchronous, wherein, described operational order comprises teletype command, download instruction, delete instruction, duplicate instructions, browsing instructions.
Compared with prior art, the invention provides the instant method for synchronous of cloud storage, user file tabulation with synchronization folder all is set on cloud storage server and terminal, the synchronization folder of any one terminal receives control command, execute this control command at the cloud storage server and upgrade later on the synchronous documents of self, the cloud storage server reads the tabulation of the user file on other each terminals beyond the sending controling instruction again, upgrade the in addition synchronous documents of other various ends of sending controling instruction, realize to use synchronization folder synchronously instant of each terminal of cloud storage, saved the operating time of downloading and playing.
Embodiment
Below in conjunction with accompanying drawing, preferred embodiment of the present invention is described in further detail.
The instant synchro system of cloud storage provided by the invention, as shown in Figure 1, comprise the cloud storage server, a plurality of terminals with high in the clouds api interface, described a plurality of terminal is with cloud storage server network connection, and the tabulation of the user file of described high in the clouds api interface comprises at least one synchronization folder; Described cloud storage server comprises cloud storage managing server, cloud storage read-write server and cloud memory space.
Described cloud memory space storage user's file; Described cloud storage managing server as shown in Figure 2, comprises the file address tabulation of the address of the file of storing in the cloud memory space, comprises that also the registered user tabulates, user terminal is tabulated and the user file tabulation.The described cloud storage server of described registered user's list records user's information; The information of the terminal of same subscriber is registered and logged in to described user terminal list records; Described this user of user file list records is in the tabulation of the file of described cloud memory space storage, and comprises with the corresponding synchronization folder of synchronization folder on the terminal.Described cloud storage read-write server is made read-write and deletion action according to instruction and the file address of cloud storage managing server to the file in the described cloud memory space.
Described high in the clouds api interface is a kind of api interface of user side, is used for doing data interaction with the cloud storage server, as shown in Figure 3, comprises the user file tabulation, and described terminal also comprises file download unit and file broadcast unit, as shown in Figure 4.
Terminal with high in the clouds api interface can be the various digital equipments such as mobile phone, computer, DPF, camera, and described terminal with high in the clouds api interface can be a plurality of terminals of a plurality of users, can also be a plurality of terminals of a user.The present invention is take a plurality of terminals of a user as example, instant method for synchronous to file elaborates, as shown in Figure 1, a plurality of terminals of a user can be first terminal, the second terminal and third terminal, and which kind of digital equipment is these terminals be specially does not limit.
The instant method for synchronous of cloud storage of the present invention may further comprise the steps, as shown in Figure 6:
Step 1, be that terminal is with the verification process of cloud storage server, concrete: the high in the clouds api interface of described first terminal, the second terminal and third terminal logs in described cloud storage server with same subscriber, and this user's logon information sent to described cloud storage server, described cloud storage server receives user's logon information, and with user's logon information with registered user's comparison of tabulating, judge whether validated user of described user, if, enter step 2, if not, end-of-job.
Step 2, with the end message in user's logon information with the end message of putting down in writing under this user name in the user terminal tabulation relatively, whether in the user terminal tabulation, judge by comparison terminal information and to log in whether legal terminal of terminal, if enter step 3, if not, end-of-job.
The synchronization folder of the high in the clouds api interface of step 3, described any one terminal is received teletype command, can be that the synchronization folder in the high in the clouds api interface of first terminal is received teletype command here, and described upper teletype command is sent to described cloud storage server.
Step 4, described cloud storage tube server are according to upper teletype command, memory address for corresponding upload file distribution cloud memory space, memory address is documented in the file address tabulation, the fileinfo of upload file is updated to the synchronization folder in the user file tabulation of cloud storage managing server, and the synchronization folder of the fileinfo of this upload file being added to the high in the clouds api interface of first terminal.
Step 5, described cloud storage managing server comprise the address of terminal according to the information of terminal in the user terminal tabulation, read the user file tabulation of terminal beyond the upload file terminal.Present embodiment comprise on the second terminal and third terminal on the user file tabulation, preferably can only read the synchronization folder in the user file tabulation on the second terminal and the third terminal, the terminal that is intended to beyond the upload file terminal is upgraded synchronization folder.The synchronization folder of the second terminal that described cloud storage managing server will read and the synchronization folder on the third terminal and itself compares, and the information of upload file is updated to respectively synchronization folder on described the second terminal and the third terminal.
The synchronization folder of step 6, described the second terminal and third terminal all receives the fileinfo of upload file, described cloud storage server is respectively to the file download unit sending controling instruction of described the second terminal and third terminal, the file download unit of described the second terminal and third terminal sends the newly down operation instruction of file in the synchronization folder to described cloud storage server respectively according to control command, and this new file refers to the upload file of described first terminal.
Step 7, described cloud storage managing server read the new memory address of file in described cloud memory space in the described synchronization folder in the tabulation of file address, and this memory address is sent to described cloud storage read-write server.
Step 8, described cloud storage read-write server read this new file according to the memory address that receives in described cloud memory space, send to respectively described the second terminal and third terminal.
Step 9, described the second terminal and third terminal are after the new file of download reception is complete, described download unit is to file broadcast unit sending controling instruction, described file broadcast unit starts according to control command, play the new file of downloading, new file is play in described the second terminal and third terminal respectively.If described new file is picture, this picture shows in whole screen mode on described the second terminal and third terminal.
For example, when including only digital camera, mobile phone and DPF in the system, as described in Figure 5, take a photo when digital camera is new, and should increase photo upload newly behind the cloud storage server, the photo that will increase newly that described mobile phone and DPF can be instant downloads to respectively local and broadcast.
The instant method for synchronous of described cloud storage, when a terminal received the operational order of the delete instruction in the synchronization folder, its delete instruction with this synchronization folder sent to described cloud storage server.Described cloud storage server receives delete instruction, described cloud storage managing server finds the corresponding file of delete instruction memory address in described cloud memory space in the tabulation of file address, and this memory address is sent to described cloud storage read-write server.Described cloud storage read-write server is deleted the file on the respective stored address in the cloud memory space according to delete instruction and memory address.Described cloud storage managing server upgrades the user file tabulation of itself.Described cloud storage server reads the user file tabulation on the other-end, and the user file tabulation of itself is tabulated with the user file of other-end respectively to compare, and upgrades respectively the user file tabulation on the other-end.
Operational order of the present invention comprises the control command of the read-write operations such as teletype command, download instruction, delete instruction, duplicate instructions, browsing instructions.
Instant method for synchronous and the system of cloud storage provided by the invention, a terminal is with the synchronization folder of File Upload to the cloud storage server, the synchronization folder of other-end can be distinguished the synchronization folder of upgrading synchronously oneself, other-end also downloads to this locality by own file download unit with the file of newly uploading in the synchronization folder on the cloud storage server respectively, and other-end is further play by the file that the file broadcast unit is downloaded this locality.Instant method for synchronous and the system of cloud storage of the present invention, when the synchronous documents of a terminal accompanied new File Upload, other each terminals were manually downloaded and are play without the user, can automatically download and play, and save time.
Should be understood that above-mentioned statement for preferred embodiment of the present invention is comparatively detailed, can not therefore think the restriction to scope of patent protection of the present invention, scope of patent protection of the present invention should be as the criterion with claims.