Summary of the invention
The method, device and the subscriber equipment that the invention provides a kind of media file backup, can either effectively reduce costs, and can simplify again the troublesome operation that user backs up.
A first aspect of the present invention, a kind of method that provides media file to back up, the method comprises:
Scan the media file of storing on the first memory device, to determine whether described media file has vital document mark;
If described media file has vital document mark, obtain described media file directory information;
According to described media file directory information, described media file is backuped on the second memory device.
In the possible implementation of the first of first aspect, described media file comprises at least one in audio media files, video media file and picture file.
In conjunction with the possible implementation of the first of first aspect or first aspect, in the possible implementation of the second of first aspect, the media file of storing on described scanning the first memory device, before determining whether described media file has vital document mark, the method also comprises:
Receive preservation or the out code of user to media file;
Send vital document mark prompting to described user, to point out described user whether as described preservation or the media file marking value documents mark of closing;
Receive the marking value documents mark instruction that user sends according to described vital document mark prompting;
For described preservation or the media file marking value documents mark of closing.
In conjunction with the possible implementation of the first of first aspect or first aspect, in the third possible implementation of first aspect, the media file of storing on described scanning the first memory device, before determining whether described media file has vital document mark, the method also comprises:
Receive the edit instruction of user to media file;
According to described edit instruction, display media Document Editing option, described media file editing options comprises marking value documents mark option;
Receive the selection instruction of user to marking value documents mark option;
For described editor's media file marking value documents mark.
In conjunction with the possible implementation of the first of first aspect or first aspect, in the 4th kind of possible implementation of first aspect, the media file of storing on described scanning the first memory device, before determining whether described media file has vital document mark, the method also comprises:
Receive preservation or the out code of user to media file;
Send vital document mark prompting to described user, to point out described user whether as described preservation or the media file marking value documents mark of closing;
Receive the marking value documents mark instruction that user sends according to described vital document mark prompting;
For described preservation or the media file marking value documents mark of closing;
And
Receive the edit instruction of user to media file;
According to described edit instruction, display media Document Editing option, described media file editing options comprises marking value documents mark option;
Receive the selection instruction of user to marking value documents mark option;
For described editor's media file marking value documents mark.
In conjunction with three kinds of possible implementations of the possible implementation of the second of the possible implementation of the first of first aspect or first aspect or first aspect or first aspect or the 4th kind of possible implementation of first aspect, in the 5th kind of possible implementation of first aspect, the media file of storing on described scanning the first memory device, to determine whether described media file is marked with vital document mark and comprises:
Receive user's scan instruction, described scan instruction indication scans the media file of storing on described the first memory device;
According to described user's scan instruction, scan the media file of storing on described the first memory device, to determine whether described media file is marked with vital document mark;
Or
Determine that user edits the media file of described the first memory device, stores;
Scan the edited described media file of described user, to determine whether the edited media file of described user is marked with vital document mark;
Or
According to the scan period setting in advance, the media file of storing on scanning the first memory device, to determine whether described media file is marked with vital document mark.
In conjunction with any one implementation in above-mentioned each possible implementation of first aspect or first aspect, in the 6th kind of possible implementation of first aspect:
In described the first memory device, be provided with the first back-up storage district;
If described media file is marked with vital document mark, after obtaining the directory information of described media file, according to the directory information of described media file, before described media file is backuped on the second memory device, described method also comprises:
The directory information of the described described media file obtaining is placed into the first back-up storage district of described the first memory device;
In this case, described according to the directory information of described media file, described media file is backuped on the second memory device and comprised:
Described in reading, be placed on the directory information in described the first back-up storage district;
According to the described described directory information reading, media file corresponding described directory information is backuped on described the second memory device.
In conjunction with any one implementation in above-mentioned each possible implementation of first aspect or first aspect, in the 7th kind of possible implementation of first aspect, the method also comprises:
Scan the media file of storing on the second memory device, to determine whether described media file is marked with vital document mark;
If described media file is marked with vital document mark, obtain the directory information of described media file;
According to the directory information of described media file, described media file is backuped on the first memory device.
In conjunction with the 7th kind of possible implementation of first aspect, in the 8th kind of possible implementation of first aspect:
In described the first memory device, be provided with the second back-up storage district, described according to the directory information of described media file, described media file is backuped on the first memory device and comprised:
According to the directory information of described media file, described media file is backuped to the second back-up storage district on the first memory device.
In conjunction with any one implementation in above-mentioned each possible implementation of first aspect or first aspect, in the 9th kind of possible implementation of first aspect, described according to the directory information of described media file, after described media file is backuped on the second memory device, the method also comprises:
Determine that the first memory device is replaced by the 3rd memory device by described user;
Backup to media file on described the second memory device, described the first memory device, stores and be synchronized on described the 3rd memory device described.
In conjunction with any one implementation in above-mentioned each possible implementation of first aspect or first aspect, in the tenth kind of possible implementation of first aspect, the method also comprises:
Detect the duty of described the first memory device;
If described the first memory device is in abnormal work state:
Send memory device switch prompting to user, to point out described user to carry out memory device switching; Receive user's memory device switching command; According to described memory device switching command, described the first memory device is switched to described the second memory device;
Or
Automatically described the first memory device is switched to described the second memory device.
A second aspect of the present invention, the device that provides a kind of media file to back up, this device comprises:
Scanning element, for scanning the media file of storing on the first memory device, to determine whether described media file is marked with vital document mark;
Acquiring unit, if be marked with vital document mark for the media file of described scanning element scanning, obtains the directory information of described media file;
Backup units, for the directory information of the media file that obtains according to described acquiring unit, backups to described media file on the second memory device.
In the possible implementation of the first of second aspect, the media file of described scanning element scanning comprises at least one in audio media files, video media file and picture file.
In conjunction with the possible implementation of the first of second aspect or second aspect, in the possible implementation of the second of second aspect, described device also comprises indexing unit, for:
Receive preservation or the out code of user to media file;
Send vital document mark prompting to described user, to point out described user whether as described preservation or the media file marking value documents mark of closing;
Receive the marking value documents mark instruction that user sends according to described vital document mark prompting;
For described preservation or the media file marking value documents mark of closing.
In conjunction with the possible implementation of the first of second aspect or second aspect, in the third possible implementation of second aspect, described device also comprises indexing unit, for:
Receive the edit instruction of user to media file;
According to described edit instruction, display media Document Editing option, described media file editing options comprises the option of marking value documents mark;
Receive the selection instruction of the option of user to described marking value documents mark;
For described editor's media file marking value documents mark.
In conjunction with the possible implementation of the first of second aspect or second aspect, in the 4th kind of possible implementation of second aspect, described device also comprises indexing unit, for:
Receive preservation or the out code of user to media file;
Send vital document mark prompting to described user, to point out described user whether as described preservation or the media file marking value documents mark of closing;
Receive the marking value documents mark instruction that user sends according to described vital document mark prompting;
For described preservation or the media file marking value documents mark of closing;
And
Receive the edit instruction of user to media file;
According to described edit instruction, display media Document Editing option, described media file editing options comprises the option of marking value documents mark;
Receive the selection instruction of the option of user to described marking value documents mark;
For described editor's media file marking value documents mark.
In conjunction with the third possible implementation of the possible implementation of the second of the possible implementation of the first of second aspect or second aspect or second aspect or second aspect or the 4th kind of possible implementation of second aspect, in the 5th kind of possible implementation of second aspect, described scanning element specifically for:
Receive user's scan instruction, described scan instruction indication scans the media file of storing on described the first memory device;
According to described user's scan instruction, scan the media file of storing on described the first memory device, to determine whether described media file is marked with vital document mark;
Or
Determine that user edits the media file of described the first memory device, stores;
Scan the edited described media file of described user, to determine whether the edited media file of described user is marked with vital document mark;
Or
According to the scan period setting in advance, the media file of storing on scanning the first memory device, to determine whether described media file is marked with vital document mark.
In conjunction with any one implementation in above-mentioned each possible implementation of second aspect or second aspect, in the 6th kind of possible implementation of second aspect, in described the first memory device, be provided with the first back-up storage district, described device also comprises:
The first buffer unit, is placed into the first back-up storage district of described the first memory device for the directory information of described media file that described acquiring unit is obtained;
In this case, described backup units specifically for:
Read the directory information that described the first buffer unit is placed on described the first back-up storage district;
According to the described described directory information reading, media file corresponding described directory information is backuped on described the second memory device.
In conjunction with any one implementation in above-mentioned each possible implementation of second aspect or second aspect, in the 7th kind of possible implementation of second aspect, described scanning element is also for scanning the media file of storing on the second memory device, to determine whether described media file is marked with vital document mark; If described acquiring unit is also marked with vital document mark for described media file, obtain the directory information of described media file; Described backup units also, for according to the directory information of described media file, backups to described media file on the first memory device.
In conjunction with the 7th kind of possible implementation of second aspect, in the 8th kind of possible implementation of second aspect, in described the first memory device, be provided with the second back-up storage district, described backup units, specifically for according to the directory information of described media file, backups to the second back-up storage district on the first memory device by described media file.
In conjunction with any one implementation in above-mentioned each possible implementation of second aspect or second aspect, in the 9th kind of possible implementation of second aspect, this device also comprises:
Determining unit, for determining that the first memory device is replaced by the 3rd memory device by described user;
Described backup units is also for backuping to media file on described the second memory device, described the first memory device, stores and be synchronized to described the 3rd memory device described.
In conjunction with any one implementation in above-mentioned each possible implementation of second aspect or second aspect, in the tenth kind of possible implementation of second aspect, this device also comprises:
Detecting unit, for detection of the duty of described the first memory device;
Switch unit, for:
If described detecting unit detects that described the first memory device is in abnormal work state:
Send memory device switch prompting to user, to point out described user to carry out memory device switching;
Receive user's memory device switching command;
According to described memory device switching command, described the first memory device is switched to described the second memory device;
Or
If described the first memory device, in abnormal work state, switches to described the second memory device by described the first memory device automatically.
A third aspect of the present invention, provides a kind of subscriber equipment, and this equipment comprises:
The first memory device, the second memory device and media file back-up device;
Described media file back-up device is connected with the second memory device with described the first memory device respectively, for:
Scan the media file of storing on the first memory device, to determine whether described media file is marked with vital document mark;
If described media file is marked with vital document mark, obtain the directory information of described media file;
According to the directory information of described media file, described media file is backuped on the second memory device.
In conjunction with the third aspect, in the possible implementation of the first, described the first memory device comprise following any one: hard disk, floppy disk, USB flash disk, CD, portable hard drive, disk or storage card;
Described the second memory device comprise following any one: hard disk, floppy disk, USB flash disk, CD, portable hard drive, disk or storage card.
In conjunction with the possible implementation of the first of the third aspect or the third aspect, in the possible implementation of the second of the third aspect, this subscriber equipment comprises mobile phone, computer, panel computer, personal digital assistant.
The method of media file backup of the present invention, device and subscriber equipment, scan the media file of storing on the first memory device, in the time that described media file is marked with vital document mark, according to the directory information of this file, this media file is backuped on the second memory device, that is to say, back-up device can automatic benchmarking's note have the media file of important media file mark to back up, only need user to carry out mark to important media file, complete backup without operations such as user manually copy, therefore effectively simplified the troublesome operation that user backs up, and without increasing any chip, effectively reduce cost.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Based on the embodiment in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of method of media file backup, carried out by subscriber equipment, specifically carried out by the media file back-up device arranging in subscriber equipment, described subscriber equipment comprises the first memory device and the second memory device, why type the embodiment of the present invention does not limit the first memory device and the second memory device memory device, for example, the first memory device and the second memory device can be all following any one memory devices: hard disk, floppy disk, USB flash disk, CD, portable hard drive, disk, storage card, as shown in Figure 1, the method of the media file backup that the embodiment of the present invention provides comprises the following steps:
S11, the media file of storing on scanning the first memory device, to determine whether described media file is marked with vital document mark.
First it should be noted that, in this step, the media file scanning is at least one media file of storing on the first memory device.
For example, in this step, described media file can comprise at least one in audio media files, video media file and picture file.Wherein, audio media files refers to the file of stored sound content, and such as form is the file of MP3, CD, WAVE (* .WAV), WMA, RealAudio etc.; Video media file refers to the file of the various dynamic image contents of storage, and such as form is the file of WMV, AVI, MP4, RM/RMVB, kmv etc.; And picture file refers to the file of the various tangible things contents of storage, such as form is the file of JPEG, TIFF, BMP, GIF, PNG etc.
Obviously, described media file can be also the media file of other types, and the present invention does not limit this.
Be understandable that, that the media file of storing in the first memory device comprises is very important for user, user wants the permanent media file of preserving, in order to guarantee the security of this part media file, in the backup method that the embodiment of the present invention provides, before this step is S11 step, user will be these important media file marking value documents marks.For example, subscriber equipment can provide vital document option for media file, thereby user can be by choosing this option for this media file marking value documents mark; Again for example, subscriber equipment can receive user, and to want mark media file be the instruction of vital document, receiving after this instruction, subscriber equipment adds vital document mark in the attribute information of this media file, the vital document mark that has been this media file mark.Like this, in this step, subscriber equipment can, by scanning, find these important media files, and then these important media files are backed up, and effectively guarantees the security of these media files.
Concrete, this step can have three kinds of specific implementations, as follows respectively:
One, in one embodiment of the invention, subscriber equipment can receive user's scan instruction, and described scan instruction is indicated in the situation that the media file of storing on described the first memory device is scanned, according to user's scan instruction, scan the media file of storing on described the first memory device, to determine whether described media file is marked with vital document mark; That is to say, this step can be carried out according to user's wish, and user can, according to the actual needs of oneself, issue scan instruction at any time.For example, subscriber equipment can provide for user the function choosing-item of scanning medium file, in the time that user selects this function choosing-item, starts to carry out this step.
Its two, subscriber equipment can be according to the scan period setting in advance, the media file of storing on scanning the first memory device, to determine whether described media file is marked with vital document mark.The length of this scan period setting in advance is not limit, and can arrange arbitrarily, and for example 1 day, 1 week, 2 weeks, one month etc., this scan period can be that user sets in advance, and can be also the default setting of subscriber equipment.
They are three years old, subscriber equipment can the operation of Real-Time Monitoring user to the media file of storing on the first memory device, determine that user operates the media file of the first memory device, stores once monitor, the media file that scanning user was operated, to determine whether the media file that user operated is marked with vital document mark.Here " operation " that the subscriber equipment sayed is monitored, can comprise that user pastes new media file in the first memory device, user opens in the first memory device and originally after the media file of storage, closes, or, user revises the content of the media file of originally storing in the first memory device, or user revises attribute of the media file of originally storing in the first memory device etc., the present invention does not limit this.For instance, in the first memory device, paste new media file once subscriber equipment detects user, will start to scan this new media file, to determine whether this media file is marked with vital document mark.
Be understandable that, in one embodiment of the invention, at least two kind modes of subscriber equipment in can compatible above-mentioned three kinds of modes scan.
It should be noted that the present invention does not limit the specific implementation of this step, can be at least one in above three kinds of modes, can also be other scan modes.
In this step, if user equipment scans is marked with vital document mark to media file, execution step S12, and the media file identifying for unmarked vital document, subscriber equipment can not carry out any processing.
S12, if described media file is marked with vital document mark, obtains the directory information of described media file.
It should be noted that, in the embodiment of the present invention, directory information refers to the routing information that on memory device, media file is deposited.For example, the directory information of certain media file be " E: Beijing Company research and development department 1 communication set work courseware .wma ".
Concrete, subscriber equipment can read the attribute information of the media file that is marked with vital document mark, obtain the directory information of this file, certainly, subscriber equipment can also have other to obtain the mode of directory information, the embodiment of the present invention does not limit this, specifically can, referring to prior art, repeat no more here.
S13, according to the described media file directory information obtaining, backups to described media file on the second memory device.
On the second memory device, can be provided with special back-up storage district, in this step, subscriber equipment can backup to the media file that is marked with vital document mark in the back-up storage district in the second memory device.
The method of the media file backup of the embodiment of the present invention, scan the media file of storing on the first memory device, in the time that described media file is marked with vital document mark, according to the directory information of this file, this media file is backuped on the second memory device, that is to say, can automatic benchmarking's note there is the media file of important media file mark to back up, so, only need user to carry out mark to important media file, complete backup without operations such as user manually copy, therefore effectively simplified the troublesome operation that user backs up, can also avoid preferably forgeing or omitting the File lose causing due to user, effectively guarantee the security of backup, thereby obviously improving user experiences, and without increasing any chip, effectively reduce cost.
Be understandable that, in the embodiment of the present invention, before S11 step, the vital document marking value documents mark that user need to think to it, that is to say, subscriber equipment need to, under user's indication, be media file marking value documents mark according to user's requirement, is that the important media file mark of media file mark is elaborated below to subscriber equipment.
Concrete, in the backup method of the media file providing in the embodiment of the present invention, subscriber equipment comprises following two kinds to the method for the important media file mark of media file mark, but is not limited to following two kinds:
One:
In the time that user need to close media file; user can click the X button of this media file conventionally; issue out code; at this moment; subscriber equipment can be in the time receiving user to the out code of media file; send the prompting of vital document mark to described user; for example; eject a dialog box; in dialog box, show: whether be this file marking value documents mark; and provide the OptionButton of "Yes" and "No", point out user whether as its media file marking value documents mark of closing to inquire.If user thinks that this file is important, to send the instruction of marking value documents mark according to the prompting of vital document mark, for example, click the "Yes" button in dialog box, equipment for indicating user is this media file marking value documents mark, subscriber equipment receives after this instruction, the media file marking value documents of closing for user identifies, certainly, if user thinks that this file is inessential, without mark, can send without mark instructions according to the prompting of vital document mark, for example, click the "No" button in dialog box, equipment for indicating user need not be this media file marking value documents mark.
Be understandable that, this mode is not limited to user in the time closing media file, can also realize on other opportunitys, for example, in the time that user preserves media file, for example, user is modifying to a media file etc. after operation, conventionally can click save button or drop-down menu " save option ", issue and hold instruction, subscriber equipment can be in the time receiving user to the holding instruction of media file, eject the prompting of vital document mark, thereby point out according to vital document mark under the instruction issuing user, carry out marking operation or do not carry out marking operation, here repeat no more.
It should be noted that, for example, what subscriber equipment sent vital document mark prompting to user can be the form that ejects dialog box, to inquire whether mark of user, if user thinks mark, selects to be, otherwise selects no.Certainly, the prompting mode of subscriber equipment is not limited to this mode, can also be other modes.
Its two:
When user runs into it at every turn and thinks important media file, can adopt the mode that this media file is edited, be this media file marking value documents mark.Concrete, user will issue the edit instruction for this media file to subscriber equipment, in the embodiment of the present invention, described edit instruction can refer to that user wants any operation of editing media file, for example, click the mouse at the icon place of the media file operation of right button of user, user clicks operation of button etc. arbitrarily in the toolbar of media file or menu bar, in the time that subscriber equipment detects user's this operation, to operate corresponding media file editing options with user for user shows, for example, eject drop-down menu, this drop-down menu comprises at least one editing options, comprise at least one shown editing options the option that marking value documents identifies, the option of user by selecting marking value documents mark carrys out this media file of mark, it is the selection instruction that subscriber equipment receives the option of user to described marking value documents mark, thereby be the media file marking value documents mark that user edits according to this instruction.
For example, user's edit instruction can be chosen certain media file for user first clicks left button, then clicks right button, at this moment, subscriber equipment will demonstrate editing options menu, and comprising " vital document mark " option, and then user chooses this option to carry out mark to this media file.
Again for example, user's edit instruction can be clicked a certain Edit button in the menu bar of certain media file for user, subscriber equipment will demonstrate drop-down option menu, and comprising " vital document mark " option, and then user chooses this option to carry out mark to this media file.
Be understandable that, in one embodiment of the invention, subscriber equipment can compatible above-mentioned two kinds of modes come for media file marking value documents mark.
Be understandable that, in the embodiment of the present invention, before the media file in the first memory device is backuped to the second memory device, need to first scan the media file that is marked with important mark, and whether media file marking value documents mark be relied on to manually completing of user.Therefore, how media file being carried out to vital document mark, is important to user.In embodiments of the present invention, for user, above-mentioned two kinds of modes are simple to operate, experience thereby can obviously improve user.
Concrete, in one embodiment of the invention, in the first memory device, can be provided with a special storage area, in the embodiment of the present invention, be referred to as the first back-up storage district, for storing the directory information that subscriber equipment obtains in S12 step, that is to say, after S12 step, before S13 step, described method also can comprise the following steps:
The directory information of the described media file obtaining is placed into the first back-up storage district of described the first memory device;
Now, in S13 step, concrete, by being placed on the directory information in the first back-up storage district described in reading, according to the described directory information reading, media file corresponding described directory information is backuped on described the second memory device.
Further, in one embodiment of the invention, subscriber equipment not only can backup to the media file of storing on the first memory device on the second memory device, also the media file of the second memory device can be backuped on the first memory device, that is to say, the backup method of the media file that the embodiment of the present invention provides also can comprise the following steps:
Scan the media file of storing on the second memory device, to determine whether described media file is marked with vital document mark;
If described media file is marked with vital document mark, obtain the directory information of described media file;
According to the directory information of described media file, described media file is backuped on the first memory device.
Understandable, for how the media file on the second memory device being backuped on the first memory device, and how the media file on the second memory device is carried out the modes such as mark all with the media file of the first memory device to be backuped to the mode adopting in the process of the second memory device identical, be about to media file on the second memory device backup to specific implementation process on the first memory device with the media file of the first memory device is backuped to the specific implementation process on the second memory device, specifically refer to embodiment above, therefore not to repeat here.
It should be noted that, at subscriber equipment, the media file of storing on the first memory device is backuped on the second memory device, also the media file of the second memory device is backuped in the situation on the first memory device, in the first memory device, can be provided with a special memory block, in the embodiment of the present invention, be referred to as the second back-up storage district, back up the media file on the first memory device for storing the second memory device, now, above-mentioned according to the directory information of described media file, the step that described media file is backuped on the first memory device is specially:
According to the directory information of described media file, described media file is backuped to the second back-up storage district on the first memory device.
It should be noted that, in the time being provided with aforesaid the first back-up storage district and the second back-up storage district in the first memory device simultaneously, both can be identical memory block, on the first memory device, be provided with a special memory block, both be used for storing the directory information obtaining in S12 step, and be used for again storing the second memory device and back up the media file on the first memory device, certainly, both can be also self-existent two storage areas of difference, and the present invention does not limit this.
Further, in one embodiment of the invention, after S13 step, if the abnormal conditions such as the first memory device is damaged, user need to change the first memory device, and user can dismantle the first memory device from subscriber equipment, is replaced by the 3rd memory device, in this case, the file backup method that the embodiment of the present invention provides also can comprise the following steps:
Determine that the first memory device is replaced by the 3rd memory device by described user;
Backup to media file on described the second memory device, described the first memory device, stores and be synchronized on described the 3rd memory device described.
Concrete, check and confirm that the first memory device cannot use through user, or the first memory device be cannot meet user's user demand time, the first memory device is replaced by the 3rd memory device by user.Replace with the 3rd memory device user, and subscriber equipment identifies after this memory device, find that this memory device is different from the first memory device, determine that the first memory device is replaced by the 3rd memory device by user, will be synchronized on described the 3rd memory device originally backuping to media file on the second memory device, the first memory device, stores.
Further, experience in order further to promote user, in one embodiment of the invention, the file backup method that the embodiment of the present invention provides also can comprise the following steps:
Detect the duty of described the first memory device;
If detect that described the first memory device is in abnormal work state, subscriber equipment can send memory device switch prompting to user, to point out described user to carry out memory device switching; Receiving after user's memory device switching command, subscriber equipment will, according to described memory device switching command, switch to the second memory device by the first memory device; Subscriber equipment also can directly switch to described the second memory device by described the first memory device automatically.
Concrete, subscriber equipment is in real time or according to the duty that sets in advance regular detection the first memory device, if subscriber equipment detects that described the first memory device is in abnormal work state, for example, user cannot open the multiple original openable media file on the first memory device, or opening after the multiple media files on the first memory device cannot normal play, now, the first memory device is switched to the second memory device by subscriber equipment, so that user opens the backup media file on the second memory device.Switching mode can have following two kinds:
Mode one is that subscriber equipment sends memory device switch prompting to user, to point out described user to carry out memory device switching.Then subscriber equipment receives user's memory device switching command, according to memory device switching command, the first memory device is switched to the second memory device, thereby makes user can open the media file backing up of the first memory device on the second memory device.
Mode two is that subscriber equipment switches to the second memory device by the first memory device automatically, thereby makes user can open the media file backing up of the first memory device on the second memory device.
In sum, the method of the media file backup of the embodiment of the present invention, scan the media file of storing on the first memory device, in the time that described media file is marked with vital document mark, according to the directory information of this file, this media file is backuped on the second memory device, that is to say, subscriber equipment can automatic benchmarking's note have the media file of important media file mark to back up, so, only need user to carry out mark to important media file, complete backup without operations such as user manually copy, therefore effectively simplified the troublesome operation that user backs up, can also avoid preferably forgeing or omitting the File lose causing due to user, effectively guarantee the security of backup, thereby obviously improving user experiences.
For those skilled in the art better understand the technical scheme of the method for the media file backup that the embodiment of the present invention provides, below by specific embodiment, the method for media file backup provided by the invention is elaborated.
In a specific embodiment of the present invention, shown in Fig. 2 and Fig. 3, subscriber equipment comprises two memory devices, respectively hard disk 1 (the first memory device) and hard disk 2 (the second memory device), on hard disk 1, comprise three media files, be respectively media file A, media file B, media file C, and on hard disk 1, be provided with catalogue back-up storage district (the first back-up storage district), the backup method of the media file of the present embodiment comprises the steps:
10, user browses the media file on hard disk 1, finds that media file A is important for user, and user's equipment for indicating user is media file A marking value documents mark.
20, subscriber equipment receives the indication of user to media file A marking value documents mark, and this media file A marking value documents is identified.
For example, user can click the mouse right button to issue an edit instruction at the icon place of media file A, subscriber equipment is ejecting drop-down menu, this drop-down menu comprises at least one editing options, comprise at least one shown editing options the option that marking value documents identifies, the option of user by selecting marking value documents mark carrys out mark media file A, and after the selection that receives user, subscriber equipment is media file A marking value documents mark.
21, the media file of storage on user equipment scans hard disk 1, determines that media file A is marked with vital document mark.
Concrete, in this step, subscriber equipment can be to carry out under user's indication to the scanning of hard disk 1, also can be that timing automatic is carried out, can also be that special event triggers, the a certain operation that special event can be for example user to the media file of storage on hard disk 1, concrete example has been revised the media file of storage on hard disk 1 as user, and the present embodiment does not limit this.
22, subscriber equipment obtains the directory information A* of the media file A that is marked with vital document mark, its directory information A* is placed in the catalogue back-up storage district of hard disk 1.
23, subscriber equipment reads the directory information A* placing in catalogue back-up storage district, according to the directory information A* reading, media file A is backuped on hard disk 2.
After this step, the backup file A ' of media file A will be stored on hard disk 2.
Optionally, can be provided with specially the back-up storage region of the backup file of the media file on storage hard disk 1 in hard disk 2, like this, in step 23, subscriber equipment just can be by the backup file A ' of media file A by the back-up storage region being stored on hard disk 2.
In another specific embodiment of the present invention, shown in Fig. 4 and Fig. 5, subscriber equipment comprises two memory devices, respectively hard disk 1 (the first memory device) and hard disk 2 (the second memory device), on hard disk 1, there are three media files, respectively media file A, media file B, media file C, wherein, user's vital document mark that has been media file A mark in advance; On hard disk 2, having three media files, is respectively media file D, media file E, media file F, wherein, and user's vital document mark that has been media file E mark in advance.In addition, be provided with back-up storage district 1 at hard disk 1, be provided with back-up storage district 2 on hard disk 2, the backup method of the media file of the present embodiment comprises the steps:
100, the media file of storage on user equipment scans hard disk 1, determines that media file A is marked with vital document mark.
200, subscriber equipment obtains the directory information A* of the media file A that is marked with vital document mark, its directory information A* is placed in the back-up storage district 1 of hard disk 1.
300, subscriber equipment reads the directory information A* placing in catalogue back-up storage district 1, according to the directory information A* reading, media file A is backuped in the back-up storage district 2 on hard disk 2.
After this step, the backup file A ' of media file A will be stored in the back-up storage district 2 of hard disk 2.
400, the media file of storage on user equipment scans hard disk 2, determines that media file E is marked with vital document mark.
500, subscriber equipment obtains the directory information E* of the media file E that is marked with vital document mark, its directory information E* is placed in the back-up storage district 2 of hard disk 2.
600, subscriber equipment reads the directory information E* placing in back-up storage district 2, according to the directory information E* reading, media file E is backuped in the back-up storage district 1 on hard disk 1.
After this step, the backup file E ' of media file E will be stored in the back-up storage district 1 of hard disk 1.
It should be noted that, step 100-300 carries out successively, for the important media file on hard disk 1 is backuped to hard disk 2, step 400-600 carries out successively, for the important media file on hard disk 2 is backuped to hard disk 1, but the order between step 100-300 and step 400-600 is not limit, can carry out successively also can walking abreast and carrying out.
Correspondingly, embodiments of the invention also provide a kind of media file back-up device 20, as shown in Figure 6, comprising:
Scanning element 201, for scanning the media file of storing on the first memory device, to determine whether media file is marked with vital document mark;
Acquiring unit 202, if the media file scanning for scanning element 201 is marked with vital document mark, obtains the directory information of this media file;
Backup units 203, for the directory information of the media file that obtains according to acquiring unit 202, backups to this media file on the second memory device.
The device of the media file backup of the embodiment of the present invention, scanning element 201 scans the media file of storing on the first memory device, in the time that scanned media file is marked with vital document mark, acquiring unit 202 obtains directory information, backup units 203 is according to the directory information of this file, this media file is backuped on the second memory device, that is to say, media file back-up device 20 can automatic benchmarking's note have the media file of important media file mark to back up, so, only need user to carry out mark to important media file, complete backup without operations such as user manually copy, therefore effectively simplified the troublesome operation that user backs up, and without increasing any chip, effectively reduce cost.
Optionally, the media file that scanning element 201 scans comprises at least one in audio media files, video media file and picture file.
Optionally, in one embodiment of the invention, as shown in Figure 7, media file back-up device 20 also comprises indexing unit 204, specifically for:
Receive preservation or the out code of user to media file;
Send vital document mark prompting to described user, to point out described user whether as described preservation or the media file marking value documents mark of closing;
Receive the marking value documents mark instruction that user sends according to described vital document mark prompting;
For described preservation or the media file marking value documents mark of closing.
Alternately, in one embodiment of the invention, indexing unit 204 specifically for:
Receive the edit instruction of user to media file;
According to described edit instruction, display media Document Editing option, described media file editing options comprises the option of marking value documents mark;
Receive the selection instruction of the option of user to described marking value documents mark;
For described editor's media file marking value documents mark.
Be understandable that, in one embodiment of the invention, indexing unit 204 at least one mode in can compatible above-mentioned two kinds of mark modes scans.
Optionally, in one embodiment of the invention, scanning element 201 specifically for:
Receive user's scan instruction, described scan instruction indication scans the media file of storing on described the first memory device;
According to described user's scan instruction, scan the media file of storing on described the first memory device, to determine whether described media file is marked with vital document mark;
Optionally, in one embodiment of the invention, scanning element 201 specifically for:
Determine that user operates the media file of described the first memory device, stores;
Scan the described media file that described user operated, to determine whether the media file that described user operated is marked with vital document mark;
Optionally, in one embodiment of the invention, scanning element 201 specifically for:
According to the scan period setting in advance, the media file of storing on scanning the first memory device, to determine whether described media file is marked with vital document mark.
Be understandable that, in one embodiment of the invention, at least two kind modes of scanning element 201 in can compatible above-mentioned three kinds of modes scan.
Optionally, in one embodiment of the invention:
On the first memory device, be provided with the first back-up storage district;
As shown in Figure 8, device 20 also can comprise:
The first buffer unit 205, is placed into the first back-up storage district of described the first memory device for the directory information of media file that acquiring unit 202 is obtained;
In this case, backup units 203 specifically for:
Read the directory information that the first buffer unit 205 is placed on the first back-up storage district;
According to the directory information reading, media file corresponding directory information is backuped on the second memory device.
Further, in one embodiment of the present of invention:
Scanning element 201 is also for scanning the media file of storing on the second memory device, to determine whether media file is marked with vital document mark;
If acquiring unit 202 is also marked with vital document mark for media file, obtain the directory information of media file;
Backup units 203 also, for the directory information of the media file that obtains according to acquiring unit 202, backups to media file on the first memory device.
Further, in one embodiment of the present of invention, as shown in Figure 9, media file back-up device 20 also can comprise:
Determining unit 206, if the first memory device is dismantled, is replaced by the 3rd memory device from subscriber equipment for user, determines that the first memory device is replaced by the 3rd memory device by user;
Now, backup units 203 is also for being synchronized to the 3rd memory device by backuping to media file on the second memory device, the first memory device, stores.
Further, in one embodiment of the present of invention, as shown in figure 10, media file back-up device 20 also can comprise:
Detecting unit 207, for detection of the duty of the first memory device;
Switch unit 208, if detect that for detecting unit 207 the first memory device is in abnormal work state:
Send memory device switch prompting to user, to point out user to carry out memory device switching;
Receive user's memory device switching command;
According to memory device switching command, the first memory device is switched to described the second memory device;
Or
If the first memory device, in abnormal work state, switches to the second memory device by the first memory device automatically.
It should be noted that, the concrete function of each structural unit of the media file back-up device 20 that the embodiment of the present invention provides refers to embodiment of the method above.
Figure 11 shows that the another kind of embodiment of media file back-up device provided by the invention, as shown in figure 11, the media file back-up device 40 that the present embodiment provides, comprises processor 401, storer 402, communication interface 403 and bus 404.Processor 401, storer 402 and communication interface 403 are connected by bus 404 and complete mutual communication.Described bus 404 can be industry standard architecture (IndustryStandard Architecture, referred to as ISA) bus, peripheral component interconnect (Peripheral Component, referred to as PCI) bus or extended industry-standard architecture (Extended Industry StandardArchitecture, referred to as EISA) bus etc.Described bus 404 can be divided into address bus, data bus, control bus etc.For ease of representing, in Figure 10, only represent with a thick line, but do not represent only to have the bus of a bus or a type.Wherein:
Storer 402 is for stores executable programs code, and this program code comprises computer-managed instruction.Storer 402 may comprise high-speed RAM storer, also may also comprise nonvolatile memory (non-volatile memory), for example at least one magnetic disk memory.
Processor 401 moves the program corresponding with described executable program code by the executable program code of storage in read memory 402, for:
Scan the media file of storing on the first memory device, to determine whether media file is marked with vital document mark;
If media file is marked with vital document mark, obtain the directory information of media file;
According to the directory information of the media file obtaining, media file is backuped on the second memory device.
Wherein, processor 401 may be a central processing unit (Central Processing Unit, referred to as CPU), or specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC), or be configured to implement one or more integrated circuit of the embodiment of the present invention.
It should be noted that, above-mentioned processor 401, except having above-mentioned functions, also can be used for carrying out other flow processs in said method embodiment, does not repeat them here.
Also it should be noted that, in processor 401, the division of each functional unit can, referring to the embodiment of aforesaid media file back-up device, not repeat them here.
It should be noted that, in one embodiment of the invention, storer 402 can with the first memory device and the second memory device in any one be same parts.
Accordingly, the embodiment of the present invention also provides a kind of subscriber equipment 5, and as shown in figure 12, subscriber equipment 5 comprises:
At least two memory devices and media file back-up device 52;
Described at least two memory devices comprise the first memory device 50 and the second memory device 51;
Media file back-up device 20 is connected with the second memory device 51 with the first memory device 50 respectively, for:
Scan the media file of storage on the first memory device 50, to determine whether media file is marked with vital document mark;
If media file is marked with vital document mark, obtain the directory information of media file;
According to the directory information of media file, media file is backuped on the second memory device 51.
The subscriber equipment 5 of the embodiment of the present invention, media file back-up device 20 can scan the media file of storage on the first memory device 50, in the time that described media file is marked with vital document mark, according to the directory information of this file, this media file is backuped on the second memory device 51, that is to say, media file back-up device 20 can automatic benchmarking's note have the media file of important media file mark to back up, so, only need user to carry out mark to important media file, complete backup without operations such as user manually copy, therefore effectively simplified the troublesome operation that user backs up, can also avoid preferably forgeing or omitting the File lose causing due to user, effectively guarantee the security of backup, thereby obviously improving user experiences, and without increasing any chip, effectively reduce cost.
Wherein, the media file back-up device that media file back-up device 52 can provide for previous embodiment repeats no more herein.
Optionally, the first memory device 50 can comprise following any one: hard disk, floppy disk, USB flash disk, CD, portable hard drive, disk or storage card; The second memory device 51 comprise following any one: hard disk, floppy disk, USB flash disk, CD, portable hard drive, disk or storage card.
Concrete, the subscriber equipment 5 that the embodiment of the present invention provides can be mobile phone, computer, panel computer, personal digital assistant, can certainly be the subscriber equipment that comprises two memory devices of other types, the present invention does not limit this.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, between each embodiment identical similar part mutually referring to, what each embodiment stressed is and the difference of other embodiment.Especially,, for device embodiment, because it is substantially similar in appearance to embodiment of the method, so describe fairly simplely, relevant part is referring to the part explanation of embodiment of the method.
It should be noted that, device embodiment described above is only schematic, the wherein said unit as separating component explanation can or can not be also physically to separate, the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in multiple network element.Can select according to the actual needs some or all of module wherein to realize the object of the present embodiment scheme.In addition, in device embodiment accompanying drawing provided by the invention, the annexation between module represents to have communication connection between them, specifically can be implemented as one or more communication bus or signal wire.Those of ordinary skills, in the situation that not paying creative work, are appreciated that and implement.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add essential common hardware by software and realize, and can certainly comprise that special IC, dedicated cpu, private memory, special components and parts etc. realize by specialized hardware.Generally, all functions being completed by computer program can realize with corresponding hardware easily, and the particular hardware structure that is used for realizing same function can be also diversified, such as mimic channel, digital circuit or special circuit etc.But software program realization is better embodiment under more susceptible for the purpose of the present invention condition.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium can read, as the floppy disk of computing machine, USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-OnlyMemory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc., comprise that some instructions (can be personal computers in order to make a computer equipment, server, or the network equipment etc.) carry out the method described in the present invention each embodiment.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, any be familiar with those skilled in the art the present invention disclose technical scope in; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of described claim.