1. Technical Field
Embodiments of the present disclosure relate to data managing technology, and particularly to a system and a method for performing data backup of a digital video recorder.
2. Description of Related Art
Currently, a digital video recorder (DVR) is used to perform security surveillance by capturing images of specified location, and storing the captured images onto a hard disk. The hard disk of the DVR needs to be replaced with a new one if storage space of the hard disk is full. Often, a secure digital (SD) card is used to store backup data when the new hard disk is installed. However, the current method does not perform an identity verification of the SD card. It may be dangerous because anyone can obtain the backup data using the SD card without verifying the validity of the inserted SD card.
What is needed, therefore, is an improved system and method for performing data backup of a DVR.
All of the processes described below may be embodied in, and fully automated through, functional code modules executed by one or more general purpose computers or processors. The code modules may be stored in any type of readable medium or other storage device. Some or all of the methods may alternatively be embodied in specialized hardware. Depending on the embodiment, the readable medium may be a hard disk drive, a compact disc, a digital video disc, or a tape drive.
In one embodiment, the DVR 1 may further include a hard disk 11 (hereinafter referred to as “the first hard disk 11”), a storage card interface 12, and a processor 14. The first hard disk 11 may be used to store a first safe mechanism key and captured video data of the DVR 1. In one embodiment, the first safe mechanism key includes an identification code and a cryptograph of the DVR 1. The storage card interface 12 may be used to connect external storage devices, such as the SD card or other suitable memory storage devices.
The detecting module 131 detects if the SD card 2 is inserted in the storage card interface 12 of the DVR 1.
The determining module 132 determines if the second safe mechanism key stored in the safe mechanism block 21 of the SD card 2 is valid when the SD card 2 is detected by the detecting module 131. In one embodiment, if the second safe mechanism key stored in the safe mechanism block 21 of the SD card 2 is the same as the first safe mechanism key stored in the first hard disk 11 of DVR 1, the determining module 132 determines that the second safe mechanism key stored in the safe mechanism block 21 of the SD card 2 is valid. If the second safe mechanism key stored in the safe mechanism block 21 of the SD card 2 is not the same as the first safe mechanism key stored in the first hard disk 11 of DVR 1, the determining module 132 determines that the safe mechanism key stored in the safe mechanism block 21 of the SD card 2 is not valid.
If there is no SD card 2 detected by the detecting module 131, or the safe mechanism key stored in the safe mechanism block 21 of the SD card 2 is not valid, the storing module 133 stores video data on the first hard disk 11 of the DVR 1.
If the second safe mechanism key stored in the SD card 2 is valid, the switching module 134 changes a data storage path from the first hard disk 11 of the DVR 1 to the safe mechanism block 21 of the SD card 2. Then, another hard disk (hereinafter referred to as “the second hard disk”) may be installed in the DVR 1 using a hot swapping function. The SD card 2 may be used to store backup data of the DVR 1 when the first hard disk 11 is taken out.
The switching module 134 further changes the data storage path from the safe mechanism block 21 of the SD card 2 to the second hard disk when the second hard disk is installed.
The storing module 133 copies the backup data stored in the safe mechanism block 21 of the SD card 2 to the second hard disk.
The recording module 135 records replacement times of hot swapping hard disks after the backup data stored in the SD card 2 are copied to the second hard disk. For example, it is supposed that a “counter” represents a number of the replacement times of the hard disk. For the purpose of illustration, an initial value of the “counter” is equal to zero. When the second hard disk is installed in the DVR 1, the “counter” is evaluated as “counter+1” (counter=counter+1).
The switching module 134 further displays a message to prompt a user to take the SD card 2 out through different lighting modes of light emitting diodes (LEDs) if the replacement times are recorded.
In block S1, the detecting module 131 detects if the SD card 2 is inserted in the storage card interface 12 of the DVR 1. If the SD card 2 is detected, the procedure goes to block S2. If the SD card 2 is not detected, the procedure goes to block S3.
In block S2, the determining module 132 determines if the second safe mechanism key stored in the safe mechanism block 21 of the SD card 2 is valid. If the second safe mechanism key stored in the safe mechanism block 21 of the SD card 2 is valid, the procedure goes to block S4. If the second safe mechanism key stored in the safe mechanism block 21 of the SD card 2 is not valid, the procedure goes to block S3.
In block S3, the storing module 133 stores video data into the first hard disk 11 of the DVR 1.
In block S4, the switching module 134 changes a data storage path from the first hard disk 11 of the DVR 1 to the safe mechanism block 21 of the SD card 2 if the second safe mechanism key stored in the SD card 2 is valid. Then, a second hard disk may be installed in the DVR 1 using a hot swapping function. The SD card 2 may used to store backup data of the DVR 1 when the first hard disk 11 is taken out.
In block S5, the switching module 134 changes the data storage path from the safe mechanism block 21 of the SD card 2 to the second hard disk when the second hard disk is installed.
In block S6, the storing module 133 copies the backup data stored in the safe mechanism block 21 of the SD card 2 to the second hard disk.
In block S7, the recording module 135 records replacement times of hot swapping hard disks after the backup data stored in the SD card 2 are copied to the second hard disk. Then, the switching module 134 displays a message to prompt a user to take the SD card 2 out through different lighting modes of light emitting diodes (LEDs) if the replacement times are recorded.
It should be emphasized that the above-described embodiments of the present disclosure, particularly, any embodiments, are merely possible examples of implementations, merely set forth for a clear understanding of the principles of the disclosure. Many variations and modifications may be made to the above-described embodiment(s) of the disclosure without departing substantially from the spirit and principles of the disclosure. All such modifications and variations are intended to be included herein within the scope of this disclosure and the present disclosure and protected by the following claims.
Number | Date | Country | Kind |
---|---|---|---|
200910311857.4 | Dec 2009 | CN | national |