Index file recovery method and apparatus and video monitoring system
A technology for indexing files and recovery methods, which is applied to multimedia data indexing, multimedia data retrieval, and redundant data error detection in calculations, and can solve the problems that index files are easy to lose index information and cannot retrieve data, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0077] This embodiment provides an index file recovery method, such as figure 1 shown, including the following steps:
[0078] S1. Back up the index file to obtain the backup index file. Specifically, by backing up the index file, even if the index information in the index file is destroyed, the index information can be completely saved in the backup index file, so as to avoid the situation that corresponding data cannot be found due to loss of index information.
[0079] Preferably, as figure 2 As shown, step S1 includes:
[0080] S11. Perform a full backup of the index file to obtain the original backup index file. Specifically, by performing an index file on the data, when a data loss disaster occurs, only one tape (that is, the full backup tape of the day before the disaster occurs) can be used to restore the lost data. Can ensure data security.
[0081] S12. Daily backup is performed on the original backup index file to obtain the daily backup index file. Specifica...
Embodiment 2
[0107] This embodiment provides another index file recovery method, such as Figure 7 shown, including the following steps:
[0108] S1'. Back up the index file to obtain the backup index file. Specifically, the method of obtaining the backup index file in step S1 in Embodiment 1 may be used to obtain the backup index file.
[0109] S2'. Compare the generation time of each index information in the backup index file with the currently applied index file.
[0110] S3'. If the backup index file has the latest index information, use the backup index file as the latest index file; if the currently applied index file has the latest index information, use the currently applied index file as the latest index document.
[0111] S4'. Determine whether there is data that cannot be queried by the latest index file.
[0112] S5'. If it does not exist, replace the original backup index file and the currently applied index file with the latest index file.
[0113] S6'. Determine whether...
Embodiment 3
[0118] This embodiment provides an index file recovery device, such as Figure 8 shown, including:
[0119] The backup index file acquiring unit 11 is configured to back up the index file and acquire the backup index file.
[0120] Preferably, the backup index file acquisition unit 11 includes:
[0121] The full backup subunit 111 is configured to perform a full backup of the index file to obtain the original backup index file.
[0122] The daily backup subunit 112 is configured to perform daily backup of the original backup index file and acquire the daily backup index file.
[0123] The index information acquiring subunit 113 is configured to acquire new index information.
[0124] Preferably, the index information acquisition subunit 113 first judges whether new index information is generated; if it is generated, locks the index modification queue for recording the index information, and then writes the new index information into the index modification queue; writes Whe...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 