CN102880530B - Terminal and terminal backup and restoration methods - Google Patents
Terminal and terminal backup and restoration methods Download PDFInfo
- Publication number
- CN102880530B CN102880530B CN201210359720.8A CN201210359720A CN102880530B CN 102880530 B CN102880530 B CN 102880530B CN 201210359720 A CN201210359720 A CN 201210359720A CN 102880530 B CN102880530 B CN 102880530B
- Authority
- CN
- China
- Prior art keywords
- terminal
- data
- backup
- node
- file system
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Telephone Function (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
The invention provides a kind of terminal and a kind of terminal backup and restoration methods, terminal comprises: backup module, and the data of node different in the file system of terminal are saved as Backup Data; Recover module, exist when makeing mistakes node in the file system of described terminal, from described Backup Data, obtain in corresponding described file system the data of node of makeing mistakes, and to make mistakes node described in write.By the present invention, by backing up node data, not only can make when terminal system is made mistakes, being recovered by Backup Data, can ensure that recovery operation is targeted, resume speed is exceedingly fast, and saves time simultaneously.
Description
Technical field
The present invention relates to moving communicating field, in particular to a kind of terminal and a kind of terminal backup and restoration methods.
Background technology
In existing handheld terminal, smart mobile phone with operating system occupies increasing proportion, smart mobile phone opening is much larger to the authority of user, third party application non intelligent mobile phone than before, too increases the risk that corresponding intelligent mobile phone system is destroyed simultaneously.
In prior art, there is the technical scheme that significant data in mobile phone (as address list etc.) is backed up, to prevent these loss of vital data.But, once mobile phone cause because of application program crash, file system corruption, rogue program destruction etc. do not start shooting, start shooting restart, the phenomenon such as deadlock, existing data backup scenario cannot play a role, and mobile phone can only be returned production firm and repair by user, and this causes very big inconvenience to user.
Also existing in prior art utilizes PC to carry out the technical scheme of mobile phone backup, can by terminal document system data full backup, to carry out date restoring when mobile phone cannot work, but its shortcoming is too huge with Backup Data, backup and release time longer, and recovery operation can not be carried out whenever and wherever possible.
Therefore, need a kind of new technical scheme, can causing mobile phone to be made mistakes because of the reason such as rogue program, user misoperation, file system corruption time, mobile phone returns to upstate automatically, and complete preservation user data.
Summary of the invention
Technical matters to be solved by this invention is, provides a kind of new technical scheme, can causing mobile phone to be made mistakes because of the reason such as rogue program, user misoperation, file system corruption time, mobile phone returns to upstate automatically, and complete preservation user data.
In view of this, the invention provides a kind of terminal, comprising: backup module, the data of node different in the file system of terminal are saved as Backup Data; Recover module, exist when makeing mistakes node in the file system of described terminal, from described Backup Data, obtain in corresponding described file system the data of node of makeing mistakes, and to make mistakes node described in write.In this technical scheme, by backing up node data, not only can make when terminal system is made mistakes, being recovered by Backup Data, can ensure that recovery operation is targeted, resume speed is exceedingly fast, and saves time simultaneously.According to the adduction relationship between file file divided in file system nodes file system and formed.
In technique scheme, preferably, described backup module, by the data of the node of file system described in the different sectors of the storer of described terminal, is stored as the Backup Data of corresponding described different sector; When there is damage sector in described recovery module in the storer of described terminal, determine the position of the node of makeing mistakes in described damage sector, and obtain the Backup Data of corresponding described damage sector, damage from described correspondence the data obtaining node of makeing mistakes described in correspondence the Backup Data of sector, and write the position of node of makeing mistakes described in described damage sector.In technical scheme, in units of sector, carry out the management of data backup and resume, can to make mistakes the position of node by quick position, and from the Backup Data quick obtaining desired data damaging sector oneself, date restoring can have been carried out.
In technique scheme, preferably, the data of node different in described file system, in described terminal standby, shutdown and/or when starting shooting first, are saved as described Backup Data by described backup module.In this technical scheme, when starting shooting first, timely reminding user backs up, standby each user, shutdown after automatically back up, can ensure that the data backed up are up-to-date and correct data, when terminal is made mistakes, terminal can be returned to the state of nearest true(-)running.
In technique scheme, preferably, also comprise: checking module, described starting up of terminal, crash or restart time, check each sector of described terminal, to find described damage sector.In this technical scheme, when terminal is made mistakes, carry out sector inspection in time, can ensure to recover for problematic sector as early as possible, improve the efficiency that terminal data recovers.
In technique scheme, preferably, described backup module by after the data compression of node different in described file system, then is stored as described Backup Data.In this technical scheme, Backup Data is compressed, the storage space of terminal can be saved.
The present invention also provides a kind of terminal backup and restoration methods, comprising: step 202, and the data of node different in the file system of terminal are saved as Backup Data; Step 204, exists when makeing mistakes node, obtains in corresponding described file system the data of node of makeing mistakes, and to make mistakes node described in write from described Backup Data in the file system of described terminal.In this technical scheme, by backing up node data, not only can make when terminal system is made mistakes, being recovered by Backup Data, can ensure that recovery operation is targeted, resume speed is exceedingly fast, and saves time simultaneously.According to the adduction relationship between file file divided in file system nodes file system and formed.
In technique scheme, preferably, described step 202 comprises: by the data of the node of file system described in the different sectors of the storer of described terminal, is stored as the Backup Data of corresponding described different sector; Described step 204 comprises: when there is damage sector in the storer of described terminal, determine the position of the node of makeing mistakes in described damage sector, and obtain the Backup Data of corresponding described damage sector, damage from described correspondence the data obtaining node of makeing mistakes described in correspondence the Backup Data of sector, and write the position of node of makeing mistakes described in described damage sector.In technical scheme, in units of sector, carry out the management of data backup and resume, can to make mistakes the position of node by quick position, and from the Backup Data quick obtaining desired data damaging sector oneself, date restoring can have been carried out.
In technique scheme, preferably, described step 202 comprises: in described terminal standby, shutdown and/or when starting shooting first, and the data of node different in described file system are saved as described Backup Data.In this technical scheme, when starting shooting first, timely reminding user backs up, standby each user, shutdown after automatically back up, can ensure that the data backed up are up-to-date and correct data, when terminal is made mistakes, terminal can be returned to the state of nearest true(-)running.
In technique scheme, preferably, before described step 204, also comprise: described starting up of terminal, crash or restart time, check each sector of described terminal, to find described damage sector.In this technical scheme, when terminal is made mistakes, carry out sector inspection in time, can ensure to recover for problematic sector as early as possible, improve the efficiency that terminal data recovers.
In technique scheme, preferably, described step 202 comprises: after the data compression of node different in described file system, then be stored as described Backup Data.In this technical scheme, Backup Data is compressed, the storage space of terminal can be saved.
By above technical scheme, a kind of terminal and a kind of terminal backup and restoration methods can be realized, compress based on file system node, maintain system data with storage space little as far as possible; All automatically can upgrade the data of backup subregion when user's shutdown and dormancy, the data used during to make to recover at every turn are all the up-to-date partial datas of user simultaneously at every turn, recovering mobile phone to ensureing during upstate that the user data after recovering is up-to-date simultaneously; Moreover this recovery scheme, based on the reparation at error file system node place, is different from the full recovery of PC, and the amount of resuming work is little, the time is short, the mobile phone that file system corruption causes can be solved fast and effectively and cannot use problem.
Accompanying drawing explanation
Fig. 1 is the block diagram of terminal according to an embodiment of the invention;
Fig. 2 is the process flow diagram of terminal backup according to an embodiment of the invention and restoration methods;
Fig. 3 is the start backup process flow diagram of terminal according to an embodiment of the invention;
Fig. 4 is the shutdown backup process flow diagram of terminal according to an embodiment of the invention;
Fig. 5 is the structural representation of the Backup Data of terminal according to an embodiment of the invention;
Fig. 6 is the date restoring schematic diagram of terminal according to an embodiment of the invention.
Embodiment
In order to more clearly understand above-mentioned purpose of the present invention, feature and advantage, below in conjunction with the drawings and specific embodiments, the present invention is further described in detail.It should be noted that, when not conflicting, the feature in the embodiment of the application and embodiment can combine mutually.
Set forth a lot of detail in the following description so that fully understand the present invention; but; the present invention can also adopt other to be different from other modes described here and implement, and therefore, protection scope of the present invention is not by the restriction of following public specific embodiment.
Fig. 1 is the block diagram of terminal according to an embodiment of the invention.
As shown in Figure 1, the invention provides a kind of terminal 100, comprising: backup module 102, the data of node different in the file system of terminal 100 are saved as Backup Data; Recover module 104, exist when makeing mistakes node in the file system of described terminal 100, from described Backup Data, obtain in corresponding described file system the data of node of makeing mistakes, and to make mistakes node described in write.In this technical scheme, by backing up node data, not only can make when terminal system is made mistakes, being recovered by Backup Data, can ensure that recovery operation is targeted, resume speed is exceedingly fast, and saves time simultaneously.According to the adduction relationship between file file divided in file system nodes file system and formed.
In technique scheme, preferably, described backup module 102, by the data of the node of file system described in the different sectors of the storer of described terminal 100, is stored as the Backup Data of corresponding described different sector; When there is damage sector in described recovery module 104 in the storer of described terminal 100, determine the position of the node of makeing mistakes in described damage sector, and obtain the Backup Data of corresponding described damage sector, damage from described correspondence the data obtaining node of makeing mistakes described in correspondence the Backup Data of sector, and write the position of node of makeing mistakes described in described damage sector.In technical scheme, in units of sector, carry out the management of data backup and resume, can to make mistakes the position of node by quick position, and from the Backup Data quick obtaining desired data damaging sector oneself, date restoring can have been carried out.
In technique scheme, preferably, described backup module 102 is standby in described terminal 100, shutdown and/or when starting shooting first, and the data of node different in described file system are saved as described Backup Data.In this technical scheme, when starting shooting first, timely reminding user backs up, standby each user, shutdown after automatically back up, can ensure that the data backed up are up-to-date and correct data, when terminal is made mistakes, terminal can be returned to the state of nearest true(-)running.
In technique scheme, preferably, also comprise: checking module 106, when described terminal 100 is started shooting, crashes or restarted, check the described each sector of terminal 100, to find described damage sector.In this technical scheme, when terminal is made mistakes, carry out sector inspection in time, can ensure to recover for problematic sector as early as possible, improve the efficiency that terminal data recovers.
In technique scheme, preferably, described backup module 102 by after the data compression of node different in described file system, then is stored as described Backup Data.In this technical scheme, Backup Data is compressed, the storage space of terminal can be saved.
Fig. 2 is the process flow diagram of terminal backup according to an embodiment of the invention and restoration methods.
As shown in Figure 2, the present invention also provides a kind of terminal backup and restoration methods, comprising: step 202, and the data of node different in the file system of terminal are saved as Backup Data; Step 204, exists when makeing mistakes node, obtains in corresponding described file system the data of node of makeing mistakes, and to make mistakes node described in write from described Backup Data in the file system of described terminal.In this technical scheme, by backing up node data, not only can make when terminal system is made mistakes, being recovered by Backup Data, can ensure that recovery operation is targeted, resume speed is exceedingly fast, and saves time simultaneously.According to the adduction relationship between file file divided in file system nodes file system and formed.
In technique scheme, described step 202 comprises: by the data of the node of file system described in the different sectors of the storer of described terminal, is stored as the Backup Data of corresponding described different sector; Described step 204 comprises: when there is damage sector in the storer of described terminal, determine the position of the node of makeing mistakes in described damage sector, and obtain the Backup Data of corresponding described damage sector, damage from described correspondence the data obtaining node of makeing mistakes described in correspondence the Backup Data of sector, and write the position of node of makeing mistakes described in described damage sector.In technical scheme, in units of sector, carry out the management of data backup and resume, can to make mistakes the position of node by quick position, and from the Backup Data quick obtaining desired data damaging sector oneself, date restoring can have been carried out.
In technique scheme, described step 202 comprises: in described terminal standby, shutdown and/or when starting shooting first, and the data of node different in described file system are saved as described Backup Data.In this technical scheme, when starting shooting first, timely reminding user backs up, standby each user, shutdown after automatically back up, can ensure that the data backed up are up-to-date and correct data, when terminal is made mistakes, terminal can be returned to the state of nearest true(-)running.
In technique scheme, before described step 204, also comprise: described starting up of terminal, crash or restart time, check each sector of described terminal, to find described damage sector.In this technical scheme, when terminal is made mistakes, carry out sector inspection in time, can ensure to recover for problematic sector as early as possible, improve the efficiency that terminal data recovers.
In technique scheme, described step 202 comprises: after the data compression of node different in described file system, then be stored as described Backup Data.In this technical scheme, Backup Data is compressed, the storage space of terminal can be saved.
Fig. 3 is the start backup process flow diagram of terminal according to an embodiment of the invention.
As shown in Figure 3, when mobile phone (terminal) is started shooting first, when scanning mobile phone file system, set up file system backup, and be saved in backup subregion, specific as follows:
Step 302, mobile phone is started shooting first;
Step 304, whether mobile phone inquiry user backs up system;
Step 306, when user needs backup, compresses the file system of user, generates Backup Data and be saved in backup subregion;
Step 308, after having backed up, normally enters system;
Step 310, when user does not need to back up, end operation.
Fig. 4 is the shutdown backup process flow diagram of terminal according to an embodiment of the invention.
As shown in Figure 4, when user shuts down, the flow process of backup is as follows:
Step 402, mobile phone enters shutdown, holding state;
Step 404, mobile phone compresses file system, generates Backup Data and upgrades backup subregion;
Step 406, after having backed up, keeps normal shutdown, normal Standby state.
Fig. 5 is the structural representation of the Backup Data of terminal according to an embodiment of the invention.
As shown in Figure 5, when terminal carries out data backup, the sector auxiliary information of each sector and concrete data are just backed up, data after backup are stored in backup subregion, specifically be divided into file system sector auxiliary information 502 and file system packed data 504, when date restoring, terminal can find corresponding file system packed data 504 according to file system sector auxiliary information 502, therefrom obtains the data of corresponding node of makeing mistakes to complete date restoring.
It should be noted that, when data backup, this programme is to carry out data compression according to the node of file system, by such mode, the data of relevant property are put together and carries out compression process, both taking up room of Backup Data had been decreased, again can when cell phone system to be made mistakes, fast fetching must carry out date restoring.
Fig. 6 is the date restoring schematic diagram of terminal according to an embodiment of the invention.
As shown in Figure 6, the workflow of mobile phone when date restoring is as follows:
Step 602, mobile phone power-on:
Step 604, mobile phone carries out the integrity checking of file system;
Step 606, judges whether the problem that there is integrality;
Step 608, when there is not integrity issue, normal startup enters system;
Step 610, when there is integrity issue, mobile phone enters reforestation practices;
Step 612, gets file system node location data of makeing mistakes and carries out decompress(ion), and be filled to system fault position from backup subregion;
Step 614, restarts mobile phone.
Due to backup subregion real-time update, ensure that the data of user during each recovery are all up-to-date, adopt the mode of local recovery simultaneously, ensured efficiency.When file system is made mistakes, mobile phone is returned to upstate with up-to-date data, minimum cost, and preserves user data.
In sum, by technical scheme of the present invention, a kind of terminal and a kind of terminal backup and restoration methods can be realized, compress based on file system node, maintain system data with storage space little as far as possible; All automatically can upgrade the data of backup subregion when user's shutdown and dormancy, the data used during to make to recover at every turn are all the up-to-date partial datas of user simultaneously at every turn, recovering mobile phone to ensureing during upstate that the user data after recovering is up-to-date simultaneously; Moreover this recovery scheme, based on the reparation at error file system node place, is different from the full recovery of PC, and the amount of resuming work is little, the time is short, the mobile phone that file system corruption causes can be solved fast and effectively and cannot use problem.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (8)
1. terminal backup and a recovery device, is characterized in that, comprising:
The data of node different in the file system of terminal are saved as Backup Data by backup module;
Recover module, exist when makeing mistakes node in the file system of described terminal, from described Backup Data, obtain in corresponding described file system the data of node of makeing mistakes, and to make mistakes node described in write;
Described backup module, by the data of the node of file system described in the different sectors of the storer of described terminal, is stored as the Backup Data of corresponding described different sector; When there is damage sector in described recovery module in the storer of described terminal, determine the position of the node of makeing mistakes in described damage sector, and obtain the Backup Data of corresponding described damage sector, damage from described correspondence the data obtaining node of makeing mistakes described in correspondence the Backup Data of sector, and write the position of node of makeing mistakes described in described damage sector.
2. terminal backup according to claim 1 and recovery device, is characterized in that, the data of node different in described file system, in described terminal standby, shutdown and/or when starting shooting first, are saved as described Backup Data by described backup module.
3. terminal backup according to claim 1 and recovery device, is characterized in that, also comprises:
Checking module, described starting up of terminal, crash or restart time, check each sector of described terminal, to find described damage sector.
4. terminal backup according to any one of claim 1 to 3 and recovery device, is characterized in that, described backup module by after the data compression of node different in described file system, then is stored as described Backup Data.
5. terminal backup and a restoration methods, is characterized in that, comprising:
The data of node different in the file system of terminal are saved as Backup Data by step 202;
Step 204, exists when makeing mistakes node, obtains in corresponding described file system the data of node of makeing mistakes, and to make mistakes node described in write from described Backup Data in the file system of described terminal;
Described step 202 comprises: by the data of the node of file system described in the different sectors of the storer of described terminal, is stored as the Backup Data of corresponding described different sector;
Described step 204 comprises: when there is damage sector in the storer of described terminal, determine the position of the node of makeing mistakes in described damage sector, and obtain the Backup Data of corresponding described damage sector, damage from described correspondence the data obtaining node of makeing mistakes described in correspondence the Backup Data of sector, and write the position of node of makeing mistakes described in described damage sector.
6. terminal backup according to claim 5 and restoration methods, is characterized in that, described step 202 comprises: in described terminal standby, shutdown and/or when starting shooting first, and the data of node different in described file system are saved as described Backup Data.
7. terminal backup according to claim 5 and restoration methods, is characterized in that, before described step 204, also comprises:
Described starting up of terminal, crash or restart time, check each sector of described terminal, to find described damage sector.
8. the terminal backup according to any one of claim 5 to 7 and restoration methods, is characterized in that, described step 202 comprises:
After the data compression of node different in described file system, then be stored as described Backup Data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210359720.8A CN102880530B (en) | 2012-09-25 | 2012-09-25 | Terminal and terminal backup and restoration methods |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210359720.8A CN102880530B (en) | 2012-09-25 | 2012-09-25 | Terminal and terminal backup and restoration methods |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102880530A CN102880530A (en) | 2013-01-16 |
CN102880530B true CN102880530B (en) | 2016-04-06 |
Family
ID=47481865
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210359720.8A Active CN102880530B (en) | 2012-09-25 | 2012-09-25 | Terminal and terminal backup and restoration methods |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102880530B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104636216A (en) * | 2013-11-11 | 2015-05-20 | 中兴通讯股份有限公司 | Data backup method and device and data recovery method and device |
CN105611034B (en) * | 2014-11-25 | 2019-05-10 | 中兴通讯股份有限公司 | The method of user data and corresponding mobile phone in a kind of backup and reduction mobile phone |
CN104679613A (en) * | 2015-03-17 | 2015-06-03 | 努比亚技术有限公司 | Mobile terminal and method and device for restoring user data of mobile terminal |
CN106844094B (en) * | 2016-12-23 | 2021-01-29 | 华为技术有限公司 | File repair method and device |
CN110134543A (en) * | 2018-02-02 | 2019-08-16 | 中兴通讯股份有限公司 | File system guard method, device, system and computer readable storage medium |
CN112599090A (en) * | 2020-12-17 | 2021-04-02 | 深圳创维-Rgb电子有限公司 | Anti-ghost processing method and device based on OLED screen body |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102063438A (en) * | 2009-11-17 | 2011-05-18 | 阿里巴巴集团控股有限公司 | Recovery method and device for damaged files |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0978785A1 (en) * | 1998-08-07 | 2000-02-09 | Hewlett-Packard Company | Data backup and recovery |
CN100595757C (en) * | 2006-03-28 | 2010-03-24 | 联芯科技有限公司 | Safety management method and device of file system |
CN102609371B (en) * | 2012-02-16 | 2014-12-03 | 武汉噢易科技有限公司 | System protecting method based on data security |
-
2012
- 2012-09-25 CN CN201210359720.8A patent/CN102880530B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102063438A (en) * | 2009-11-17 | 2011-05-18 | 阿里巴巴集团控股有限公司 | Recovery method and device for damaged files |
Also Published As
Publication number | Publication date |
---|---|
CN102880530A (en) | 2013-01-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102880530B (en) | Terminal and terminal backup and restoration methods | |
US9317299B2 (en) | Method and device for cold starting android mobile terminal | |
US8719497B1 (en) | Using device spoofing to improve recovery time in a continuous data protection environment | |
CN102955720B (en) | A kind of method improving ext file system stability | |
CN101788936B (en) | Snapshot backup and restoration method and device when in running of mobile terminal | |
US20180285216A1 (en) | Virtual Machine Recovery Method and Virtual Machine Management Device | |
CN102455950A (en) | Firmware recovery system and method of base board management controller | |
CN103902399B (en) | Software system repair processing method and software system repair processing device | |
CN113626256B (en) | Virtual machine disk data backup method, device, terminal and storage medium | |
CN101325785A (en) | Method and apparatus for backup and recuperation of data, mobile equipment | |
CN101308470A (en) | Computer system for initiative restoration, backup and update of BIOS | |
CN103823769A (en) | Computer system and data recovery method | |
CN102314421A (en) | Self-rescuing method and self rescuing device for file system after being damaged | |
WO2017028375A1 (en) | Version upgrading method and system | |
CN104049999A (en) | Automatic storage device repair system based on network and method thereof | |
CN103049343B (en) | Operating system blue screen restoration methods and device | |
CN105760165A (en) | MCU self-backup loading and refreshing method | |
CN104182182A (en) | Intelligent terminal and data backup method thereof | |
CN109408282B (en) | Application program backup recovery method and device and computer readable storage medium | |
CN103514063A (en) | Method and device for processing FLASH data | |
CN101923500A (en) | Backup and update method and device of bootstrap program in embedded equipment | |
CN104142838A (en) | Method and equipment for starting up mobile communication terminal | |
WO2020094063A1 (en) | Data storage method and device, storage medium and electronic device | |
CN105786650A (en) | Data management method and device | |
CN115391106A (en) | Method, system and device for pooling backup resources |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |