The content of the invention
The present invention provides a kind of method, apparatus and user equipment of media file backup, can either effectively reduce cost, again
The troublesome operation that user is backed up can be simplified.
The first aspect of the present invention, there is provided a kind of method of media file backup, this method include:
The media file stored in the first storage device is scanned, to determine whether the media file has vital document mark
Note;
If the media file has vital document mark, the media file directory information is obtained;
According to the media file directory information, the media file is backuped in the second storage device.
In the first possible implementation of first aspect, the media file includes audio media files, video
At least one of media file and picture file.
With reference to the possible implementation of the first of first aspect or first aspect, second in first aspect is possible
In implementation, the media file that stores in the first storage device of the scanning, to determine whether the media file has weight
Before wanting file mark, this method also includes:
Receive preservation or out code of the user to media file;
Vital document mark prompting is sent to the user, to prompt whether the user is the preservation or the matchmaker closed
Body file mark vital document identifies;
Receive the marking value documents that user marks prompting to send according to the vital document and identify instruction;
For the media file marking value documents mark of the preservation or closing.
With reference to the possible implementation of the first of first aspect or first aspect, the third in first aspect is possible
In implementation, the media file that stores in the first storage device of the scanning, to determine whether the media file has weight
Before wanting file mark, this method also includes:
Receive edit instruction of the user to media file;
According to the edit instruction, media file editing options are shown, the media file editing options include mark
Vital document identification options;
Receive selection instruction of the user to marking value documents identification options;
Identified for the media file marking value documents of the editor.
With reference to the possible implementation of the first of first aspect or first aspect, the 4th kind in first aspect is possible
In implementation, the media file that stores in the first storage device of the scanning, to determine whether the media file has weight
Before wanting file mark, this method also includes:
Receive preservation or out code of the user to media file;
Vital document mark prompting is sent to the user, to prompt whether the user is the preservation or the matchmaker closed
Body file mark vital document identifies;
Receive the marking value documents that user marks prompting to send according to the vital document and identify instruction;
For the media file marking value documents mark of the preservation or closing;
And
Receive edit instruction of the user to media file;
According to the edit instruction, media file editing options are shown, the media file editing options include mark
Vital document identification options;
Receive selection instruction of the user to marking value documents identification options;
Identified for the media file marking value documents of the editor.
Second with reference to the possible implementation of the first of first aspect or first aspect or first aspect is possible
4th kind of possible implementation of three kinds of possible implementations or first aspect of implementation or first aspect, first
It is described to scan the media file stored in the first storage device in 5th kind of possible implementation of aspect, with described in determination
Whether media file, which is marked with vital document mark, includes:
The scan instruction of user is received, the scan instruction indicates the media file to being stored in first storage device
It is scanned;
According to the scan instruction of the user, the media file stored in first storage device is scanned, to determine
State whether media file is marked with vital document mark;
Or
Determine that the media file that user stores to first storage device is edited;
The edited media file of the user is scanned, to determine whether the edited media file of the user is marked
Note has vital document mark;
Or
According to the scan period pre-set, the media file stored in the first storage device is scanned, to determine the matchmaker
Whether body file is marked with vital document mark.
With reference to any one implementation in above-mentioned each possible implementation of first aspect or first aspect,
In 6th kind of possible implementation of first aspect:
The first backup memory block is provided with first storage device;
If the media file be marked with vital document mark, obtain the media file directory information it
Afterwards, according to the directory information of the media file, before the media file is backuped in the second storage device, methods described
Also include:
The first backup that the directory information of the media file of the acquisition is placed into first storage device is deposited
Storage area;
In this case, the directory information according to the media file, the media file is backuped to second
Include in storage device:
The directory information of the first backup memory block is placed on described in reading;
According to the directory information of the reading, media file corresponding to the directory information is backuped to described second
In storage device.
With reference to any one implementation in above-mentioned each possible implementation of first aspect or first aspect,
In 7th kind of possible implementation of first aspect, this method also includes:
The media file stored in the second storage device is scanned, to determine whether the media file is marked with vital document
Mark;
If the media file is marked with vital document mark, the directory information of the media file is obtained;
According to the directory information of the media file, the media file is backuped in the first storage device.
With reference to the 7th kind of possible implementation of first aspect, in the 8th kind of possible implementation of first aspect
In:
The second backup memory block is provided with first storage device, it is described to be believed according to the catalogue of the media file
Breath, the media file, which is backuped in the first storage device, to be included:
According to the directory information of the media file, second that the media file is backuped in the first storage device is standby
Part memory block.
With reference to any one implementation in above-mentioned each possible implementation of first aspect or first aspect,
In 9th kind of possible implementation of first aspect, in the directory information according to the media file, by the media
To after in the second storage device, this method also includes file backup:
Determine that the first storage device is replaced by the 3rd storage device by the user;
The media file synchronization for backuping in second storage device, described first storage device storage is arrived
In 3rd storage device.
With reference to any one implementation in above-mentioned each possible implementation of first aspect or first aspect,
In tenth kind of possible implementation of first aspect, this method also includes:
Detect the working condition of first storage device;
If first storage device is in abnormal operation:
Storage device switch prompting is sent to user, to prompt the user to carry out storage device switching;Receive user's
Storage device switching command;According to the storage device switching command, described second is switched to deposit first storage device
Store up equipment;
Or
Automatically first storage device is switched into second storage device.
The second aspect of the present invention, there is provided a kind of device of media file backup, the device include:
Scanning element, for scanning the media file stored in the first storage device, whether to determine the media file
It is marked with vital document mark;
Acquiring unit, if the media file for scanning element scanning is marked with vital document mark, obtain institute
State the directory information of media file;
Backup units, for the directory information of the media file obtained according to the acquiring unit, by the media file
Backup in the second storage device.
In the first possible implementation of second aspect, the media file of the scanning element scanning includes audio
At least one of media file, video media file and picture file.
With reference to the possible implementation of the first of second aspect or second aspect, second in second aspect is possible
In implementation, described device also includes indexing unit, is used for:
Receive preservation or out code of the user to media file;
Vital document mark prompting is sent to the user, to prompt whether the user is the preservation or the matchmaker closed
Body file mark vital document identifies;
Receive the marking value documents that user marks prompting to send according to the vital document and identify instruction;
For the media file marking value documents mark of the preservation or closing.
With reference to the possible implementation of the first of second aspect or second aspect, the third in second aspect is possible
In implementation, described device also includes indexing unit, is used for:
Receive edit instruction of the user to media file;
According to the edit instruction, media file editing options are shown, the media file editing options include mark
The option of vital document mark;
Receive the selection instruction for the option that user identifies to the marking value documents;
Identified for the media file marking value documents of the editor.
With reference to the possible implementation of the first of second aspect or second aspect, the 4th kind in second aspect is possible
In implementation, described device also includes indexing unit, is used for:
Receive preservation or out code of the user to media file;
Vital document mark prompting is sent to the user, to prompt whether the user is the preservation or the matchmaker closed
Body file mark vital document identifies;
Receive the marking value documents that user marks prompting to send according to the vital document and identify instruction;
For the media file marking value documents mark of the preservation or closing;
And
Receive edit instruction of the user to media file;
According to the edit instruction, media file editing options are shown, the media file editing options include mark
The option of vital document mark;
Receive the selection instruction for the option that user identifies to the marking value documents;
Identified for the media file marking value documents of the editor.
Second with reference to the possible implementation of the first of second aspect or second aspect or second aspect is possible
4th kind of possible implementation of the possible implementation of the third of implementation or second aspect or second aspect,
In 5th kind of possible implementation of two aspects, the scanning element is specifically used for:
The scan instruction of user is received, the scan instruction indicates the media file to being stored in first storage device
It is scanned;
According to the scan instruction of the user, the media file stored in first storage device is scanned, to determine
State whether media file is marked with vital document mark;
Or
Determine that the media file that user stores to first storage device is edited;
The edited media file of the user is scanned, to determine whether the edited media file of the user is marked
Note has vital document mark;
Or
According to the scan period pre-set, the media file stored in the first storage device is scanned, to determine the matchmaker
Whether body file is marked with vital document mark.
With reference to any one implementation in above-mentioned each possible implementation of second aspect or second aspect,
In 6th kind of possible implementation of second aspect, the first backup memory block is provided with first storage device, it is described
Device also includes:
First buffer unit, the directory information of the media file for the acquiring unit to be obtained are placed into described
First backup memory block of the first storage device;
In this case, the backup units are specifically used for:
Read the directory information that first buffer unit is placed on the first backup memory block;
According to the directory information of the reading, media file corresponding to the directory information is backuped to described second
In storage device.
With reference to any one implementation in above-mentioned each possible implementation of second aspect or second aspect,
In 7th kind of possible implementation of second aspect, the scanning element is additionally operable to scan the matchmaker stored in the second storage device
Body file, to determine whether the media file is marked with vital document mark;If the acquiring unit is additionally operable to the matchmaker
Body file mark has vital document mark, obtains the directory information of the media file;The backup units are additionally operable to according to institute
The directory information of media file is stated, the media file is backuped in the first storage device.
With reference to the 7th kind of possible implementation of second aspect, in the 8th kind of possible implementation of second aspect
In, the second backup memory block is provided with first storage device, the backup units are specifically used for according to media text
The directory information of part, the second backup memory block that the media file is backuped in the first storage device.
With reference to any one implementation in above-mentioned each possible implementation of second aspect or second aspect,
In 9th kind of possible implementation of second aspect, the device also includes:
Determining unit, for determining that the first storage device is replaced by the 3rd storage device by the user;
The backup units are additionally operable to backup in second storage device, described first storage device by described and deposit
The media file synchronization of storage is in the 3rd storage device.
With reference to any one implementation in above-mentioned each possible implementation of second aspect or second aspect,
In tenth kind of possible implementation of second aspect, the device also includes:
Detection unit, for detecting the working condition of first storage device;
Switch unit, it is used for:
If the detection unit detects that first storage device is in abnormal operation:
Storage device switch prompting is sent to user, to prompt the user to carry out storage device switching;
Receive the storage device switching command of user;
According to the storage device switching command, first storage device is switched into second storage device;
Or
If first storage device is in abnormal operation, first storage device is switched to automatically described
Second storage device.
The third aspect of the present invention, there is provided a kind of user equipment, the equipment include:
First storage device, the second storage device and media file back-up device;
The media file back-up device is connected with first storage device and the second storage device respectively, is used for:
The media file stored in the first storage device is scanned, to determine whether the media file is marked with vital document
Mark;
If the media file is marked with vital document mark, the directory information of the media file is obtained;
According to the directory information of the media file, the media file is backuped in the second storage device.
With reference to the third aspect, in the first possible implementation, first storage device includes following any one
Kind:Hard disk, floppy disk, USB flash disk, CD, mobile hard disk, disk or storage card;
Second storage device include it is following any one:Hard disk, floppy disk, USB flash disk, CD, mobile hard disk, disk are deposited
Card storage.
With reference to the possible implementation of the first of the third aspect or the third aspect, second in the third aspect is possible
In implementation, the user equipment includes mobile phone, computer, tablet personal computer, personal digital assistant.
The method, apparatus and user equipment of the media file backup of the present invention, scan the matchmaker stored in the first storage device
Body file, it is according to the directory information of this document, the media file is standby when the media file is marked with vital document mark
Part in the second storage device, that is to say, that back-up device can remember the media text that have important media file identification with automatic benchmarking
Part is backed up, it is only necessary to which important media file is marked user, carries out the operation such as duplication manually without user to complete
Backup, therefore the troublesome operation that user is backed up is effectively simplified, and any chip need not be increased, effectively reduce into
This.
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 carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
The embodiments of the invention provide a kind of method of media file backup, performed by user equipment, specifically set by user
The media file back-up device of standby middle setting performs, and the user equipment includes the first storage device and the second storage device,
The embodiment of the present invention is that what type of storage device does not limit to the first storage device and the second storage device, citing and
Speech, the first storage device and the second storage device may each be any one following storage device:Hard disk, floppy disk, USB flash disk, CD,
Mobile hard disk, disk, storage card, as shown in figure 1, the method for media file provided in an embodiment of the present invention backup includes following step
Suddenly:
S11, the media file stored in the first storage device is scanned, to determine it is important whether the media file is marked with
File identification.
Firstly the need of explanation, in this step, the media file that is scanned is stores at least in the first storage device
One media file.
For example, in this step, the media file can include audio media files, video media file and picture
At least one of file.Wherein, audio media files refer to store sound-content file, such as form be MP3, CD,
WAVE (* .WAV), WMA, RealAudio etc. file;Video media file then refers to the text for storing various dynamic image contents
Part, such as the file that form is WMV, AVI, MP4, RM/RMVB, kmv etc.;And picture file refers to store in various tangible things
The file of appearance, such as the file that form is JPEG, TIFF, BMP, GIF, PNG etc..
Obviously, the media file can also be other kinds of media file, and the present invention is not limited this.
It is understood that the media file stored in the first storage device include it is extremely important for a user
, user want the media file that preserves for a long time, in order to ensure the security of this part of media file, the embodiment of the present invention provides
Backup method in, before this step is S11 steps, user will be these important media file marking value documents marks.
For example, user equipment can provide vital document option for media file, user can by choose the option so as to for
The media file marking value documents identify;For another example it is important that user equipment, which can receive user to mark certain media file,
The instruction of file, after the instruction is received, user equipment adds vital document mark in the attribute information of the media file,
As the media file marked vital document mark.So, in this step, user equipment can find this by scanning
A little important media files, and then the media file important to these backs up, and the safety of these media files is effectively ensured
Property.
Specifically, this step can have three kinds of specific implementations, it is as follows respectively:
First, in one embodiment of the invention, user equipment can receive the scan instruction of user, and described
In the case that scan instruction instruction is scanned to the media file stored in first storage device, according to the scanning of user
Instruction, the media file stored in first storage device is scanned, to determine whether the media file is marked with important text
Part identifies;That is, this step can be carried out according to the wish of user, user being actually needed according to oneself, with
When issue scan instruction.For example, user equipment can provide the user the function choosing-item of scanning medium file, be selected in user
When selecting the function choosing-item, that is, start to perform this step.
Second, user equipment can scan the media stored in the first storage device according to the scan period pre-set
File, to determine whether the media file is marked with vital document mark.The length of the scan period pre-set is unlimited,
Can arbitrarily it set, such as 1 day, 1 week, 2 weeks, one month etc., the scan period can be that user pre-sets or used
The default setting of family equipment.
Third, user equipment can monitor user in real time to the operation of the media file stored in the first storage device, one
Denier monitors to determine the media that the media file that user stores the first storage device is operated, and scanning user was operated
File, to determine whether the media file that user operated is marked with vital document mark.Here the user equipment sayed is supervised
" operation " surveyed, can paste new media file including user into the first storage device, and user opens the first storage device
Closed after the media file of middle script storage, or, user changes the content of the media file stored originally in the first storage device,
Or, user changes attribute of media file stored originally in the first storage device etc., the present invention is not limited this.Citing
For, once user equipment detects that user has pasted new media file into the first storage device, will start to scan this new
Media file, with determine the media file whether be marked with vital document mark.
It is understood that in one embodiment of the invention, during user equipment can be in a manner of compatible above-mentioned three kinds
At least two modes are scanned.
It should be noted that the present invention is not limited the specific implementation of this step, can be three of the above mode
At least one of, can also be other scan modes.
In this step, if user equipment scans are marked with vital document mark to media file, step S12 is performed, and
For the media file of unmarked vital document mark, user equipment can be without any processing.
S12, if the media file is marked with vital document mark, obtain the directory information of the media file.
It should be noted that in the embodiment of the present invention, directory information refers to the path that media file is deposited in storage device
Information.For example, the directory information of certain media file is " E:Beijing Company research and development department 1 communication set work courseware .wma ".
Specifically, user equipment can read the attribute information for the media file for being marked with vital document mark, to obtain
The directory information of this document, certainly, user equipment can also have other modes for obtaining directory information, and the embodiment of the present invention is to this
Do not limit, for details, reference can be made to prior art, repeat no more here.
S13, according to the media file directory information of the acquisition, the media file is backuped into the second storage device
On.
Special backup memory block can be provided with second storage device, in this step, user equipment will can be marked with
The media file of vital document mark is backuped in the backup memory block in the second storage device.
The method of the media file backup of the embodiment of the present invention, scans the media file stored in the first storage device,
When the media file is marked with vital document mark, according to the directory information of this document, the media file is backuped to second
In storage device, that is to say, that it can remember that the media file for having important media file identification is backed up with automatic benchmarking, such one
Come, it is only necessary to which important media file is marked user, and the operation such as duplication manually is carried out to complete to back up, therefore without user
It is effectively simplified the troublesome operation that user is backed up, additionally it is possible to preferably avoid causing due to forgetting or the omission of user
File lose, the security of backup is effectively ensured, so as to significantly improve Consumer's Experience, and any chip need not be increased, had
Effect reduces cost.
It is understood that in the embodiment of the present invention, before S11 steps, user needs the important text thought to it
Part marking value documents are identified, that is to say, that user equipment is needed under the instruction of user, is media text according to the requirement of user
Part marking value documents identify, and are below that media file marks important media file identification to be described in detail to user equipment.
Specifically, in the backup method of media file provided in an embodiment of the present invention, user equipment is to media file mark
Remembering the method for important media file identification includes following two kinds, but is not limited to following two kinds:
One:
When user needs to close media file, user would generally click on the X button of the media file, that is, issue pass
Instruction is closed, at this moment, user equipment can be sent important when receiving out code of the user to media file to the user
File mark is prompted, for example, ejecting a dialog box, is shown in dialog box:Whether it is this document marking value documents mark, and gives
Go out the option button of "Yes" and "No", the media file marking value documents mark for its closing is prompted the user whether with inquiry
Know.If the user feels that this Documents Comparison is important, prompting will be marked to send marking value documents mark according to vital document and referred to
Order, for example, clicking on the "Yes" button in dialog box, instruction user equipment identifies for the media file marking value documents, user
After equipment receives the instruction, identified for the media file marking value documents that user closes, certainly, if the user feels that this
File is inessential, without mark, according to vital document prompting can be marked to send without mark instructions, for example, clicking on dialog box
In "No" button, instruction user equipment do not have to for the media file marking value documents identify.
It is understood that this mode is not limited to user when closing media file, can also be realized on other opportunitys,
For example, when user preserves media file, for example, user is after the operation such as modified to a media file, it will usually click on
Save button or drop-down menu " save options ", that is, issue preservation instruction, and user equipment can receive user to media
During the preservation instruction of file, ejection vital document mark prompting, issued so as to mark prompting according to vital document in user
Under instruction, operation is marked or without marking operation, repeats no more here.
It should be noted that for example, user equipment can be ejection to user's transmission vital document mark prompting
The form of dialog box, to ask the user whether to mark, user if it is desired to mark then selection is, it is on the contrary then select no.Certainly, user
The prompting mode of equipment is not limited to this mode, can also be other modes.
Secondly:
When user runs into it and is considered important media file every time, it can use and edlin is entered to the media file
Mode, identified for the media file marking value documents.Specifically, user will be issued for the media file to user equipment
Edit instruction, in the embodiment of the present invention, the edit instruction can refer to any operation that user wants editing media file, example
Such as, user clicks on the operation of right mouse button at the icon of media file, and user clicks on the toolbar or menu bar of media file
In any button operation etc., when user equipment detects this operation of user, will display for a user and user operate
Corresponding media file editing options, for example, ejection drop-down menu, the drop-down menu include at least one editing options,
Include the option of marking value documents mark in shown at least one editing options, user passes through the important text of selected marker
The option of part mark marks the media file, i.e. user equipment receives the option that user identifies to the marking value documents
Selection instruction, so as to according to the instruction be user edit media file marking value documents mark.
For example, the edit instruction of user can first click on left button for user and choose certain media file, then click right button,
At this moment, user equipment would indicate that editing options menu, and including " vital document mark " option, and then user chooses the choosing
The media file is marked item.
For another example the edit instruction of user, which can be user, click on a certain Edit button in the menu bar of certain media file,
User equipment would indicate that drop-down option menu, and including " vital document mark " option, and then user chooses the option pair
The media file is marked.
It is understood that in one embodiment of the invention, user equipment can be come in a manner of compatible above-mentioned two kinds for
Media file marking value documents identify.
It is understood that in the embodiment of the present invention, deposited the media file in the first storage device is backuped into second
, it is necessary to first scan the media file for being marked with important logo before storage equipment, and whether to media file marking value documents
Mark manually completes by user's.Therefore, how vital document mark is carried out to media file, is important to user.
In the embodiment of the present invention, for a user, above-mentioned two kinds of modes are simple to operate, so as to significantly improve Consumer's Experience.
Specifically, in one embodiment of the invention, one piece of special memory block is may be provided with the first storage device
Domain, the first backup memory block is referred to as in the embodiment of the present invention, the mesh acquired in S12 steps for storing user equipment
Record information, that is to say, that after S12 steps, before S13 steps, methods described can also include the steps of:
The directory information of the media file of acquisition is placed into the first backup memory block of first storage device;
Now, in S13 steps, specifically, the directory information for the first backup memory block being placed on described in reading, according to
The directory information read, media file corresponding to the directory information is backuped in second storage device.
Further, in one embodiment of the invention, user equipment will can not only store in the first storage device
Media file backup in the second storage device, the media file of the second storage device can also be backuped to the first storage and set
It is standby upper, that is to say, that the backup method of media file provided in an embodiment of the present invention can also include the steps of:
The media file stored in the second storage device is scanned, to determine whether the media file is marked with vital document
Mark;
If the media file is marked with vital document mark, the directory information of the media file is obtained;
According to the directory information of the media file, the media file is backuped in the first storage device.
It should be understood that for how to backup to the media file in the second storage device in the first storage device, with
And how the media file in the second storage device is marked etc. mode with the media file of the first storage device is standby
It is part identical to used mode during the second storage device, i.e., the media file in the second storage device is backuped to the
Specific implementation process in one storage device is the same as with the media file of the first storage device is backuped in the second storage device
Specific implementation process, embodiment above is specifically referred to, therefore not to repeat here.
Set it should be noted that the media file stored in the first storage device is backuped into the second storage in user equipment
It is standby upper, can in the first storage device in the case that also the media file of the second storage device is backuped in the first storage device
To be provided with a special memory block, it is referred to as the second backup memory block in the embodiment of the present invention, is set for storing the second storage
Media file of the backup in the first storage device, now, the above-mentioned directory information according to the media file, by described in
The step that media file is backuped in the first storage device is specially:
According to the directory information of the media file, second that the media file is backuped in the first storage device is standby
Part memory block.
It should be noted that backed up when being provided with foregoing the first backup memory block and second in the first storage device simultaneously
During memory block, both can be identical memory block, i.e., one piece of special memory block is provided with the first storage device, was both used for
The directory information obtained in storage S12 steps, it is used for storing media of the second storage device backup in the first storage device again
File, certainly, both can also be that independently existing two pieces of storage regions, the present invention are not limited this.
Further, in one embodiment of the invention, after S13 steps, if the first storage device is damaged
Abnormal conditions, the user such as bad need to change the first storage device, and user can be by the first storage device from user equipment
Dismounting, is replaced by the 3rd storage device, in this case, file backup method provided in an embodiment of the present invention may also include following
Step:
Determine that the first storage device is replaced by the 3rd storage device by the user;
The media file synchronization for backuping in second storage device, described first storage device storage is arrived
In 3rd storage device.
Confirm that the first storage device can not use specifically, being checked by user, or the first storage device can not meet
During user's use demand, the first storage device is replaced by the 3rd storage device by user.The 3rd storage device is replaced with user,
And after user equipment identifies the storage device, it is found that the storage device is different from the first storage device, that is, determine that user will
First storage device is replaced by the 3rd storage device, will be set will backup in the second storage device, the first storage originally
For in the media file synchronization stored to the 3rd storage device.
Further, in order to further lift Consumer's Experience, in one embodiment of the invention, the embodiment of the present invention
The file backup method of offer can also include the steps of:
Detect the working condition of first storage device;
If detecting that first storage device is in abnormal operation, user equipment can send to user and store
Equipment switch prompting, to prompt the user to carry out storage device switching;After the storage device switching command of user is received,
First storage device will be switched to the second storage device by user equipment according to the storage device switching command;User equipment
First storage device directly can also be switched into second storage device automatically.
Specifically, user equipment is real-time or according to the working condition for pre-setting the storage device of periodic detection first, if
User equipment detects that first storage device is in abnormal operation, for example, user can not open the first storage device
On multiple original openable media files, or open can not be normal after multiple media files in the first storage device
Play, now, the first storage device is switched to the second storage device by user equipment, so that user is opened in the second storage device
On backup media file.Switching mode can have following two:
Mode one is that user equipment sends storage device switch prompting to user, to prompt the user to carry out storage device
Switching.Then user equipment receives the storage device switching command of user, and according to storage device switching command, the first storage is set
It is standby to switch to the second storage device, so that user can open the matchmaker backed up in the second storage device of the first storage device
Body file.
Mode two is that the first storage device is switched to the second storage device by user equipment automatically, so that user can beat
Open the media file backed up in the second storage device of the first storage device.
In summary, the method for the media file backup of the embodiment of the present invention, scans the matchmaker stored in the first storage device
Body file, it is according to the directory information of this document, the media file is standby when the media file is marked with vital document mark
Part in the second storage device, that is to say, that user equipment can remember the media text that have important media file identification with automatic benchmarking
Part is backed up, so, it is only necessary to which important media file is marked user, and the behaviour such as duplication manually is carried out without user
Make to complete to back up, therefore be effectively simplified the troublesome operation that user is backed up, additionally it is possible to preferably avoid due to user's
Forget or omit and caused by file lose, the security of backup is effectively ensured, so as to significantly improve Consumer's Experience.
In order to which those skilled in the art are better understood from the skill of the method for media file backup provided in an embodiment of the present invention
Art scheme, the method backed up below by specific embodiment to media file provided by the invention are described in detail.
In the specific embodiment of the present invention, with reference to shown in Fig. 2 and Fig. 3, user equipment includes two storage devices, point
It is not hard disk 1 (the first storage device) and hard disk 2 (the second storage device), three media files is included on hard disk 1, are respectively
Media file A, media file B, media file C, and (the first backup storage of catalogue backup memory block is provided with hard disk 1
Area), the backup method of the media file of the present embodiment comprises the following steps:
10th, user browses the media file on hard disk 1, it is found that media file A is important for a user, user refers to
Show that user equipment identifies for media file A marking value documents.
20th, user equipment receives the instruction that user identifies to media file A marking value documents, and media file A is marked
Remember vital document mark.
For example, user can click on right mouse button to issue an edit instruction, user at media file A icon
Equipment includes at least one editing options in ejection drop-down menu, the drop-down menu, is selected in shown at least one editor
Item include marking value documents mark option, the option that user is identified by selected marker vital document come mark media text
Part A, after the selection of user is received, user equipment identifies for media file A marking value documents.
21st, the media file stored on user equipment scans hard disk 1, determine that media file A is marked with vital document mark.
Specifically, in this step, scanning of the user equipment to hard disk 1 can be carried out under the instruction of user, also may be used
To be timing automatic progress, special event triggering is can also be, special event for example can be user to being stored on hard disk 1
Media file a certain operation, specifically such as user have modified the media file stored on hard disk 1, the present embodiment is not done to this
Limit.
22nd, user equipment obtains the directory information A* for the media file A for being marked with vital document mark, by its directory information
A* is placed in the catalogue backup memory block of hard disk 1.
23rd, user equipment reads the directory information A* that places in catalogue backup memory block, according to the directory information A* of reading,
Media file A is backuped on hard disk 2.
After this step, media file A backup file A ' will be stored on hard disk 2.
Optionally, the backup storage of the backup file for the media file that can be specially provided with hard disk 2 on storage hard disk 1
Region, so, in step 23, backup that media file A backup file A ' will can be stored on hard disk 2 by user equipment
Storage region.
In another specific embodiment of the present invention, with reference to shown in Fig. 4 and Fig. 5, user equipment includes two storage devices,
It is hard disk 1 (the first storage device) and hard disk 2 (the second storage device) respectively, there are three media files on hard disk 1, be respectively
Media file A, media file B, media file C, wherein, user marked vital document mark for media file A in advance;
There are three media files on hard disk 2, be media file D, media file E, media file F respectively, wherein, user is advance
Vital document mark is marked for media file E.In addition, being provided with backup memory block 1 in hard disk 1, backup is provided with hard disk 2
Memory block 2, the backup method of the media file of the present embodiment comprise the following steps:
100th, the media file stored on user equipment scans hard disk 1, determine that media file A is marked with vital document mark
Know.
200th, user equipment obtains the directory information A* for the media file A for being marked with vital document mark, and its catalogue is believed
Breath A* is placed in the backup memory block 1 of hard disk 1.
300th, user equipment reads the directory information A* placed in catalogue backup memory block 1, according to the directory information of reading
A*, media file A is backuped in the backup memory block 2 on hard disk 2.
After this step, media file A backup file A ' will be stored in the backup memory block 2 of hard disk 2.
400th, the media file stored on user equipment scans hard disk 2, determine that media file E is marked with vital document mark
Know.
500th, user equipment obtains the directory information E* for the media file E for being marked with vital document mark, and its catalogue is believed
Breath E* is placed in the backup memory block 2 of hard disk 2.
600th, user equipment reads the directory information E* placed in backup memory block 2, will according to the directory information E* of reading
Media file E is backuped in the backup memory block 1 on hard disk 1.
After this step, media file E backup file E ' will be stored in the backup memory block 1 of hard disk 1.
It should be noted that step 100-300 is carried out successively, for the important media file on hard disk 1 to be backed up
Onto hard disk 2, step 400-600 is carried out successively, for the important media file on hard disk 2 to be backuped into hard disk 1, but
Order between step 100-300 and step 400-600 is unlimited, can carry out carrying out parallel successively.
Correspondingly, embodiments of the invention additionally provide a kind of media file back-up device 20, as shown in fig. 6, including:
Scanning element 201, for scanning the media file stored in the first storage device, to determine whether media file is marked
Note has vital document mark;
Acquiring unit 202, if being marked with vital document mark for the media file that scanning element 201 scans, obtain
The directory information of the media file;
Backup units 203, for the directory information of the media file obtained according to acquiring unit 202, by the media file
Backup in the second storage device.
The device of the media file backup of the embodiment of the present invention, scanning element 201 scan what is stored in the first storage device
Media file, when the media file scanned is marked with vital document mark, acquiring unit 202 obtains directory information, backup
Unit 203 backups to the media file in the second storage device according to the directory information of this document, that is to say, that media text
Part back-up device 20 can remember that the media file for having important media file identification is backed up with automatic benchmarking, so, only need
Want user that important media file is marked, the operation such as duplication manually is carried out to complete to back up without user, therefore effectively letter
Change the troublesome operation that user is backed up, and any chip need not be increased, effectively reduce cost.
Optionally, the media file that scanning element 201 scans includes audio media files, video media file and picture text
At least one of part.
Optionally, in one embodiment of the invention, as shown in fig. 7, media file back-up device 20 also includes mark
Unit 204, is specifically used for:
Receive preservation or out code of the user to media file;
Vital document mark prompting is sent to the user, to prompt whether the user is the preservation or the matchmaker closed
Body file mark vital document identifies;
Receive the marking value documents that user marks prompting to send according to the vital document and identify instruction;
For the media file marking value documents mark of the preservation or closing.
Alternately, in one embodiment of the invention, indexing unit 204 is specifically used for:
Receive edit instruction of the user to media file;
According to the edit instruction, media file editing options are shown, the media file editing options include mark
The option of vital document mark;
Receive the selection instruction for the option that user identifies to the marking value documents;
Identified for the media file marking value documents of the editor.
It is understood that in one embodiment of the invention, indexing unit 204 can compatible above two mark side
At least one of formula mode is scanned.
Optionally, in one embodiment of the invention, scanning element 201 is specifically used for:
The scan instruction of user is received, the scan instruction indicates the media file to being stored in first storage device
It is scanned;
According to the scan instruction of the user, the media file stored in first storage device is scanned, to determine
State whether media file is marked with vital document mark;
Optionally, in one embodiment of the invention, scanning element 201 is specifically used for:
Determine that the media file that user stores to first storage device is operated;
The media file that the user operated is scanned, to determine whether the media file that the user operated is marked
Note has vital document mark;
Optionally, in one embodiment of the invention, scanning element 201 is specifically used for:
According to the scan period pre-set, the media file stored in the first storage device is scanned, to determine the matchmaker
Whether body file is marked with vital document mark.
It is understood that in one embodiment of the invention, during scanning element 201 can be in a manner of compatible above-mentioned three kinds
At least two modes be scanned.
Optionally, in one embodiment of the invention:
The first backup memory block is provided with the first storage device;
As shown in figure 8, device 20 may also include:
First buffer unit 205, the directory information of the media file for acquiring unit 202 to be obtained are placed into described
First backup memory block of one storage device;
In this case, backup units 203 are specifically used for:
Read the directory information that the first buffer unit 205 is placed on the first backup memory block;
According to the directory information of reading, media file corresponding to directory information is backuped in the second storage device.
Further, in one embodiment of the present of invention:
Scanning element 201 is additionally operable to scan the media file stored in the second storage device, whether to determine media file
It is marked with vital document mark;
If acquiring unit 202 is additionally operable to media file and is marked with vital document mark, the catalogue letter of media file is obtained
Breath;
Backup units 203 are additionally operable to the directory information of the media file obtained according to acquiring unit 202, and media file is standby
Part in the first storage device.
Further, in one embodiment of the present of invention, as shown in figure 9, media file back-up device 20 may also include:
Determining unit 206, if being dismantled for user by the first storage device from user equipment, being replaced by the 3rd storage
Equipment, determine that the first storage device is replaced by the 3rd storage device by user;
Now, backup units 203 are additionally operable to that the media of the first storage device storage in the second storage device will be backuped to
File synchronization is in the 3rd storage device.
Further, in one embodiment of the present of invention, as shown in Figure 10, media file back-up device 20 may also include:
Detection unit 207, for detecting the working condition of the first storage device;
Switch unit 208, if detecting that the first storage device is in abnormal operation for detection unit 207:
Storage device switch prompting is sent to user, to prompt user to carry out storage device switching;
Receive the storage device switching command of user;
According to storage device switching command, the first storage device is switched into second storage device;
Or
If the first storage device is in abnormal operation, the second storage is switched to set the first storage device automatically
It is standby.
It should be noted that the specific work(of each construction unit of media file back-up device 20 provided in an embodiment of the present invention
Embodiment of the method above can be referred to.
Figure 11 show another embodiment of media file back-up device provided by the invention, as shown in figure 11, this reality
The media file back-up device 40 of example offer, including processor 401, memory 402, communication interface 403 and bus 404 are provided.Place
Reason device 401, memory 402 and communication interface 403 are connected by bus 404 and complete mutual communication.The bus 404 can
To be that industry standard architecture (Industry Standard Architecture, referred to as ISA) bus, external equipment are mutual
Even (Peripheral Component, referred to as PCI) bus or extended industry-standard architecture (Extended
Industry Standard Architecture, referred to as EISA) bus etc..The bus 404 can be divided into address bus,
Data/address bus, controlling bus etc..For ease of representing, only represented in Figure 10 with a thick line, it is not intended that an only bus
Or a type of bus.Wherein:
Memory 402 is used to store executable program code, and the program code includes computer-managed instruction.Memory
402 may include high-speed RAM memory, it is also possible to also including nonvolatile memory (non-volatile memory), such as
At least one magnetic disk storage.
Processor 401 is run and the executable journey by reading the executable program code stored in memory 402
Program corresponding to sequence code, for:
The media file stored in the first storage device is scanned, to determine whether media file is marked with vital document mark
Know;
If media file is marked with vital document mark, the directory information of media file is obtained;
According to the directory information of the media file of acquisition, media file is backuped in the second storage device.
Wherein, processor 401 is probably that a central processing unit (Central Processing Unit, is referred to as
CPU), or specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC),
Or it is arranged to implement one or more integrated circuits of the embodiment of the present invention.
It should be noted that above-mentioned processor 401 is in addition to above-mentioned function, it may also be used for performs the above method and implements
Other flows in example, will not be repeated here.
It should be noted that the division of each functional unit may refer to foregoing media file backup dress in processor 401
The embodiment put, will not be repeated here.
It should be noted that in one embodiment of the invention, memory 402 can be with the first storage device and second
Any one in storage device is the same part.
Accordingly, the embodiment of the present invention additionally provides a kind of user equipment 5, and as shown in figure 12, user equipment 5 includes:
At least two storage devices and media file back-up device 52;
At least two storage device includes the first storage device 50 and the second storage device 51;
Media file back-up device 20 is connected with the first storage device 50 and the second storage device 51 respectively, is used for:
The media file stored in the first storage device 50 is scanned, to determine whether media file is marked with vital document mark
Know;
If media file is marked with vital document mark, the directory information of media file is obtained;
According to the directory information of media file, media file is backuped in the second storage device 51.
The user equipment 5 of the embodiment of the present invention, media file back-up device 20 can scan to be deposited in the first storage device 50
The media file of storage, when the media file is marked with vital document mark, according to the directory information of this document, by the media
File backup is in the second storage device 51, that is to say, that media file back-up device 20 can remember there is important matchmaker with automatic benchmarking
The media file of body file identification is backed up, so, it is only necessary to which important media file is marked user, without use
Family carries out the operation such as duplication manually to complete to back up, therefore is effectively simplified the troublesome operation that user is backed up, additionally it is possible to compared with
The good forgetting or the omission that avoid due to user and caused by file lose, the security of backup is effectively ensured, so as to obvious
Consumer's Experience is improved, and any chip need not be increased, effectively reduces cost.
Wherein, media file back-up device 52 can be by the media file back-up device that previous embodiment provides, herein
Repeat no more.
Optionally, the first storage device 50 may include it is following any one:Hard disk, floppy disk, USB flash disk, CD, mobile hard disk,
Disk or storage card;Second storage device 51 include it is following any one:Hard disk, floppy disk, USB flash disk, CD, mobile hard disk, disk
Or storage card.
Specifically, user equipment 5 provided in an embodiment of the present invention can help for mobile phone, computer, tablet personal computer, individual digital
Reason, naturally it is also possible to be the other kinds of user equipment for including two storage devices, the present invention is not limited this.
Each embodiment in this specification is described by the way of progressive, identical similar portion between each embodiment
Divide mutually referring to what each embodiment stressed is the difference with other embodiment.It is real especially for device
For applying example, because it is substantially similar to embodiment of the method, so describing fairly simple, related part is referring to embodiment of the method
Part explanation.
It should be noted that device embodiment described above is only schematical, wherein described be used as separating component
The unit of explanation can be or may not be physically separate, can be as the part that unit is shown or can also
It is not physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can be according to reality
Need to select some or all of module therein to realize the purpose of this embodiment scheme.In addition, device provided by the invention
In embodiment accompanying drawing, the annexation between module represents there is communication connection between them, specifically can be implemented as one or
A plurality of communication bus or signal wire.Those of ordinary skill in the art are without creative efforts, you can to understand
And implement.
Through the above description of the embodiments, it is apparent to those skilled in the art that the present invention can borrow
Software is helped to add the mode of required common hardware to realize, naturally it is also possible to include application specific integrated circuit, specially by specialized hardware
Realized with CPU, private memory, special components and parts etc..Generally, all functions of being completed by computer program can
Easily realized with corresponding hardware, moreover, for realizing that the particular hardware structure of same function can also be a variety of more
Sample, such as analog circuit, digital circuit or special circuit etc..But it is more for the purpose of the present invention in the case of software program it is real
It is now more preferably embodiment.Based on such understanding, technical scheme is substantially made to prior art in other words
The part of contribution can be embodied in the form of software product, and the computer software product is stored in the storage medium that can be read
In, such as the floppy disk of computer, USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), random access memory
Device (RAM, Random Access Memory), magnetic disc or CD etc., including some instructions are causing a computer to set
Standby (can be personal computer, server, or network equipment etc.) performs the method described in each embodiment of the present invention.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained
Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.