CN101873457B - DVR (Digital Video Recorder) as well as data backup method and system thereof - Google Patents

DVR (Digital Video Recorder) as well as data backup method and system thereof Download PDF

Info

Publication number
CN101873457B
CN101873457B CN 200910168395 CN200910168395A CN101873457B CN 101873457 B CN101873457 B CN 101873457B CN 200910168395 CN200910168395 CN 200910168395 CN 200910168395 A CN200910168395 A CN 200910168395A CN 101873457 B CN101873457 B CN 101873457B
Authority
CN
China
Prior art keywords
backup
data
target equipment
subregion
dvr
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
Application number
CN 200910168395
Other languages
Chinese (zh)
Other versions
CN101873457A (en
Inventor
陈礼进
周文省
胡扬忠
邬伟琪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN 200910168395 priority Critical patent/CN101873457B/en
Publication of CN101873457A publication Critical patent/CN101873457A/en
Application granted granted Critical
Publication of CN101873457B publication Critical patent/CN101873457B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention discloses a DVR (Digital Video Recorder) as well as data backup method and system thereof. In the invention, a backup worksheet comprising system operational use time, a backup period, a backup channel, backup data types and backup target equipment is preset. The method comprises the following steps of: inquiring the backup worksheet according to a preset time interval; if the current system time is in the system operational use time, searching the backup channel according to the backup period and acquiring backup data corresponding to the backup data type in the backup channel; and writing the backup data into a usable backup space of the backup target equipment connected with the DVR. By applying the embodiment of the invention, the backup worksheet can be preset according to a backup requirement, and video data are automatically backed up into external equipment by the DVR according to the setting of the backup worksheet without manually exporting the data from the DVR.

Description

DVR data back up method, system and DVR
Technical field
The application relates to the digital supervision technical field, relates in particular to a kind of DVR(Digital Video Recorder, digital hard disc video recorder) data back up method, system and DVR.
Background technology
DVR is a kind of watch-dog that can pass through data hard disk recording Audio and Video data, DVR is divided into plain edition digital hard disc video recorder (can only access analog video camera), mixed type digital hard disc video recorder (Hybrid DVR) and network hard disk video recorder (NVR), the mixed type digital hard disc video recorder is the hard disk picture-recording equipment that can access simultaneously analog video camera and IP video camera, and network hard disk video recorder is only to access the hard disk picture-recording equipment of IP video camera.
DVR can be connected with external equipment, and external equipment is used for the video recording data of backup DVR as storage medium.If during the DVR video recording, some event occurs, in order to collect evidence, the video recording data that need to extract from DVR in this time period back up.The inventor finds to have following problem in prior art in the research and practice process to prior art: during video recording within certain time period of backup, need to be from DVR manual search go out data in this time period, then data are exported to external equipment.
Summary of the invention
The purpose of the embodiment of the present application is to provide a kind of DVR data back up method, system and DVR, to solve the problem that needs manually the video recording data in certain time period in DVR to be backuped to external equipment in prior art.
For solving the problems of the technologies described above, the embodiment of the present application provides a kind of DVR data back up method, is achieved in that
A kind of DVR data back up method sets in advance the back-up job table, and described back-up job table comprises system production time, backup cycle, backup path, Backup Data type and backup target equipment, comprising:
According to the described back-up job table of time interval inquiry that sets in advance;
If the current system time in described system production time, according to the described backup path of described backup cycle search, is obtained Backup Data corresponding with described Backup Data type in described backup path;
Described Backup Data is write in the available backup space of the described backup target equipment that is connected with described DVR, wherein, described backup target equipment is any external equipment with storage data function, the described mode that described Backup Data is write the available backup space comprises: if backup target equipment is not replace mode of single partition, if this subregion off-capacity, finish this automated back-up operation, if this subregion capacity is enough, carry out the step in the described available backup space that described Backup Data is write described backup target equipment; If backup target equipment is the single partition replace mode, with the subregion of this subregion as writing backup data; If backup target equipment is not replace mode of multi partition, need to travel through all subregions, find the subregion that is written into the latest Backup Data as the subregion of current beginning automated back-up, if can not find, finish current flow process; If backup target equipment is the multi partition replace mode, search for data writing time file the earliest in all subregions, and deletion this document folder, until enough spaces are arranged in subregion, then the subregion that at first first available partition that this is searched writes as this automated back-up, if can not find, finish current flow process.
For solving the problems of the technologies described above, the embodiment of the present application also provides a kind of DVR data backup system, is achieved in that
A kind of DVR data backup system comprises: DVR and the backup target equipment that is connected with described DVR,
described DVR, be used for setting in advance the back-up job table, described back-up job table comprises system production time, backup cycle, backup path, Backup Data type and backup target equipment, according to the described back-up job table of time interval inquiry that sets in advance, if the current system time is in described system production time, according to the described backup path of described backup cycle search, obtain Backup Data corresponding with described Backup Data type in described backup path, described Backup Data is write in the available backup space of described backup target equipment, wherein, described backup target equipment is any external equipment with storage data function, the described mode that described Backup Data is write the available backup space comprises: if backup target equipment is not replace mode of single partition, if this subregion off-capacity, finish this automated back-up operation, if this subregion capacity is enough, carry out the step in the described available backup space that described Backup Data is write described backup target equipment, if backup target equipment is the single partition replace mode, with the subregion of this subregion as writing backup data, if backup target equipment is not replace mode of multi partition, need to travel through all subregions, find the subregion that is written into the latest Backup Data as the subregion of current beginning automated back-up, if can not find, finish current flow process, if backup target equipment is the multi partition replace mode, search for data writing time file the earliest in all subregions, and deletion this document folder, until enough spaces are arranged in subregion, then the subregion that at first first available partition that this is searched writes as this automated back-up, if can not find, finish current flow process.
For solving the problems of the technologies described above, the embodiment of the present application also provides a kind of DVR, is achieved in that
A kind of DVR comprises:
Preset unit is used for setting in advance the back-up job table, and described back-up job table comprises system production time, backup cycle, backup path, Backup Data type and backup target equipment;
Query unit is used for according to the described back-up job table of time interval inquiry that sets in advance;
Search unit if the current system time that is used for described query unit inquiry in described system production time, is searched for described backup path according to described backup cycle, obtains Backup Data corresponding with described Backup Data type in described backup path;
Backup units is used for described Backup Data is write in the available backup space of the described backup target equipment that is connected with described DVR, and wherein, described backup target equipment is any external equipment of storing data function that has;
The unit is searched in the space, is used for the available backup space of searching described backup target equipment;
The space judging unit is used for judging whether the capacity in described available backup space can write described Backup Data, if carry out the function of described backup units; Otherwise, finish current operation, described judgment mode comprises: if backup target equipment is not replace mode of single partition, if this subregion off-capacity, finish this automated back-up operation, if this subregion capacity is enough, carry out the step in the described available backup space that described Backup Data is write described backup target equipment; If backup target equipment is the single partition replace mode, with the subregion of this subregion as writing backup data; If backup target equipment is not replace mode of multi partition, need to travel through all subregions, find the subregion that is written into the latest Backup Data as the subregion of current beginning automated back-up, if can not find, finish current flow process; If backup target equipment is the multi partition replace mode, search for data writing time file the earliest in all subregions, and deletion this document folder, until enough spaces are arranged in subregion, then the subregion that at first first available partition that this is searched writes as this automated back-up, if can not find, finish current flow process.
As seen, set in advance the back-up job table that comprises system production time, backup cycle, backup path, Backup Data type and backup target equipment in the embodiment of the present application, according to the described back-up job table of time interval inquiry that sets in advance, if the current system time is in described system production time, according to the described backup path of described backup cycle search, obtain Backup Data corresponding with described Backup Data type in described backup path, described Backup Data is write in the available backup space of the described backup target equipment that is connected with described DVR.Use the embodiment of the present application, can be according to the pre-configured back-up job table of backup needs, and record a video data by DVR in external equipment according to the automated back-up that arranges of this back-up job table, for example, set in advance the data in certain time period of backup, therefore when the data that need this time period in, need not manually derivation from DVR again, but direct obtaining gets final product from backup has the external equipment of these data.
Description of drawings
In order to be illustrated more clearly in the embodiment of the present application or technical scheme of the prior art, the below will do to introduce simply to the accompanying drawing of required use in embodiment or description of the Prior Art, apparently, the accompanying drawing that the following describes is only some embodiment that put down in writing in the application, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the first embodiment flow chart of the application DVR data back up method;
Fig. 2 is the second embodiment flow chart of the application DVR data back up method;
Fig. 3 is the embodiment block diagram of the application DVR data backup system;
Fig. 4 is the embodiment block diagram of the application DVR.
Embodiment
The embodiment of the present application provides a kind of DVR data back up method, system and DVR.
In order to make those skilled in the art person understand better technical scheme in the embodiment of the present application, and the above-mentioned purpose of the embodiment of the present application, feature and advantage can be become apparent more, below in conjunction with accompanying drawing, technical scheme in the embodiment of the present application is described in further detail.
Referring to Fig. 1, be the first embodiment flow chart of the application DVR data back up method:
Step 101: set in advance the back-up job table that comprises system production time, backup cycle, backup path, Backup Data type and backup target equipment.
Wherein, system production time refers to a period of time by time started and concluding time definition, the term of validity of this section time representation automated back-up.
Wherein, backup cycle can comprise: the backup cycle that backs up according to the time interval that arranges; Or the backup cycle that backs up according to the time started that arranges, the described time started comprise disposable backup to begin be the time started of time, backup every day, the time started of jede Woche backup or the time started of backup every month.
Wherein, the Backup Data type comprises that video file and other file, video file comprise regularly video file, mobile detection video recording, the video recording of reporting to the police, command triggers video recording, manual at least a in video recording; Described other file comprises at least a in atm information, log information, intelligent data.
Wherein, can back up at least a Backup Data in each backup path, the Backup Data type of each backup path can set in advance.
Wherein, backup target equipment can be any external equipment with storage data function.
Step 102: according to the time interval inquiry back-up job table that sets in advance.
Step 103: if the current system time in system production time, according to backup cycle Search Backups passage, obtain Backup Data corresponding with the Backup Data type in backup path.
Step 104: Backup Data is write in the available backup space of the backup target equipment that is connected with DVR, finish current flow process.
Concrete, create file in described available backup space, create respectively sub-folder for each backup path in described file, the Backup Data that will obtain from each backup path writes in should the sub-folder of backup path.
Referring to Fig. 2, be the second embodiment flow chart of the application DVR data back up method:
Step 201: set in advance the back-up job table.
Wherein, the back-up job table comprises system production time, backup cycle, backup path, Backup Data type and backup target equipment.
Concrete, time started and the concluding time of system production time are set, time started and concluding time all can arrange according to form " year-moon-Ri, time-divide-second ".Time started and concluding time represent the term of validity of automatically backup data, only have during this period of time just carry out whether carry out the operation of automated back-up.Preferably, it is 0 that the concluding time can be set, and expression does not have the concluding time, and namely backup operation is forever effective.
Concrete, backup cycle comprises the backup cycle that backs up according to the time interval that arranges, the backup cycle that perhaps backs up according to the time started that arranges.For example, when backing up according to the time interval that arranges, can arrange and back up once (N can be set to 10 minutes, 15 minutes, 30 minutes or 60 minutes) every N minute; When backing up according to the time started that arranges, if only backup once, the time started that this once backs up is set, if backup every day once, need to arrange time of specifically beginning to back up (time-minute-second) if the jede Woche automated back-up, can select some day or a few days from Monday to Sunday to back up, if backup every month once, can arrange specifically in which day backup.Need to prove, above-mentioned BACKUP TIME can arrange flexibly, and this embodiment of the present application is not limited.
Concrete, the Backup Data type is divided into two large classes, be respectively video file and other file, video file comprises that specifically Time(regularly records a video) file, the video recording of Motion Detection(mobile detection) file, the Alarm(video recording of reporting to the police) file, the video recording of Command(command triggers) file, Manual(manually records a video) file etc.; Other file comprises atm information, log information, intelligent data etc.Except log information, other data are all relevant with backup path, can set in advance each passage and be used for backing up dissimilar data.
Concrete, backup target equipment can be any one in following equipment: CDRW(Compact Disc ReWritable, can rewrite the formula CD), DVDRW(Digital Versatile Disc Rewritable, can rewrite the formula digital versatile disc), the USB hard disk, E-SATA(Extern Serial Advanced Technology Attachment, external serial ports hard disk) hard disk, E-SATA DAS(Direct Attached Storage, direct attached storage), NAS(Network Attached Storage, network attached storage) etc.
Step 202: according to the time interval inquiry back-up job table that sets in advance.
For example, can set in advance every 5 minutes polls with this back-up job table.
Step 203: judge that the current system time is whether in system production time, if execution in step 204; Otherwise, return to step 202.
Obtain the current system of DVR after the time, at first judge between the time started and concluding time of the system production time whether the current system time arranges in the back-up job table, if not, next poll entered; If so, execution in step 204.
Step 204: judge whether to start backup according to current system time and backup cycle, if execution in step 205; Otherwise, return to step 202.
For the different backup cycles that arrange, can judge whether to start backup according to following way of example:
If be disposable backup, judge the deviation of time started of current system time and disposable backup whether within 5 minutes, if would start backup;
If every backup in N minute once, judge that whether the time that the current system time deducts automated back-up last time surpass N minute, just start backup if surpass;
If every day backup once, judges that the deviation of the time started in current system time and back-up job table is whether within 5 minutes, if starting backup;
If jede Woche automated back-up, judge that the week of current system time is whether in the scope that arranges, and within 5 minutes, if in the scope that arranges, and deviation started backup to the deviation between the time started in current system time and back-up job table within 5 minutes;
If every month some day automated back-up once, judge whether the current system time is the some day of the every month of setting, and whether the deviation of the time started in current system time and back-up job table is within 5 minutes, if the some day of the every month that arranges, and deviation started backup within 5 minutes.
For above-mentioned judgement, if the current system time is not satisfied the backup cycle in the back-up job table, return to step 202, carry out the inquiry of a new round.
Step 205: judge whether DVR has connected backup target equipment, if execution in step 206; Otherwise, finish current flow process.
Step 206: judge current whether manually the backup, if finish current flow process; Otherwise, execution in step 207.
Step 207: according to backup cycle Search Backups passage, obtain Backup Data corresponding with the Backup Data type in backup path.
Step 208: search the available backup space in backup target equipment.
May have a plurality of subregions in backup target equipment, the minimum capacity of supposing each subregion is 512M, and we think the off-capacity of subregion less than this capacity, and the different subregion situations in the below's minute several backup target equipment describe:
If backup target equipment is not replace mode of single partition, if this subregion off-capacity finishes this automated back-up operation, if this subregion capacity is enough, carry out follow-up flow operations;
If backup target equipment is the single partition replace mode, with the subregion of this subregion as writing backup data;
If backup target equipment is not replace mode of multi partition, need to travel through all subregions, find the subregion that is written into the latest Backup Data.Concrete search procedure can be, begin traversal from first subregion, search all subregions, find the subregion at time file place the latest as the subregion of current beginning automated back-up, for example: subregion 1 has file 20090510, and subregion 2 has file 20090520, subregion 3 has file 20090519, subregion 4 has file 20090510, if data writing time file the latest at the 2nd subregion, traversing result is that the 2nd subregion is the subregion of last data writing.We judge the subregion capacity since the 2nd subregion, if having expired, subregion 2 judges the subregion capacity of subregion 3, if having expired, subregion 3 judges the subregion capacity of subregion 4, if having expired, subregion 4 judges the subregion capacity of subregion 1, until find a subregion that can back up, if can not find, finish current flow process;
If backup target equipment is the multi partition replace mode, with above-mentioned multi partition not unique difference of replace mode be, if after subregion 1 has been expired, we travel through 4 subregions, and search for data writing time file the earliest in all subregions, and deletion this document folder is (if the file of data writing has on 2 subregions the earliest, select sequence number the preceding subregion get final product), until enough spaces are arranged, the subregion that at first first available partition that then this is searched writes as this automated back-up in subregion.
Step 209: whether the capacity that judges the available backup space can writing backup data, if execution in step 210; Otherwise, finish current flow process.
Step 210: described Backup Data is write in the available backup space of described backup target equipment, finish current flow process.
In above-described embodiment, automatic search backup space and automatic writing backup data are interspersed processes together, and can first back up the video file in backup path, and then back up other file.
For example, can first search for the video file in first backup path of setting, after search is completed, judgement is whether video file and other file that needs backup is arranged in this backup path, if do not have, enters the operation of the next passage of search; If have, create a file, the naming method of file can be " date ", as June in 2009 automated back-up on the 17th file the name be called 090617, if file exists does not create, create again a sub-folder in this document folder, the name of sub-folder can be named according to the title of backup path, for example, the analogue back-up passage can called after " A+ channel number ", the IP backup path can called after " D+ channel number ", if the sub-folder of respective backup passage exists, does not create.
File and sub-folder back up according to the file of aforementioned search video file out by correspondence after creating successfully, after a video file backup finishes, are labeled as and back up, to prevent next time from repeating backup.
After order has backed up all video files of a backup path, then the video file of the next backup path of continuation backup; After if the video file backup of all backup path finishes, can sequentially continue to back up the alternative document of each backup path; If successfully backed up all data, finish this automated back-up, enter the cycling backup process of next time inquiring about the back-up job table.
In addition, the backup space that also can set in advance backup target equipment in above-described embodiment is write the operation after full, for example, can arrange to write and stops backup operation after full, perhaps arranges and writes the operation that the new Backup Data of Man Houyong covers the file that originally write.After the backup space that backup target equipment is set is write operation after full, in above-described embodiment after execution of step 207, directly execution in step 210.
Corresponding with the embodiment of the application DVR data back up method, the application also provides the embodiment of DVR data backup system and DVR.
Referring to Fig. 3, be the embodiment block diagram of the application DVR data backup system.
This DVR data backup system comprises: DVR310 and the backup target equipment 320 that is connected with described DVR310.
Wherein, DVR310 is used for setting in advance the back-up job table, described back-up job table comprises system production time, backup cycle, backup path, Backup Data type and backup target equipment, according to the described back-up job table of time interval inquiry that sets in advance, if the current system time is in described system production time, according to the described backup path of described backup cycle search, obtain Backup Data corresponding with described Backup Data type in described backup path, described Backup Data is write in the available backup space of described backup target equipment 320.
Further, DVR310 can also have following at least a kind of function:
Before the described backup path of described backup cycle search, judge whether to start backup according to described current system time and described backup cycle, if carry out described operation according to the described backup path of described backup cycle search; Otherwise, finish current flow process;
Before the described backup path of described backup cycle search, judge whether to have connected described backup target equipment 320, if carry out described operation according to the described backup path of described backup cycle search; Otherwise, finish current flow process;
Before the described backup path of described backup cycle search, judge current whether manually the backup, if finish current flow process; Otherwise, carry out described operation according to the described backup path of described backup cycle search;
After obtaining Backup Data corresponding with described Backup Data type in described backup path, search the available backup space in described backup target equipment 320; Whether the capacity that judges described available backup space can write described Backup Data, if carry out the operation in the described available backup space that described Backup Data is write described backup target equipment 320; Otherwise, finish current flow process.
Referring to Fig. 4, be the embodiment block diagram of the application DVR.
This DVR comprises: preset unit 410, query unit 420, search unit 430 and backup units 440.
Wherein, preset unit 410 is used for setting in advance the back-up job table, and described back-up job table comprises system production time, backup cycle, backup path, Backup Data type and backup target equipment;
Query unit 420 is used for according to the described back-up job table of time interval inquiry that sets in advance;
Search unit 430, if be used for the current system time of described query unit inquiry in described system production time, according to the described backup path of described backup cycle search, obtain Backup Data corresponding with described Backup Data type in described backup path;
Backup units 440 is used for described Backup Data is write in the available backup space of the described backup target equipment that is connected with described DVR.
Further, this DVR can also comprise (not shown in Fig. 4): start judging unit, be used for judging whether to start backup according to described current system time and described backup cycle, if carry out the function of described search unit 430; Otherwise, finish current operation.
Further, this DVR can also comprise (not shown in Fig. 4): the connection judgment unit is used for judging whether described DVR has connected described backup target equipment, if carry out the function of described search unit 430; Otherwise, finish current operation.
Further, this DVR can also comprise (not shown in Fig. 4): manual judging unit is used for judging current whether manually the backup, if finish current operation; Otherwise, carry out the function of described search unit 430.
Further, this DVR can also comprise (not shown in Fig. 4): the unit is searched in the space, is used for the available backup space of searching described backup target equipment; The space judging unit is used for judging whether the capacity in described available backup space can write described Backup Data, if carry out the function of described backup units 440; Otherwise, finish current operation.
Concrete, backup units 440 can comprise (not shown in Fig. 4): create the file unit, be used for creating file in described available backup space, and create respectively sub-folder for each backup path in described file; Corresponding writing unit is used for writing from the Backup Data that each backup path is obtained to should the sub-folder of backup path.
as seen through the above description of the embodiments, set in advance in the embodiment of the present application and comprised system production time, backup cycle, backup path, the back-up job table of Backup Data type and backup target equipment, according to the described back-up job table of time interval inquiry that sets in advance, if the current system time is in described system production time, according to the described backup path of described backup cycle search, obtain Backup Data corresponding with described Backup Data type in described backup path, described Backup Data is write in the available backup space of the described backup target equipment that is connected with described DVR.Use the embodiment of the present application, can be according to the pre-configured back-up job table of backup needs, and record a video data by DVR in external equipment according to the automated back-up that arranges of this back-up job table, for example, set in advance the data in certain time period of backup, therefore when the data that need this time period in, need not manually derivation from DVR again, but direct obtaining gets final product from backup has the external equipment of these data.
As seen through the above description of the embodiments, those skilled in the art can be well understood to the application and can realize by the mode that software adds essential general hardware platform.Based on such understanding, the part that the application's technical scheme contributes to prior art in essence in other words can embody with the form of software product, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprise that some instructions are with so that a computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of some part of each embodiment of the application or embodiment.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, and between each embodiment, identical similar part is mutually referring to getting final product, and each embodiment stresses is difference with other embodiment.Especially, for system embodiment, substantially similar in appearance to embodiment of the method, so description is fairly simple, relevant part gets final product referring to the part explanation of embodiment of the method due to it.
The application can be used in numerous general or special purpose computingasystem environment or configuration.For example: personal computer, server computer, handheld device or portable set, plate equipment, multicomputer system, the system based on microprocessor, set top box, programmable consumer-elcetronics devices, network PC, minicom, mainframe computer, comprise distributed computing environment (DCE) of above any system or equipment etc.
The application can describe in the general context of the computer executable instructions of being carried out by computer, for example program module.Usually, program module comprises the routine carrying out particular task or realize particular abstract data type, program, object, assembly, data structure etc.Also can put into practice the application in distributed computing environment (DCE), in these distributed computing environment (DCE), be executed the task by the teleprocessing equipment that is connected by communication network.In distributed computing environment (DCE), program module can be arranged in the local and remote computer-readable storage medium that comprises memory device.
Although described the application by embodiment, those of ordinary skills know, the application has many distortion and variation and the spirit that do not break away from the application, wish that appended claim comprises these distortion and variation and the spirit that do not break away from the application.

Claims (13)

1. a DVR data back up method, is characterized in that, sets in advance the back-up job table, and described back-up job table comprises system production time, backup cycle, backup path, Backup Data type and backup target equipment, comprising:
According to the described back-up job table of time interval inquiry that sets in advance;
If the current system time in described system production time, according to the described backup path of described backup cycle search, is obtained Backup Data corresponding with described Backup Data type in described backup path;
Described Backup Data is write in the available backup space of the described backup target equipment that is connected with described DVR, wherein, described backup target equipment is any external equipment with storage data function, the described mode that described Backup Data is write the available backup space comprises: if backup target equipment is not replace mode of single partition, if this subregion off-capacity, finish this automated back-up operation, if this subregion capacity is enough, carry out the step in the described available backup space that described Backup Data is write described backup target equipment; If backup target equipment is the single partition replace mode, with the subregion of this subregion as writing backup data; If backup target equipment is not replace mode of multi partition, need to travel through all subregions, find the subregion that is written into the latest Backup Data as the subregion of current beginning automated back-up, if can not find, finish current flow process; If backup target equipment is the multi partition replace mode, search for data writing time file the earliest in all subregions, and deletion this document folder, until enough spaces are arranged in subregion, then the subregion that at first first available partition that this is searched writes as this automated back-up, if can not find, finish current flow process.
2. method according to claim 1, is characterized in that, described backup cycle comprises:
The backup cycle that backs up according to the time interval that arranges; Or
According to the backup cycle that the time started that arranges backs up, the described time started comprises the time started of disposable backup, the time started of backup every day, the time started of jede Woche backup or the time started of backup every month.
3. method according to claim 1, is characterized in that, described Backup Data type comprises video file and other file,
Described video file comprises regularly video file, mobile detection video recording, the video recording of reporting to the police, command triggers video recording, manual at least a in video recording;
Described other file comprises at least a in atm information, log information, intelligent data.
4. method according to claim 1, is characterized in that, and is described according to also comprising before the described backup path of described backup cycle search:
Judge whether to start backup according to described current system time and described backup cycle, if carry out described step according to the described backup path of described backup cycle search; Otherwise, finish current flow process.
5. method according to claim 1, is characterized in that, and is described according to also comprising before the described backup path of described backup cycle search:
Judge whether to have connected described backup target equipment, if carry out described step according to the described backup path of described backup cycle search; Otherwise, finish current flow process.
6. method according to claim 1, is characterized in that, and is described according to also comprising before the described backup path of described backup cycle search:
Judge current whether manually the backup, if finish current flow process; Otherwise, carry out described step according to the described backup path of described backup cycle search.
7. method according to claim 1, is characterized in that, comprises in the described available backup space that described Backup Data is write the described backup target equipment that is connected with described DVR:
Create file in described available backup space;
Create respectively sub-folder for each backup path in described file;
The Backup Data that will obtain from each backup path writes in should the sub-folder of backup path.
8. a DVR data backup system, is characterized in that, comprising: DVR and the backup target equipment that is connected with described DVR,
described DVR, be used for setting in advance the back-up job table, described back-up job table comprises system production time, backup cycle, backup path, Backup Data type and backup target equipment, according to the described back-up job table of time interval inquiry that sets in advance, if the current system time is in described system production time, according to the described backup path of described backup cycle search, obtain Backup Data corresponding with described Backup Data type in described backup path, described Backup Data is write in the available backup space of described backup target equipment, wherein, described backup target equipment is any external equipment with storage data function, the described mode that described Backup Data is write the available backup space comprises: if backup target equipment is not replace mode of single partition, if this subregion off-capacity, finish this automated back-up operation, if this subregion capacity is enough, carry out the step in the described available backup space that described Backup Data is write described backup target equipment, if backup target equipment is the single partition replace mode, with the subregion of this subregion as writing backup data, if backup target equipment is not replace mode of multi partition, need to travel through all subregions, find the subregion that is written into the latest Backup Data as the subregion of current beginning automated back-up, if can not find, finish current flow process, if backup target equipment is the multi partition replace mode, search for data writing time file the earliest in all subregions, and deletion this document folder, until enough spaces are arranged in subregion, then the subregion that at first first available partition that this is searched writes as this automated back-up, if can not find, finish current flow process.
9. a DVR, is characterized in that, comprising:
Preset unit is used for setting in advance the back-up job table, and described back-up job table comprises system production time, backup cycle, backup path, Backup Data type and backup target equipment;
Query unit is used for according to the described back-up job table of time interval inquiry that sets in advance;
Search unit if the current system time that is used for described query unit inquiry in described system production time, is searched for described backup path according to described backup cycle, obtains Backup Data corresponding with described Backup Data type in described backup path;
Backup units is used for described Backup Data is write in the available backup space of the described backup target equipment that is connected with described DVR, and wherein, described backup target equipment is any external equipment of storing data function that has;
The unit is searched in the space, is used for the available backup space of searching described backup target equipment;
The space judging unit is used for judging whether the capacity in described available backup space can write described Backup Data, if carry out the function of described backup units; Otherwise, finish current operation, described judgment mode comprises: if backup target equipment is not replace mode of single partition, if this subregion off-capacity, finish this automated back-up operation, if this subregion capacity is enough, carry out the step in the described available backup space that described Backup Data is write described backup target equipment; If backup target equipment is the single partition replace mode, with the subregion of this subregion as writing backup data; If backup target equipment is not replace mode of multi partition, need to travel through all subregions, find the subregion that is written into the latest Backup Data as the subregion of current beginning automated back-up, if can not find, finish current flow process; If backup target equipment is the multi partition replace mode, search for data writing time file the earliest in all subregions, and deletion this document folder, until enough spaces are arranged in subregion, then the subregion that at first first available partition that this is searched writes as this automated back-up, if can not find, finish current flow process.
10. DVR according to claim 9, is characterized in that, also comprises:
Start judging unit, be used for judging whether to start backup according to described current system time and described backup cycle, if carry out the function of described search unit; Otherwise, finish current operation.
11. DVR according to claim 9 is characterized in that, also comprises:
The connection judgment unit is used for judging whether described DVR has connected described backup target equipment, if carry out the function of described search unit; Otherwise, finish current operation.
12. DVR according to claim 9 is characterized in that, also comprises:
Manually judging unit, be used for judging current whether manually the backup, if finish current operation; Otherwise, the function of the described search unit of execution.
13. DVR according to claim 10 is characterized in that, described backup units comprises:
Create the file unit, be used for creating file in described available backup space, and create respectively sub-folder for each backup path in described file;
Corresponding writing unit is used for writing from the Backup Data that each backup path is obtained to should the sub-folder of backup path.
CN 200910168395 2009-09-02 2009-09-02 DVR (Digital Video Recorder) as well as data backup method and system thereof Active CN101873457B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910168395 CN101873457B (en) 2009-09-02 2009-09-02 DVR (Digital Video Recorder) as well as data backup method and system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910168395 CN101873457B (en) 2009-09-02 2009-09-02 DVR (Digital Video Recorder) as well as data backup method and system thereof

Publications (2)

Publication Number Publication Date
CN101873457A CN101873457A (en) 2010-10-27
CN101873457B true CN101873457B (en) 2013-05-15

Family

ID=42998085

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910168395 Active CN101873457B (en) 2009-09-02 2009-09-02 DVR (Digital Video Recorder) as well as data backup method and system thereof

Country Status (1)

Country Link
CN (1) CN101873457B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102541683B (en) * 2010-12-31 2015-07-15 北大方正集团有限公司 Data file backup method and data file backup device
CN102622430B (en) * 2012-02-24 2013-10-09 福建星网视易信息系统有限公司 Method for dilatation management of one-machine demand system device based on universal serial bus (USB) interfaces
CN103578511A (en) * 2012-08-07 2014-02-12 深圳市宏电技术股份有限公司 File export method of hard disk video and hard disk video
CN105718332A (en) * 2013-05-23 2016-06-29 青岛海信移动通信技术股份有限公司 Intelligent terminal and data backup method thereof
CN104754266B (en) * 2013-12-30 2018-11-13 杭州海康威视数字技术股份有限公司 Intelligent FTP backups kinescope method and system
CN104702872B (en) * 2014-02-12 2018-11-13 杭州海康威视数字技术股份有限公司 A kind of backup method and device of video file
CN105353986B (en) * 2015-11-11 2018-04-03 东莞福泽尔电子科技有限公司 A kind of naked disk storage file system of vehicle-mounted DVR
CN105956194A (en) * 2016-06-18 2016-09-21 张阳康 Processing method of electric energy network data
CN106569920B (en) * 2016-11-09 2020-12-11 腾讯科技(深圳)有限公司 Database backup method and device
CN108038025A (en) * 2017-10-30 2018-05-15 捷开通讯(深圳)有限公司 Tachographs backup method, intelligent terminal and the device with store function
CN109951662B (en) * 2017-12-20 2022-06-14 浙江宇视科技有限公司 Video backup method and system
CN108628706B (en) * 2018-05-02 2021-08-17 北京新桥信通科技股份有限公司 Data backup method, device, system and storage medium
CN113015963A (en) * 2018-12-04 2021-06-22 深圳迈瑞生物医疗电子股份有限公司 Automatic backup method, equipment and computer storage medium
CN109766325B (en) * 2019-01-09 2019-09-17 吴思齐 A kind of distributed file system and flow data wiring method towards flow data
CN114694696B (en) * 2022-03-17 2024-01-23 深圳市宏电技术股份有限公司 Mechanical hard disk shockproof method and device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1997132A (en) * 2006-07-14 2007-07-11 深圳创维-Rgb电子有限公司 Recordable TV and recording method of TV program
CN101198037A (en) * 2008-01-03 2008-06-11 中兴通讯股份有限公司 Method for managing monitor video
CN101232595A (en) * 2007-01-24 2008-07-30 上海乐金广电电子有限公司 Device and method for setting record time table of digital video recorder
CN101437131A (en) * 2008-12-31 2009-05-20 中兴通讯股份有限公司 Method and apparatus for customizing frontend picture recording of video monitoring system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009100368A (en) * 2007-10-18 2009-05-07 Hitachi Ltd Digital broadcasting recording device and recording method therefor

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1997132A (en) * 2006-07-14 2007-07-11 深圳创维-Rgb电子有限公司 Recordable TV and recording method of TV program
CN101232595A (en) * 2007-01-24 2008-07-30 上海乐金广电电子有限公司 Device and method for setting record time table of digital video recorder
CN101198037A (en) * 2008-01-03 2008-06-11 中兴通讯股份有限公司 Method for managing monitor video
CN101437131A (en) * 2008-12-31 2009-05-20 中兴通讯股份有限公司 Method and apparatus for customizing frontend picture recording of video monitoring system

Also Published As

Publication number Publication date
CN101873457A (en) 2010-10-27

Similar Documents

Publication Publication Date Title
CN101873457B (en) DVR (Digital Video Recorder) as well as data backup method and system thereof
DE69922338T2 (en) FILE SYSTEMS WITH THE SUPPORT OF COMMON USE OF DATA
CN1331063C (en) On-line data backup method based on data volume snapshot
CN104040481B (en) Method and system for merging, storing and retrieving incremental backup data
US7917472B2 (en) Method, system and computer-readable media for backing up information contained in a database
CN100498796C (en) Logic log generation method, database backup/ restoration method and system
US20070027935A1 (en) Backing up source files in their native file formats to a target storage
US20060015888A1 (en) Method of searching for clip differences in recorded video data of a surveillance system
CN103248853A (en) Method, equipment and system for achieving video retrieval
EP2801943A1 (en) A system and method for generating a chronological timesheet
US7415585B1 (en) Space-optimized backup repository grooming
JP2006510984A (en) Pre-configured backup DVD-RWS
US7941619B1 (en) Space-optimized backup set conversion
CN100448281C (en) Information recording/reproduction device and recording system thereof
CN104065906B (en) Video recording method and device of digital video recording equipment
CN103970533A (en) Method and device for recording captured information on screen
US8538925B2 (en) System and method for backing up test data
CN109491834B (en) Data recovery method and device applied to database
CN101808243B (en) Data processing method and device based on snapshot
EP1542229A3 (en) Method and apparatus for controlling data recording, recording medium, and computer program
CN115454717A (en) Database real-time backup method and device, computer equipment and storage medium
US20040141723A1 (en) Editing apparatus
CN115408200A (en) Data backup method and device for multiple storage engines, electronic equipment and storage medium
CN111611107A (en) Method and device for acquiring database logs
CN105843607A (en) Information displaying method and device

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