A method and device for backing up and restoring terminal system files
A terminal system and backup technology, applied in the direction of response error generation, redundant data error detection in operation, etc., can solve problems such as failure to switch versions, files cannot be obtained, and time-consuming, etc., to achieve the convenience of users. Operation, the effect of avoiding file read failure
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0030] A method for backing up and restoring terminal system files, the steps of the method comprising:
[0031] S1. Create a directory under the partition to be formatted, and set up a script file under the directory, and the script file defines backup and recovery operations and system attribute files to be backed up;
[0032] S2. After the system receives the formatting partition instruction, it judges whether to perform backup and recovery operations according to the script file, and if so, backs up the system attribute files to be backed up;
[0033] S3. After the formatted partition is completed, restore the backed up system attribute file.
[0034] In step S1, a directory reserve is created under the partition to be formatted, a script file is placed in this directory, and files to be backed up and related operations are defined in the script file. The backup files in the present invention are not ordinary files such as apk, but include system attribute files such as N...
Embodiment 2
[0051] as attached figure 2 As shown, the present invention also provides a device for backing up and restoring terminal system files, including:
[0052] Script creation module 21 is used to create a directory under the partition to be formatted, and set up a script file under the directory, and the script file defines backup and recovery operations and system attribute files to be backed up;
[0053] The judging module 22 is used for judging whether to perform backup and recovery operations according to the script file after the system receives the formatting partition instruction;
[0054] The backup module 23 is used for backing up the system attribute files to be backed up when judging to perform backup and recovery operations;
[0055] The recovery module 24 is configured to perform a recovery operation on the backed up system attribute file after the partition is formatted.
[0056] The judging module 22 is configured to directly execute partition formatting when the...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

