A kind of method of mobile terminal and data storage
Technical field
The invention belongs to field of mobile terminals, more particularly to a kind of method of mobile terminal and data storage.
Background technology
Means of communication performer increasing role of the mobile terminal as the New Times, can be used as handheld device,
TV or film can be seen with Video chat, listen song, and file data storage etc..
But at present using mobile terminal carry out data storage when, easily forget storage where and storage data hold
It is easy to be lost, but solve this problem currently without good method.
The content of the invention
It is an object of the invention to provide a kind of method of mobile terminal data storage, it is intended to solves current mobile terminal and deposits
Store up the problem of data search is troublesome and easy to be lost.
In order to solve the above-mentioned technical problem, the present invention is realized in:A kind of method of mobile terminal data storage, bag
Include:
Receive the storage instruction for treating data storage;
The data to be stored are uploaded to Cloud Server, and receive the data to be stored in the Cloud Server
Cloud storage identifies;
The data to be stored are stored in default file folder by preset numbers, and obtain the data to be stored in institute
State the storage address in default file folder;
According to cloud storage mark and the storage address, the ropes of the data to be stored is established in default file folder
Fuse ceases.
Further, it is described according to the cloud storage mark and the storage address, default file folder in establish described in
After the step of index information of data to be stored, including:
If receiving the storage instruction to new data to be stored, the index information of the new data to be stored is added
Enter in the default file folder, and the new data to be stored are uploaded in the Cloud Server.
Further, it is described according to the cloud storage mark and the storage address, default file folder in establish described in
After the step of index information of data to be stored, including:
If receiving the deletion instruction to the data to be stored, by the data to be stored and its index information from described
Deleted in default file folder.
Further, it is described that the data to be stored are uploaded to Cloud Server, and the data to be stored are received in institute
Before the step of stating the cloud storage mark in Cloud Server, in addition to:
By the size of data of the data to be stored compared with preset data size threshold value;
If the size of data of the data to be stored is less than or equal to preset data size threshold value, by the number to be stored
According to being uploaded to the Cloud Server;
If the size of data of the data to be stored is more than preset data size threshold value, prompt user will be described to be stored
Data are locally carrying out Secondary Backup.
Further, the prompting user wraps by the data to be stored after the step of locally carrying out Secondary Backup
Include:
Retrieve whether the data to be stored have the data of two backups and described two backups according to predetermined period
Whether information is consistent;
If inconsistent, alarm is carried out.
The present invention also aims to provide a kind of mobile terminal, the mobile terminal includes:
First receiving unit, the storage instruction of data storage is treated for receiving;
First uploading unit, for the data to be stored to be uploaded into Cloud Server;
Second receiving unit, for receiving cloud storage mark of the data to be stored in the Cloud Server;
Memory cell, for the data to be stored to be stored in default file folder by preset numbers;
Acquiring unit, for obtaining storage address of the data to be stored in default file folder;
Establish unit, for according to the cloud storage mark and the storage address, default file folder in establish described in
The index information of data to be stored.
Further, the mobile terminal also includes:
Adding device, for when receiving the instruction of the storage to new data to be stored, then by the new number to be stored
According to index information be added in default file folder, and the new data to be stored are uploaded to the Cloud Server
In.
Further, the mobile terminal also includes:
Delete unit, for when receiving the instruction of the deletion to the data to be stored, by the data to be stored and its
Index information is deleted from default file folder.
Further, the mobile terminal also includes:
Comparing unit, for by the size of data of the data to be stored compared with preset data size threshold value;
Second uploading unit, it is less than or equal to preset data size threshold value for the size of data in the data to be stored
When, then the data to be stored are uploaded to the Cloud Server;
Backup units, for when the size of data of the data to be stored is more than preset data size threshold value, then prompting
The data to be stored are locally being carried out Secondary Backup by user.
Further, the mobile terminal also includes:
Detection unit, for retrieving whether the data to be stored have two backups and described two according to predetermined period
Whether the data message of individual backup is consistent;
Alarm unit, for the data message in described two backups it is inconsistent when, carry out alarm.
In embodiments of the present invention, the storage that data storage is treated by receiving is indicated, the data to be stored are uploaded
To Cloud Server, and receive cloud storage mark of the data to be stored in the Cloud Server;Then will be described to be stored
Data are stored in default file folder by preset numbers, and obtain storage of the data to be stored in default file folder
Address;According to cloud storage mark and the storage address, the indexes of the data to be stored is established in default file folder
Information, it is easy to user to search the data of storage and will not loses, improve the usage experience of user.
Brief description of the drawings
Fig. 1 is the flow chart of the method for mobile terminal data storage provided in an embodiment of the present invention;
Fig. 2 is the flow chart of the method for the mobile terminal data storage that first embodiment of the invention provides;
Fig. 3 is the flow chart of the method for the mobile terminal data storage that second embodiment of the invention provides;
Fig. 4 is the flow chart of the method for the mobile terminal data storage that third embodiment of the invention provides;
Fig. 5 is the flow chart of the method for the mobile terminal data storage that fourth embodiment of the invention provides;
Fig. 6 shows the frame construction drawing of mobile terminal provided in an embodiment of the present invention.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
It is described in detail below in conjunction with specific implementation of the specific embodiment to the present invention:
Fig. 1 shows the flow chart of the method for mobile terminal data storage provided in an embodiment of the present invention, for the ease of saying
It is bright, the part related to the embodiment of the present invention is only listed, details are as follows:
The method of mobile terminal data storage provided in an embodiment of the present invention, including:
Step S10, receive the storage instruction for treating data storage.In the present embodiment, when user needs progress data to deposit
Chu Shi, treat data storage and send store instruction.
Step S50, the data to be stored are uploaded to Cloud Server.In the present embodiment, mobile terminal is receiving data
After store instruction, the data to be stored are uploaded to Cloud Server and enter backup of racking.
Step S60, receive cloud storage mark of the data to be stored in the Cloud Server.In the present embodiment, in order to
Convenient record and recovery backup are, it is necessary to obtain cloud storage mark of the data to be stored in the Cloud Server.
Step S70, the data to be stored are stored in default file folder by preset numbers, and obtain the data to be stored
Storage address in default file folder.In the present embodiment, searched in order to facilitate user, by the unified storage of data to be stored
In default file, and it is respectively each one storage address of data distribution to be stored.
Step S80, according to cloud storage mark and the storage address, the data to be stored are established in default file folder
Index information.
In the present embodiment, the index information can very easily make user search what is be locally stored in default file folder
The file stored in file and Cloud Server.
Embodiment one:
Fig. 2 shows the flow of the method for the mobile terminal data storage that first embodiment of the invention provides, for the ease of
Illustrate, only list the part related to the embodiment of the present invention, details are as follows:
As first preferred embodiment of the invention, after step S80, including:
Step S90, if receiving the storage instruction to new data to be stored, the index of the new data to be stored is believed
Breath is added in default file folder, and the new data to be stored are uploaded in the Cloud Server.
The embodiment of the present invention is that mobile terminal receives the operation performed after the store instruction of new data to be stored, mobile whole
The index information of the new data to be stored is added to this and preset by end when receiving the instruction of the storage to new data to be stored
In file, and the new data to be stored are uploaded in the Cloud Server.
Embodiment two:
Fig. 3 shows the flow of the method for the mobile terminal data storage that second embodiment of the invention provides, for the ease of
Illustrate, only list the part related to the embodiment of the present invention, details are as follows:
As second preferred embodiment of the invention, after step S80, including:
Step S100, if the deletion instruction to the data to be stored is received, by the data to be stored and its index information
Deleted from default file folder.
The embodiment of the present invention is the operation that mobile terminal performs when user needs to delete the data of storage, is being received
When being indicated to the deletion to the data to be stored, the data to be stored and its index information are deleted from default file folder,
But the data in Cloud Server are not deleted, the backup recovered in the future according to cloud storage mark is given over to.
Embodiment three:
Fig. 4 shows the flow of the method for the mobile terminal data storage that third embodiment of the invention provides, for the ease of
Illustrate, only list the part related to the embodiment of the present invention, details are as follows:
As third preferred embodiment of the invention, between step S10 and step S50, in addition to:
Step S20, by the size of data of the data to be stored compared with preset data size threshold value;
Step S30, if the size of data of the data to be stored is less than or equal to preset data size threshold value, perform step
S50;
Step S40, if the size of data of the data to be stored is more than preset data size threshold value, user is prompted to treat this
Data storage is locally carrying out Secondary Backup.
The embodiment of the present invention is to save Cloud Server resource, avoids excessive data storage from occupying server space,
When the data of present age storage are too big, twice storage is locally carried out in mobile terminal, as local backup.
Example IV:
Fig. 5 shows the flow of the method for the mobile terminal data storage that fourth embodiment of the invention provides, for the ease of
Illustrate, only list the part related to the embodiment of the present invention, details are as follows:
As a preferred embodiment of the present invention, after the step s 40, in addition to:
Step S41, retrieve what whether the data to be stored backed up with two backups and this two according to predetermined period
Whether data message is consistent;
Step S42, if inconsistent, carry out alarm.
The purpose of the embodiment of the present invention is more than preset data in the size of data of the data to be stored in mobile terminal is made
During size threshold value, it is ensured that mobile terminal has two backups, and carries out police instruction when two backups are inconsistent.
Fig. 6 shows the frame structure of mobile terminal provided in an embodiment of the present invention, for convenience of description, only lists and this
The related part of inventive embodiments, details are as follows:
Leaflet on mobile terminal provided in an embodiment of the present invention, including the first receiving unit 100, comparing unit 200, second
Member 300, backup units 400, detection unit 500, alarm unit 600, the first uploading unit 700, the second receiving unit 800, deposit
Storage unit 900, acquiring unit 1000, establish unit 1100, adding device 1200 and delete unit 1300;
First receiving unit 100 is used to receive the storage instruction for treating data storage;Comparing unit 200, for this to be treated
The size of data of data storage is compared with preset data size threshold value;Second uploading unit 300, in the data to be stored
When size of data is less than or equal to preset data size threshold value, then the data to be stored are uploaded to the Cloud Server;Backup is single
Member 400, for when the size of data of the data to be stored is more than preset data size threshold value, then prompting user that this is to be stored
Data are locally carrying out Secondary Backup;Detection unit 500, for retrieving whether the data to be stored have two according to predetermined period
Whether the data message of individual backup and this two backups is consistent;Alarm unit 600, for the data message in this two backups
When inconsistent, alarm is carried out;First uploading unit 700, for the data to be stored to be uploaded into Cloud Server;Second connects
Unit 800 is received, for receiving cloud storage mark of the data to be stored in the Cloud Server;Memory cell 900, for should
Data to be stored are stored in default file folder by preset numbers;Acquiring unit 1000, for obtaining the data to be stored at this
Storage address in default file folder;Unit 1100 is established, for according to cloud storage mark and the storage address, presetting text
The index information of the data to be stored is established in part folder;Adding device 1200, for receiving depositing to new data to be stored
During storage instruction, then the index information of the new data to be stored is added in default file folder, and this is new to be stored
Data are uploaded in the Cloud Server;Delete unit 1300, for receive the deletion to the data to be stored instruction when, by this
Data to be stored and its index information are deleted from default file folder.
The implementation for the method that mobile terminal provided in an embodiment of the present invention stores with mobile terminal data in above-described embodiment
Example is corresponding, and its operation principle and mode are corresponding applicable, just repeat no more here.
In embodiments of the present invention, the storage that data storage is treated by receiving is indicated, the data to be stored are uploaded
To Cloud Server, and receive cloud storage mark of the data to be stored in the Cloud Server;Then will be described to be stored
Data are stored in default file folder by preset numbers, and obtain storage of the data to be stored in default file folder
Address;According to cloud storage mark and the storage address, the indexes of the data to be stored is established in default file folder
Information, it is easy to user to search the data of storage and will not loses, improve the usage experience of user.
It will be appreciated by those skilled in the art that simply carried out for the unit that above-described embodiment includes according to function logic
Division, but above-mentioned division is not limited to, as long as corresponding function can be realized;In addition, the tool of each functional unit
Body title is also only to facilitate mutually distinguish, the protection domain being not intended to limit the invention.
Those of ordinary skill in the art are further appreciated that all or part of step realized in above-described embodiment method is can
To instruct the hardware of correlation to complete by program, described program can be stored in a computer read/write memory medium
In, described storage medium, including ROM/RAM, disk, CD etc..
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
All any modification, equivalent and improvement made within refreshing and principle etc., should be included in the scope of the protection.