CN106528350B - A kind of file backup method and mobile terminal - Google Patents

A kind of file backup method and mobile terminal Download PDF

Info

Publication number
CN106528350B
CN106528350B CN201611197193.XA CN201611197193A CN106528350B CN 106528350 B CN106528350 B CN 106528350B CN 201611197193 A CN201611197193 A CN 201611197193A CN 106528350 B CN106528350 B CN 106528350B
Authority
CN
China
Prior art keywords
file
mobile terminal
probability
preset
storage 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
CN201611197193.XA
Other languages
Chinese (zh)
Other versions
CN106528350A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201611197193.XA priority Critical patent/CN106528350B/en
Publication of CN106528350A publication Critical patent/CN106528350A/en
Application granted granted Critical
Publication of CN106528350B publication Critical patent/CN106528350B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1461Backup scheduling policy
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • G06F11/1451Management of the data involved in backup or backup restore by selection of backup contents

Abstract

The present invention provides a kind of file backup method and mobile terminals, this method comprises: according to the service condition of the first file in mobile terminal, it obtains the first of the first file and uses probability, first, which is the first file using probability, uses probability in the preset time after current time;When the first use probability is less than the first preset value;Alternatively, the alternative document of first the first preset quantity being less than in mobile terminal using probability uses probability in the preset time after current time;Alternatively, first be merely greater than using probability the alternative document of the second preset quantity in mobile terminal in the preset time after current time using probability when, by the first file backup to storage server, and the first file is deleted from mobile terminal.When the present invention solves the memory space inadequate of mobile terminal, the problem of making troubles to user.

Description

A kind of file backup method and mobile terminal
Technical field
The present invention relates to mobile communication technology field, in particular to a kind of file backup method and mobile terminal.
Background technique
With the continuous development of mobile communication technology and the continuous development of network infrastructure, 4G network, wireless local area Network coverage face is more and more wider, and network insertion is more and more convenient, and cut-in quality is constantly promoted, and a large amount of terminal device occurs, Such as mobile phone, tablet computer etc., the function of terminal device is also continuous perfect, however, to user the problem of memory space inadequate Bring many inconvenience.When most users encounter the problem of memory space inadequate, generally by the way of clearing up manually, such as Memory space is temporarily freed up by the method for uninstall, manual backup, cleaning data;Or the end that replacement memory space is big End.However, the mode cleared up manually operates repeatedly be easy to cause loss of data, the software being unloaded when needed can only hand It is dynamic to re-download installation, it is relatively complicated, and the storage equipment for replacing large capacity needs to spend higher cost.
Summary of the invention
The present invention provides a kind of file backup method and mobile terminals, and its purpose is to solve the storage of mobile terminal When insufficient space, the problem of making troubles to user.
On the one hand, the embodiment provides a kind of file backup methods, this method comprises:
According to the service condition of the first file in mobile terminal, obtain the first file first uses probability, and first makes It is that the first file uses probability in the preset time after current time with probability;
When the first use probability is less than the first preset value;Alternatively,
First is pre- after current time less than the alternative document of the first preset quantity in mobile terminal using probability If using probability in the time;Alternatively,
First is merely greater than the alternative document of the second preset quantity in mobile terminal using probability after current time In preset time using probability when, by the first file backup to storage server, and the first file is deleted from mobile terminal It removes.
On the other hand, the embodiments of the present invention also provide a kind of mobile terminals, comprising:
First obtains module, for the service condition according to the first file in mobile terminal, obtains the of the first file One uses probability, and first, which is the first file using probability, uses probability in the preset time after current time;
Backup module, for working as first using probability less than the first preset value;Alternatively,
First is pre- after current time less than the alternative document of the first preset quantity in mobile terminal using probability If using probability in the time;Alternatively,
First is merely greater than the alternative document of the second preset quantity in mobile terminal using probability after current time In preset time using probability when, by the first file backup to storage server, and the first file is deleted from mobile terminal It removes.
In this way, file backup method provided by the invention and mobile terminal, according to frequency of use to the file of mobile terminal It is backed up, the higher file of frequency of use is stored in mobile terminal, and the lower file of frequency of use is stored in storage clothes Business device;In this way, mobile terminal can clear up memory automatically, and process is simple and not will cause when mobile terminal memory space inadequate Loss of data;When the present invention solves the memory space inadequate of mobile terminal, the problem of making troubles to user.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention Example, for those of ordinary skill in the art, without any creative labor, can also be according to these attached drawings Obtain other attached drawings.
Fig. 1 shows the basic step flow charts for the file backup method that the first embodiment of the present invention provides;
Fig. 2 indicates the basic step flow chart for the file backup method that the second embodiment of the present invention provides;
Fig. 3 indicates one of the block diagram of mobile terminal that the third embodiment of the present invention provides;
Fig. 4 indicates the two of the block diagram for the mobile terminal that the third embodiment of the present invention provides;
Fig. 5 indicates the block diagram for the mobile terminal that the fourth embodiment of the present invention provides;
Fig. 6 indicates the block diagram for the mobile terminal that the fifth embodiment of the present invention provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
First embodiment
Referring to Fig. 1, the first embodiment of the present invention provides a kind of file backup method, comprising:
Step 101, according to the service condition of the first file in mobile terminal, obtain the first file first is used generally Rate, first, which is the first file using probability, uses probability in the preset time after current time.
Wherein, the first file refers to the file for allowing to exchange between mobile terminal and storage server.First file is big Small more than the first default value and is not the file of non-swap file by user's mark, i.e. occupancy memory space is larger and by user Allow the file exchanged.In preset time after current time, i.e., since at the time of mobile terminal triggers acquisition instruction Timing, until the time in the preset period;Such as when preset time period is one small, then the preset time after current time In interior one hour for after current time, first uses probability to use probability in the period.Under normal conditions, mobile Memory space occupancy in terminal is lower than a preset value, initiates to carry out cleaning memory manually when higher than the preset value or user When, frequency of use of first file in a preset time is obtained, first file low for frequency of use, which can store, to be deposited Server is stored up to clear up terminal memory, and high can store of frequency of use keeps user easy to use in mobile terminal.
Step 102, when first uses probability less than the first preset value;Alternatively,
First is pre- after current time less than the alternative document of the first preset quantity in mobile terminal using probability If using probability in the time;Alternatively,
First is merely greater than the alternative document of the second preset quantity in mobile terminal using probability after current time In preset time using probability when, by the first file backup to storage server, and the first file is deleted from mobile terminal It removes.
It specifically, can be standby by the first file when first is less than a fixed value less than the first preset value using probability Part to storage server;Or All Files sort from high to low according to frequency of use, when the first use probability is lower than first The alternative document of preset quantity uses probability, or works as the first of the first file and be merely greater than the second preset quantity using probability When using probability of alternative document illustrates that first is lower using probability, is then backuped to storage server, be convenient to clean movement The memory headroom of terminal, when needing to use this document, user can download from storage server.
In the above embodiment of the present invention, backed up according to file of the frequency of use to mobile terminal, by frequency of use Higher file is stored in mobile terminal, and the lower file of frequency of use is stored in storage server;In this way, working as mobile terminal When memory space inadequate, mobile terminal can clear up memory automatically, and process is simple and not will cause loss of data;The present invention solves When the memory space inadequate of mobile terminal, the problem of making troubles to user.
Second embodiment
Referring to fig. 2, the second embodiment of the present invention provides a kind of file backup method, comprising:
Step 201, according to the service condition of the first file in mobile terminal, obtain the first file first is used generally Rate, first, which is the first file using probability, uses probability in the preset time after current time;
Wherein, the first file refers to the file for allowing to exchange between mobile terminal and storage server.First file is big Small more than the first default value and is not the file of non-swap file by user's mark, i.e. occupancy memory space is larger and by user Allow the file exchanged.In preset time after current time, i.e., since at the time of mobile terminal triggers acquisition instruction Timing, until the time in the preset period;Such as when preset time period is one small, then the preset time after current time In interior one hour for after current time, first uses probability to use probability in the period.Under normal conditions, mobile Memory space occupancy in terminal is lower than a preset value, initiates to carry out cleaning memory manually when higher than the preset value or user When, frequency of use of first file in a preset time is obtained, first file low for frequency of use, which can store, to be deposited Server is stored up to clear up terminal memory, and high can store of frequency of use keeps user easy to use in mobile terminal.
Step 202, when first uses probability less than the first preset value;Alternatively,
First is pre- after current time less than the alternative document of the first preset quantity in mobile terminal using probability If using probability in the time;Alternatively,
First is merely greater than the alternative document of the second preset quantity in mobile terminal using probability after current time In preset time using probability when, by the first file backup to storage server, and the first file is deleted from mobile terminal It removes.
It specifically, can be standby by the first file when first is less than a fixed value less than the first preset value using probability Part to storage server;Or All Files sort from high to low according to frequency of use, when the first use probability is lower than first The alternative document of preset quantity uses probability, or works as the first of the first file and be merely greater than the second preset quantity using probability When using probability of alternative document illustrates that first is lower using probability, is then backuped to storage server, be convenient to clean movement The memory headroom of terminal, when needing to use this document, user can download from storage server.
Preferably, step 202 includes:
When the size of the free memory of mobile terminal is less than four preset values, the first file backup is taken to storage Business device.
Wherein, the 4th preset value may be configured as the threshold value of mobile terminal free memory, and available when mobile terminal is deposited When storing up the size in space less than four preset values, show that the memory usage of mobile terminal at this time is higher, available space is smaller, then By the first file backup to storage server.
Step 203, it obtains second of the second file in storage server and uses probability, second is literary for second using probability Part uses probability in the preset time after current time;
When the second use probability is greater than the second preset value;Alternatively,
Second is pre- after current time greater than the alternative document of the third preset quantity in mobile terminal using probability If using probability in the time;Alternatively,
First is only smaller than the alternative document of the 4th preset quantity in mobile terminal using probability after current time In preset time using probability when, the second file is restored to mobile terminal from storage server.
Specifically, in the preset time after current time, i.e., since at the time of mobile terminal triggers acquisition instruction Timing, until the time in the preset period;Such as when preset time period is one small, then the preset time after current time In interior one hour for after current time, second uses probability to use probability in the period.When second use probability When being greater than a fixed value greater than the second preset value, the second file can be restored to mobile terminal from storage server;Or All Files are sorted from high to low according to frequency of use, when the second use probability is greater than the alternative document of third preset quantity Using probability, or work as the use probability for the alternative document that the second of the second file is only smaller than the 4th preset quantity using probability When, illustrate that second is higher using probability, then restores it into mobile terminal, it is user-friendly.
Preferably, step 203 includes:
When the size of the second file is less than the size of the free memory of mobile terminal, and the size of free memory When difference between the size of the second file is greater than third preset value, the second file is restored to movement eventually from storage server End.
Specifically, when the size of the second file is less than the available space of mobile terminal, i.e. mobile terminal can accommodate the second text Part, the and when difference of the size of available space and the second file is greater than third default value, by the second file access pattern to it is mobile eventually End, after ensuring recovery, mobile terminal still has certain available space.
Preferably, this method further include:
Exchange labeling is forbidden to the file setting in mobile terminal;
Correspondingly, step 201 includes:
When the first file, which is not set, forbids exchange labeling, according to the service condition of the first file, the first file is obtained First use probability.
Wherein, forbid exchange labeling for marking not the file for allowing to exchange between mobile terminal and storage server, Usually vital document or the occupancy lesser file of memory space.When the first file is not set forbids exchange labeling, show One file can swap then acquisition first and use probability.
Preferably, step 202 includes:
When mobile terminal meet in the following conditions at least one of when, by the first file backup to storage server:
Mobile terminal is under non-working condition;
Mobile terminal is connect with WLAN;
The remaining capacity of mobile terminal is greater than default charge value;
Mobile terminal is in charged state.
Wherein, when mobile terminal is under non-working condition, for example screen is closed;Or connect with WLAN, and The network of non-operator avoids generating when user carries out data interaction with storage server when the network connection with operator more Flow;Or the remaining capacity of mobile terminal is when being greater than default charge value, i.e. battery capacity abundance;Or when being in charged state, Ensure that exchange files can be completed without interrupting.
Optionally, after step 202, this method further include:
When detecting the icon of user's touch-control application program relevant to the first file, downloading and institute from storage server Relevant first file of the icon of the application program of touch-control.
Specifically, if user needs the first file in use, touch-control application relevant to the first file can be passed through The icon or other modes of program start the first file, if detecting user's touch-control application program relevant to the first file When icon, then relevant first file is downloaded from storage server automatically, downloading process is simple, carries out on backstage, nothing User is needed to be manually operated.
Optionally, this method further include:
To be not set forbid exchange labeling file carry out category division, by each class file respectively with a set of keyword It is associated.
Specifically, some usage scenarios may be applied to corresponding file, for example user's manual setting terminal will Using the mode arrived, for example the keywords such as " trip ", " financing ", " tourism ", associated file can be in next times and personal cloud When carrying out " exchange files ", preferentially ensure to store on mobile terminals.Therefore, some files and some keyword phases can be set Association.
Further, include: in step 202 and step 203
When detecting the pre-stored exchange instruction of user, the keyword in exchange instruction is obtained;
File associated with the keyword in exchange instruction is stored in mobile terminal.
Wherein, when detecting the pre-stored exchange instruction of user, keyword therein is obtained, and is searched and keyword Associated swap file, and the swap file is stored to mobile terminal, it is ensured that the normal use of user.
It in the above embodiment of the present invention, is backed up according to file of the frequency of use to mobile terminal, is guaranteeing to move In the case that the memory space occupancy of terminal is lower than a preset value, the higher file of frequency of use is stored in mobile terminal, And the lower file of frequency of use is stored in storage server;In this way, mobile terminal can when mobile terminal memory space inadequate The automatic exchange files that carry out clear up memory, and the first file backup being cleaned is in storage server;It is taken when needing to be stored in storage Be engaged in device file when, it is synchronous from storage server, without reinstalling the troublesome operations such as application program, process it is simple and It not will cause loss of data;When the present invention solves the memory space inadequate of mobile terminal, the problem of making troubles to user.
3rd embodiment
Referring to Fig. 3, the third embodiment of the present invention provides a kind of mobile terminal 300, comprising:
First obtains module 301, for the service condition according to the first file in mobile terminal 300, obtains the first text The first of part uses probability, and first, which is the first file using probability, uses probability in the preset time after current time.
Wherein, the first file refers to the file for allowing to exchange between mobile terminal 300 and storage server.First file is Size be more than the first default value and not by user's mark be non-swap file file, i.e., occupancy memory space it is larger and by with Family allows the file exchanged.In preset time after current time, i.e., at the time of triggering acquisition instruction from mobile terminal 300 Start timing, until the time in the preset period;It is such as when preset time period is one small, then default after current time For in one hour after current time, first uses probability to use probability in the period in time.Under normal conditions, Memory space occupancy in mobile terminal 300 is lower than a preset value, initiates to carry out manually when higher than the preset value or user When clearing up memory, frequency of use of first file in a preset time is obtained, first file low for frequency of use can be with Storage server is stored in clear up terminal memory, and high can store of frequency of use uses user in mobile terminal 300 It is convenient.
Backup module 302, for working as first using probability less than the first preset value;Alternatively,
First is less than the alternative document of the first preset quantity in mobile terminal 300 using probability after current time Probability is used in preset time;Alternatively,
First is merely greater than the alternative document of the second preset quantity in mobile terminal 300 using probability after current time Preset time in using probability when, by the first file backup to storage server, and by the first file from mobile terminal 300 Middle deletion.
It specifically, can be standby by the first file when first is less than a fixed value less than the first preset value using probability Part to storage server;Or All Files sort from high to low according to frequency of use, when the first use probability is lower than first The alternative document of preset quantity uses probability, or works as the first of the first file and be merely greater than the second preset quantity using probability When using probability of alternative document illustrates that first is lower using probability, is then backuped to storage server, be convenient to clean movement The memory headroom of terminal 300, when needing to use this document, user can download from storage server.
Optionally, referring to fig. 4, mobile terminal 300 further include:
Second obtains module 303, and second for obtaining the second file in storage server is used using probability, second Probability is that the second file uses probability in the preset time after current time;
Recovery module 304, for being greater than the second preset value using probability when second;Alternatively,
Second is greater than the alternative document of the third preset quantity in mobile terminal 300 using probability after current time Probability is used in preset time;Alternatively,
First is only smaller than the alternative document of the 4th preset quantity in mobile terminal 300 using probability after current time Preset time in using probability when, the second file is restored to mobile terminal 300 from storage server.
Optionally, recovery module 304 are specifically used for:
When the size of the second file is less than the size of the free memory of mobile terminal 300, and free memory When difference between size and the size of the second file is greater than third preset value, the second file is restored to shifting from storage server Dynamic terminal 300.
Optionally, referring to fig. 4, mobile terminal 300 further include:
Setup module 305 is marked, for forbidding exchange labeling to the file setting in mobile terminal 300;
Correspondingly, the first acquisition module 301 is used for:
When the first file, which is not set, forbids exchange labeling, according to the service condition of the first file, the first file is obtained First use probability.
Optionally, backup module 302 are specifically used for:
When the size of the free memory of mobile terminal 300 is less than four preset values, by the first file backup to depositing Store up server.
Optionally, backup module 302 are specifically used for:
When mobile terminal 300 meet in the following conditions at least one of when, by the first file backup to storage server:
Mobile terminal 300 is under non-working condition;
Mobile terminal 300 is connect with WLAN;
The remaining capacity of mobile terminal 300 is greater than default charge value;
Mobile terminal 300 is in charged state.
It in the above embodiment of the present invention, is backed up according to file of the frequency of use to mobile terminal 300, is guaranteeing to move The higher file of frequency of use is stored in movement lower than in the case where a preset value by the memory space occupancy of dynamic terminal 300 Terminal 300, and the lower file of frequency of use is stored in storage server;In this way, working as 300 memory space inadequate of mobile terminal When, mobile terminal 300 can carry out exchange files cleaning memory automatically, and the first file backup being cleaned is in storage server;When It needs to store in the file of storage server, it is synchronous from storage server, it is numerous without reinstalling application program etc. Trivial operation, process is simple and not will cause loss of data;When the present invention solves the memory space inadequate of mobile terminal, user is given The problem of making troubles.
Fourth embodiment
Fig. 5 is the block diagram of the mobile terminal of fourth embodiment of the invention.Mobile terminal 500 shown in fig. 5 includes: at least one A processor 501, memory 502, at least one network interface 504 and other users interface 503.In mobile terminal 500 Various components are coupled by bus system 505.It is understood that bus system 505 is for realizing the company between these components Connect letter.Bus system 505 further includes power bus, control bus and status signal bus in addition in addition to including data/address bus.But It is that various buses are all designated as bus system 505 in Fig. 5 for the sake of clear explanation.
Wherein, user interface 503 may include display, keyboard or pointing device (for example, mouse, trace ball (trackball), touch-sensitive plate or touch screen etc..
It is appreciated that the memory 502 in the embodiment of the present invention can be volatile memory or nonvolatile memory, It or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read- Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable Device (Erasable PROM, EPROM), electrically erasable programmable read-only memory (Electrically EPROM, EEPROM) or Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), be used as external high Speed caching.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double DataRate SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links Dynamic random access memory (SynchlinkDRAM, SLDRAM) and direct rambus random access memory (DirectRambusRAM, DRRAM).The memory 502 of system and method described herein be intended to include but be not limited to these and The memory of any other suitable type.
In some embodiments, memory 502 stores following element, executable modules or data structures, or Their subset of person or their superset: operating system 5021 and application program 5022.
Wherein, operating system 5021 include various system programs, such as ccf layer, core library layer, driving layer etc., are used for Realize various basic businesses and the hardware based task of processing.Application program 5022 includes various application programs, such as media Player (Media Player), browser (Browser) etc. realize the embodiment of the present invention for realizing various applied business The program of method may be embodied in application program 5022.
In embodiments of the present invention, by the program or instruction of calling memory 502 to store, specifically, can be application The program or instruction stored in program 5022, processor 501 are used for: according to the service condition of the first file in mobile terminal, It obtains the first of the first file and uses probability, the first use probability is the first file in the preset time after current time Use probability;When the first use probability is less than the first preset value;Alternatively, first is pre- less than first in mobile terminal using probability If the alternative document of quantity uses probability in the preset time after current time;Alternatively, first is merely greater than using probability The alternative document of the second preset quantity in mobile terminal in the preset time after current time using probability when, by the One file backup is deleted from mobile terminal to storage server, and by the first file.
The method that the embodiments of the present invention disclose can be applied in processor 501, or be realized by processor 501. Processor 501 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each Step can be completed by the integrated logic circuit of the hardware in processor 501 or the instruction of software form.Above-mentioned processing Device 501 can be general processor, digital signal processor (Digital Signal Processor, DSP), dedicated integrated electricity Road (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general Processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with institute of the embodiment of the present invention The step of disclosed method, can be embodied directly in hardware decoding processor and execute completion, or with the hardware in decoding processor And software module combination executes completion.Software module can be located at random access memory, and flash memory, read-only memory may be programmed read-only In the storage medium of this fields such as memory or electrically erasable programmable memory, register maturation.The storage medium is located at The step of memory 502, processor 501 reads the information in memory 502, completes the above method in conjunction with its hardware.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its Combination is to realize.For hardware realization, processing unit be may be implemented in one or more specific integrated circuit (Application Specific Integrated Circuit, ASIC), digital signal processor (Digital Signal Processor, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable LogicDevice, PLD), field programmable gate array (Field Programmable Gate Array, FPGA), general place It manages in device, controller, microcontroller, microprocessor, other electronic units for executing herein described function or combinations thereof.
For software implementations, it can be realized herein by executing the module (such as process, function etc.) of function described herein The technology.Software code is storable in memory and is executed by processor.Memory can in the processor or It is realized outside processor.
Optionally, as another embodiment, processor 501 is also used to: obtaining the second file in storage server Second uses probability, and second, which is the second file using probability, uses probability in the preset time after current time;When Two are greater than the second preset value using probability;Alternatively, second is greater than other of the third preset quantity in mobile terminal using probability File uses probability in the preset time after current time;Alternatively, first is only smaller than in mobile terminal using probability The alternative document of 4th preset quantity in the preset time after current time using probability when, by the second file from storage Server is restored to mobile terminal.
Optionally, as another embodiment, processor 501 is also used to: when the size of the second file is less than mobile terminal Free memory size, and the difference between the size of free memory and the size of the second file be greater than third it is pre- If the second file is restored to mobile terminal from storage server when value.
Optionally, as another embodiment, processor 501 is also used to: forbidding handing over to the file setting in mobile terminal Dehorn note;Correspondingly, according to the service condition of the first file in mobile terminal, obtain the first file first uses probability Step, comprising: when the first file, which is not set, forbids exchange labeling, according to the service condition of the first file, obtain the first text The first of part uses probability.
Optionally, as another embodiment, processor 501 is also used to: when mobile terminal free memory it is big When less than four preset values, by the first file backup to storage server.
Optionally, as another embodiment, processor 501 is also used to: when mobile terminal meets in the following conditions extremely When one item missing, the first file backup to storage server: mobile terminal is under non-working condition;Mobile terminal and wireless office Domain net connection;The remaining capacity of mobile terminal is greater than default charge value;Mobile terminal is in charged state.
Mobile terminal 500 can be realized each process that mobile terminal is realized in previous embodiment, to avoid repeating, here It repeats no more.
The mobile terminal 500 of the embodiment of the present invention, by processor 501 according to frequency of use to the file of mobile terminal into Row backup, in the case where guaranteeing that the memory space occupancy of mobile terminal is lower than a preset value, by the higher text of frequency of use Part is stored in mobile terminal, and the lower file of frequency of use is stored in storage server;In this way, working as mobile terminal memory space When insufficient, mobile terminal can carry out exchange files cleaning memory automatically, and the first file backup being cleaned is in storage server;When It needs to store in the file of storage server, it is synchronous from storage server, it is numerous without reinstalling application program etc. Trivial operation, process is simple and not will cause loss of data;When the present invention solves the memory space inadequate of mobile terminal, user is given The problem of making troubles.
5th embodiment
Fig. 6 is the structure chart for the mobile terminal that fifth embodiment of the invention provides.Specifically, the mobile terminal 600 in Fig. 6 It can be mobile phone, tablet computer, personal digital assistant (Personal Digital Assistant, PDA) or vehicle-mounted computer Deng.
Mobile terminal 600 in Fig. 6 includes radio frequency (RadioFrequency, RF) circuit 610, memory 620, input list First 630, display unit 640, processor 650, WiFi (Wireless Fidelity) module 660, voicefrequency circuit 670, power supply 680。
Wherein, input unit 630 can be used for receiving the number or character information of user's input, and generation and mobile terminal The related signal input of 600 user setting and function control.
Specifically, in the embodiment of the present invention, which may include touch panel 631.Touch panel 631, Referred to as touch screen, collecting the touch operation of user on it or nearby, (for example user is any suitable using finger, stylus etc. The operation of object or attachment on touch panel 631), and corresponding attachment device is driven according to preset formula.It is optional , touch panel 631 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used The touch orientation at family, and touch operation bring signal is detected, transmit a signal to touch controller;Touch controller is from touch Touch information is received in detection device, and is converted into contact coordinate, then gives the processor 650, and can receive processor 650 orders sent simultaneously are executed.Furthermore, it is possible to using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves Type realizes touch panel 631.In addition to touch panel 631, input unit 630 can also include other input equipments 632, other are defeated Enter equipment 632 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, One of mouse, operating stick etc. are a variety of.
Wherein, display unit 640 can be used for showing information input by user or be supplied to the information and movement of user The various menu interfaces of terminal 600.Display unit 640 may include display panel 641, optionally, can use LCD or organic hair The forms such as optical diode (Organic Light-Emitting Diode, OLED) configure display panel 641.
It should be noted that touch panel 631 can cover display panel 641, touch display screen is formed, when the touch display screen is examined After measuring touch operation on it or nearby, processor 650 is sent to determine the type of touch event, is followed by subsequent processing device 650 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and common control viewing area.The Application Program Interface viewing area And arrangement mode of the common control viewing area does not limit, can be arranged above and below, left-right situs etc. can distinguish two it is aobvious Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with The interface elements such as the icon comprising at least one application program and/or widget desktop control.The Application Program Interface viewing area Or the empty interface not comprising any content.This commonly uses control viewing area for showing the higher control of utilization rate, for example, Application icons such as button, interface number, scroll bar, phone directory icon etc. are set.
In embodiments of the present invention, by call store the first memory 621 in software program and/or module and/ Or the data in the second memory 622, processor 650 are used for: according to the service condition of the first file in mobile terminal, being obtained Take the first of the first file is made in the preset time after current time using probability for the first file using probability, first Use probability;When the first use probability is less than the first preset value;Alternatively, first is default less than first in mobile terminal using probability The alternative document of quantity uses probability in the preset time after current time;Alternatively, first is merely greater than shifting using probability When moving use probability of the alternative document of the second preset quantity in terminal in the preset time after current time, by first File backup is deleted from mobile terminal to storage server, and by the first file.
Optionally, as another embodiment, processor 650 is also used to: obtaining the second file in storage server Second uses probability, and second, which is the second file using probability, uses probability in the preset time after current time;When Two are greater than the second preset value using probability;Alternatively, second is greater than other of the third preset quantity in mobile terminal using probability File uses probability in the preset time after current time;Alternatively, first is only smaller than in mobile terminal using probability The alternative document of 4th preset quantity in the preset time after current time using probability when, by the second file from storage Server is restored to mobile terminal.
Optionally, as another embodiment, processor 650 is also used to: when the size of the second file is less than mobile terminal Free memory size, and the difference between the size of free memory and the size of the second file be greater than third it is pre- If the second file is restored to mobile terminal from storage server when value.
Optionally, as another embodiment, processor 650 is also used to: forbidding handing over to the file setting in mobile terminal Dehorn note;Correspondingly, according to the service condition of the first file in mobile terminal, obtain the first file first uses probability Step, comprising: when the first file, which is not set, forbids exchange labeling, according to the service condition of the first file, obtain the first text The first of part uses probability.
Optionally, as another embodiment, processor 650 is also used to: when mobile terminal free memory it is big When less than four preset values, by the first file backup to storage server.
Optionally, as another embodiment, processor 650 is also used to: when mobile terminal meets in the following conditions extremely When one item missing, the first file backup to storage server: mobile terminal is under non-working condition;Mobile terminal and wireless office Domain net connection;The remaining capacity of mobile terminal is greater than default charge value;Mobile terminal is in charged state.
Mobile terminal 600 can be realized each process that mobile terminal is realized in previous embodiment, to avoid repeating, here It repeats no more.
The mobile terminal 600 of the embodiment of the present invention, by processor 650 according to frequency of use to the file of mobile terminal into Row backup, in the case where guaranteeing that the memory space occupancy of mobile terminal is lower than a preset value, by the higher text of frequency of use Part is stored in mobile terminal, and the lower file of frequency of use is stored in storage server;In this way, working as mobile terminal memory space When insufficient, mobile terminal can carry out exchange files cleaning memory automatically, and the first file backup being cleaned is in storage server;When It needs to store in the file of storage server, it is synchronous from storage server, it is numerous without reinstalling application program etc. Trivial operation, process is simple and not will cause loss of data;When the present invention solves the memory space inadequate of mobile terminal, user is given The problem of making troubles.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In embodiment provided herein, it should be understood that disclosed device and method can pass through others Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or unit It connects, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes: various Jie that can store program code such as USB flash disk, mobile hard disk, ROM, RAM, magnetic disk, CD Matter.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (10)

1. a kind of file backup method characterized by comprising
According to the service condition of the first file in mobile terminal, obtains the first of first file and use probability, described the One, which is first file using probability, uses probability in the preset time after current time;
When the first use probability is less than the first preset value;Alternatively,
Described first is less than the alternative document of the first preset quantity in the mobile terminal using probability after current time Preset time in use probability;Alternatively,
Described first be merely greater than using probability the alternative document of the second preset quantity in the mobile terminal current time it In preset time afterwards using probability when, by first file backup to storage server, and by first file from It is deleted in the mobile terminal;
The method also includes:
Obtain the second file in the storage server second is literary for described second using probability using probability, described second Part uses probability in the preset time after current time;
When the second use probability is greater than the second preset value;Alternatively,
Described second is greater than the alternative document of the third preset quantity in the mobile terminal using probability after current time Preset time in use probability;Alternatively,
Described first be only smaller than using probability the alternative document of the 4th preset quantity in the mobile terminal current time it In preset time afterwards using probability when, second file is restored to the mobile terminal from the storage server.
2. the method according to claim 1, wherein described that second file is extensive from the storage server The step of arriving the mobile terminal again, comprising:
When the size of second file is less than the size of the free memory of the mobile terminal, and the storage sky Between size and second file size between difference be greater than third preset value when, second file is deposited from described Storage server is restored to the mobile terminal.
3. the method according to claim 1, wherein further include:
Exchange labeling is forbidden to the file setting in the mobile terminal;
Correspondingly, the service condition according to the first file in mobile terminal, obtain first file first use The step of probability, comprising:
When first file, which is not set, forbids exchange labeling, according to the service condition of first file, described in acquisition The first of first file uses probability.
4. the method according to claim 1, wherein described arrive storage server for first file backup Step, comprising:
When the size of the free memory of the mobile terminal is less than four preset values, by first file backup to depositing Store up server.
5. the method according to claim 1, wherein described arrive storage server for first file backup Step, comprising:
When the mobile terminal meet in the following conditions at least one of when, by first file backup to storage server:
The mobile terminal is under non-working condition;
The mobile terminal is connect with WLAN;
The remaining capacity of the mobile terminal is greater than default charge value;
The mobile terminal is in charged state.
6. a kind of mobile terminal characterized by comprising
First obtains module, for the service condition according to the first file in mobile terminal, obtains the of first file One uses probability, and described first using probability is that use of first file in the preset time after current time is general Rate;
Backup module, for working as first using probability less than the first preset value;Alternatively,
Described first is less than the alternative document of the first preset quantity in the mobile terminal using probability after current time Preset time in use probability;Alternatively,
Described first be merely greater than using probability the alternative document of the second preset quantity in the mobile terminal current time it In preset time afterwards using probability when, by first file backup to storage server, and by first file from It is deleted in the mobile terminal;
Second obtains module, and second for obtaining the second file in the storage server uses probability, and described second makes It is that second file uses probability in the preset time after current time with probability;
Recovery module, for being greater than the second preset value using probability when described second;Alternatively,
Described second is greater than the alternative document of the third preset quantity in the mobile terminal using probability after current time Preset time in use probability;Alternatively,
Described first be only smaller than using probability the alternative document of the 4th preset quantity in the mobile terminal current time it In preset time afterwards using probability when, second file is restored to the mobile terminal from the storage server.
7. mobile terminal according to claim 6, which is characterized in that
The recovery module, is specifically used for:
When the size of second file is less than the size of the free memory of the mobile terminal, and the storage sky Between size and second file size between difference be greater than third preset value when, second file is deposited from described Storage server is restored to the mobile terminal.
8. mobile terminal according to claim 6, which is characterized in that further include:
Setup module is marked, for forbidding exchange labeling to the file setting in the mobile terminal;
Correspondingly, the first acquisition module is used for:
When first file, which is not set, forbids exchange labeling, according to the service condition of first file, described in acquisition The first of first file uses probability.
9. mobile terminal according to claim 6, which is characterized in that
The backup module, is specifically used for:
When the size of the free memory of the mobile terminal is less than four preset values, by first file backup to depositing Store up server.
10. mobile terminal according to claim 6, which is characterized in that
The backup module, is specifically used for:
When the mobile terminal meet in the following conditions at least one of when, by first file backup to storage server:
The mobile terminal is under non-working condition;
The mobile terminal is connect with WLAN;
The remaining capacity of the mobile terminal is greater than default charge value;
The mobile terminal is in charged state.
CN201611197193.XA 2016-12-22 2016-12-22 A kind of file backup method and mobile terminal Active CN106528350B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611197193.XA CN106528350B (en) 2016-12-22 2016-12-22 A kind of file backup method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611197193.XA CN106528350B (en) 2016-12-22 2016-12-22 A kind of file backup method and mobile terminal

Publications (2)

Publication Number Publication Date
CN106528350A CN106528350A (en) 2017-03-22
CN106528350B true CN106528350B (en) 2019-07-26

Family

ID=58340465

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611197193.XA Active CN106528350B (en) 2016-12-22 2016-12-22 A kind of file backup method and mobile terminal

Country Status (1)

Country Link
CN (1) CN106528350B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109032795A (en) * 2018-07-17 2018-12-18 天津猎鹰网络技术有限公司 The processing method and processing device of data buffer storage, storage medium, electronic device
CN109525721A (en) * 2018-11-06 2019-03-26 北京指掌易科技有限公司 A kind of dynamic backup, deletion and the method for restoring application and data
CN113010274B (en) * 2019-12-20 2023-04-25 中移动信息技术有限公司 Task state determining method, device, equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1874563A (en) * 2006-06-15 2006-12-06 中山大学 Handset program, file management system and method
CN103377067A (en) * 2012-04-13 2013-10-30 富泰华工业(深圳)有限公司 Application program loading system and application program loading method
CN106126289A (en) * 2016-06-27 2016-11-16 贵州万臻时代通讯技术有限公司 File loading method and mobile terminal are installed in a kind of application

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130136184A (en) * 2012-06-04 2013-12-12 삼성전자주식회사 Method for contents backup and an electronic device thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1874563A (en) * 2006-06-15 2006-12-06 中山大学 Handset program, file management system and method
CN103377067A (en) * 2012-04-13 2013-10-30 富泰华工业(深圳)有限公司 Application program loading system and application program loading method
CN106126289A (en) * 2016-06-27 2016-11-16 贵州万臻时代通讯技术有限公司 File loading method and mobile terminal are installed in a kind of application

Also Published As

Publication number Publication date
CN106528350A (en) 2017-03-22

Similar Documents

Publication Publication Date Title
CN106843654B (en) A kind of method and mobile terminal of terminal multi-job operation
CN106775898B (en) A kind of update method and mobile terminal of application program
CN106951141B (en) A kind of processing method and mobile terminal of icon
CN106844067B (en) A kind of processing method and mobile terminal of content
CN106155480B (en) A kind of interface display method and mobile terminal of application program
CN106681711A (en) Method for content sharing under split screen mode and mobile terminal
CN106125884B (en) A kind of processing method and mobile terminal of the background task of mobile terminal
CN107608823A (en) A kind of photo processing method and mobile terminal
CN106325753B (en) A kind of display methods and mobile terminal of payment interface
CN106648382B (en) A kind of picture browsing method and mobile terminal
CN106528350B (en) A kind of file backup method and mobile terminal
CN105893130B (en) A kind of processing method and mobile terminal of application program for mobile terminal
CN106354303B (en) A kind of photographic method and mobile terminal of mobile terminal
CN111831176B (en) Application program management method and device
CN104360805A (en) Application icon management method and application icon management device
CN106155699B (en) A kind of management method and mobile terminal of background process
CN106055232B (en) A kind of processing method and mobile terminal of message
CN106776871A (en) The storage method and mobile terminal of a kind of multimedia file
CN107329689B (en) A kind of backing method and mobile terminal of hand-writing input method
CN106371745A (en) Interface switching method and mobile terminal
CN106936695B (en) A kind of mail archiving method and mobile terminal
CN106201295A (en) A kind of message clone method and device and intelligent terminal
CN107145369A (en) The discharging method and mobile terminal of a kind of application program
CN106790768B (en) A kind of dns server setting method and mobile terminal
CN106502500B (en) A kind of processing method and mobile terminal of shortcut icon

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant