Incremental Data Backup via Router Checksum Query
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing data backup methods for mobile terminals are time-consuming due to the need to transmit all data, leading to inefficient data transfer and suboptimal storage utilization.
Innovation Solution
Implementing an incremental backup method that detects new files on the terminal, calculates a checked value using an algorithm like MD5, and queries the router to determine if the file exists before transmitting, thereby reducing data transmission and enhancing storage efficiency.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If all data is transmitted for backup every time, then data security is ensured, but data transmission time and storage space consumption increase significantly
Solution Approach 1:
The system performs preliminary actions by calculating and transmitting file checksums (MD5 values) before actual file transmission. The router queries whether files with the same checksum already exist in its storage, allowing the system to determine in advance whether full backup is necessary, thus avoiding unnecessary data transmission while ensuring data security.
Solution Approach 2:
The patent extracts only the essential identification feature of files (checksum values) from the complete file data. By transmitting and comparing only these extracted checksums rather than entire files, the system determines whether actual file transmission is needed, significantly reducing backup time while maintaining data security through selective transmission.
2Reliability
If all data is transmitted for backup every time, then complete data backup is achieved, but transmission quantity and storage space consumption increase
Solution Approach 1:
The patent extracts only the essential identification feature of files (checksum values) from the complete file data. By transmitting and comparing only these extracted checksums rather than entire files, the system determines whether actual file transmission is needed, significantly reducing backup time while maintaining data security.
Solution Approach 2:
The system performs preliminary actions by calculating and transmitting file checksums (MD5 values) before actual file transmission. The router queries whether files with the same checksum already exist in its storage, allowing the system to determine in advance whether full backup is necessary, thus avoiding unnecessary data transmission while ensuring data security.
3Quantity of substance
If incremental backup based on new file detection is implemented, then transmission quantity is reduced, but system complexity increases due to file detection and comparison mechanisms
Solution Approach 1:
The patent replaces complex mechanical file comparison systems with a simplified checksum-based identification system. Instead of comparing entire files or their metadata structures, the system uses cryptographic hash functions (MD5) to generate unique identifiers for files, making the comparison process computationally efficient and structurally simple while still enabling accurate incremental backup detection.
4Loss of substance
If router queries each file before backup, then repeated backups are avoided and storage utilization improves, but query processing time increases
Solution Approach 1:
The patent extracts only the essential identification feature of files (checksum values) from the complete file data. By transmitting and comparing only these extracted checksums rather than entire files, the system determines whether actual file transmission is needed, significantly reducing backup time while maintaining data security.
Solution Approach 2:
The patent replaces complex mechanical file comparison systems with a simplified checksum-based identification system. Instead of comparing entire files or their metadata structures, the system uses cryptographic hash functions (MD5) to generate unique identifiers for files, making the comparison process computationally efficient and structurally simple while still enabling accurate incremental backup detection.
Data Source
Figure 1
Figure 2
Figure 3
AI summary
The present disclosure relates to a method for backing up data, a device for backing up data and an electronic device. The method includes: determining whether a new file of a predetermined type exists locally (102); calculating a checked value corresponding to the new file according to a predetermined algorithm if the new file of the predetermined type exists (104); sending a query request containing the checked value to a router connected, so as to query whether a file having the checked value is stored in the router (106); backing up the new file to the router if determining that no file having the checked value is stored in the router according to a query result returned from the router (108).