CN107704339A - A kind of method, apparatus and user equipment of media file backup - Google Patents

A kind of method, apparatus and user equipment of media file backup Download PDF

Info

Publication number
CN107704339A
CN107704339A CN201710768953.6A CN201710768953A CN107704339A CN 107704339 A CN107704339 A CN 107704339A CN 201710768953 A CN201710768953 A CN 201710768953A CN 107704339 A CN107704339 A CN 107704339A
Authority
CN
China
Prior art keywords
media file
storage device
user
directory information
mark
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710768953.6A
Other languages
Chinese (zh)
Other versions
CN107704339B (en
Inventor
刘晓玲
何智勤
方柳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Device Co Ltd
Original Assignee
Huawei Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Device Co Ltd filed Critical Huawei Device Co Ltd
Priority to CN201710768953.6A priority Critical patent/CN107704339B/en
Publication of CN107704339A publication Critical patent/CN107704339A/en
Application granted granted Critical
Publication of CN107704339B publication Critical patent/CN107704339B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses the method, apparatus and system of a kind of media file backup, it is related to communication technical field, can either effectively to reduce cost, and can enough simplifies the troublesome operation that user is backed up and invented.Methods described includes: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 of the acquisition, the media file is backuped in the second storage device.

Description

A kind of method, apparatus and user equipment of media file backup
Technical field
The present invention relates to communication technical field, more particularly to the method, apparatus and user equipment of a kind of backup of media file.
Background technology
Media, refer to information the form of expression and storage and transmission information entity, common information medium type have text, Figure, image, animation, audio or video etc., its concrete form are the either projection of movie and video programs, network information, computer game Demonstration etc..Various types of media are corresponding with media file, for example, audio media files, video media file and picture text Part etc..To prevent that it is very to carry out backup to media file because the abnormal conditions such as memory carrier damage cause media file to be lost It is necessary.
For the backup of media file, generally there is two ways in the prior art, a kind of mode is manually to back up, User voluntarily inquires about the file for oneself needing to back up, and recycles copy function to be backed up manually.Another way is using independent Redundant array of inexpensive disk (English full name is Redundant Arrays of Inexpensive Disks, referred to as RAID) technology To be backed up, RAID technique is by increasing RAID chips, performs RAID functions by RAID chips so as to realize media text The backup of part.
But the row of user itself is completely dependent on using the backup for manually backing up this mode and carrying out media file For, it is not only possible to because user easily forgets or omits backup and cause file to lose, the security of file backup is poor, and And for a user, cumbersome, ease for use is not high;And use RAID technique to carry out the backup of media file, although can be compared with The security of good guarantee file backup, but need to increase RAID chips, cost is higher.
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.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, required use in being described below to embodiment Accompanying drawing be briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing.
Fig. 1 is a kind of schematic flow sheet of media file backup method provided in an embodiment of the present invention;
Fig. 2 is another schematic flow sheet of media file backup method provided in an embodiment of the present invention;
Fig. 3 is a kind of illustrative diagram of the media file backup method shown in Fig. 2;
Fig. 4 is another schematic flow sheet of media file backup method provided in an embodiment of the present invention;
Fig. 5 is a kind of illustrative diagram of the media file backup method shown in Fig. 4;;
Fig. 6 is a kind of structural representation of media file back-up device provided in an embodiment of the present invention;
Fig. 7 is another structural representation of media file back-up device provided in an embodiment of the present invention;
Fig. 8 is another structural representation of media file back-up device provided in an embodiment of the present invention;
Fig. 9 is another structural representation of media file back-up device provided in an embodiment of the present invention;
Figure 10 is another structural representation of media file back-up device provided in an embodiment of the present invention;
Figure 11 is another structural representation of media file back-up device provided in an embodiment of the present invention;
Figure 12 is a kind of system architecture schematic diagram of user equipment provided in an embodiment of the present invention.
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.

Claims (27)

  1. A kind of 1. method of media file backup, it is characterised in that including:
    Receive the instruction that user is media file marking value documents mark;
    The media file stored in the first storage device is scanned, to determine whether the media file is marked with vital document mark Know;
    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 of the acquisition, the media file is backuped in the second storage device.
  2. 2. according to the method for claim 1, it is characterised in that
    The media file includes at least one of audio media files, video media file and picture file.
  3. 3. method according to claim 1 or 2, it is characterised in that the reception user is that media file marks important text The instruction of part mark specifically includes:
    Receive preservation or out code of the user to media file;
    Vital document mark prompting is sent to the user, with the media text prompted the user whether to be the preservation or closed Part marking value documents identify;
    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.
  4. 4. method according to claim 1 or 2, it is characterised in that the reception user is that media file marks important text The instruction of part mark specifically includes:
    Receive edit instruction of the user to media file;
    According to the edit instruction, media file editing options are shown, it is important that the media file editing options include mark The option of file identification;
    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.
  5. 5. according to the method described in any one of Claims 1-4, it is characterised in that stored in the first storage device of the scanning Media file, with determine the media file whether be marked with vital document mark include:
    The scan instruction of user is received, the scan instruction instruction is carried out to the media file stored in first storage device Scanning;
    According to the scan instruction of the user, the media file stored in first storage device is scanned, to determine the matchmaker Whether body file is marked with vital document mark.
  6. 6. according to the method described in any one of Claims 1-4, it is characterised in that stored in the first storage device of the scanning Media file, with determine the media file whether be marked with vital document mark include:
    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 with Vital document identifies.
  7. 7. according to the method described in any one of Claims 1-4, it is characterised in that stored in the first storage device of the scanning Media file, with determine the media file whether be marked with vital document mark include:
    According to the scan period pre-set, the media file stored in the first storage device is scanned, to determine the media text Whether part is marked with vital document mark.
  8. 8. according to the method described in any one of claim 1 to 7, it is characterised in that
    The first backup memory block is provided with first storage device;
    After the directory information for obtaining the media file, the directory information according to the media file, by described in Before media file is backuped in the second storage device, methods described also includes:
    The directory information of the media file of the acquisition is placed into the first backup memory block of first storage device;
    The directory information according to the media file, the media file, which is backuped in the second storage device, to be included:
    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 into second storage In equipment.
  9. 9. according to the method described in any one of claim 1 to 8, it is characterised in that methods described 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 Know;
    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.
  10. 10. according to the method for claim 9, it is characterised in that
    The second backup memory block is provided with first storage device;
    The directory information according to the media file, the media file, which is backuped in the first storage device, to be included:
    According to the directory information of the media file, the second backup that the media file is backuped in the first storage device is deposited Storage area.
  11. 11. according to the method described in any one of claim 1 to 10, it is characterised in that described according to the media file Directory information, after the media file is backuped in the second storage device, methods described also includes:
    Determine that the first storage device is replaced by the 3rd storage device by the user;
    By the media file synchronization for backuping in second storage device, described first storage device storage described in In 3rd storage device.
  12. 12. according to the method described in any one of claim 1 to 11, methods described also includes:
    Detect the working condition of first storage device;
    If detect 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 of user Equipment switching command;According to the storage device switching command, second storage is switched to set first storage device It is standby;
    Or
    Automatically first storage device is switched into second storage device.
  13. A kind of 13. device of media file backup, it is characterised in that including:
    Indexing unit, for receiving the instruction that user is media file marking value documents mark;
    Scanning element, for scanning the media file stored in the first storage device, to determine whether the media file marks There is vital document mark;
    Acquiring unit, if being marked with vital document mark for scanning element scanning to the media file, 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.
  14. 14. device according to claim 13, it is characterised in that
    The media file of the scanning element scanning is included in audio media files, video media file and picture file at least It is a kind of.
  15. 15. the device according to claim 13 or 14, it is characterised in that the 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, with the media text prompted the user whether to be the preservation or closed Part marking value documents identify;
    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.
  16. 16. the device according to claim 13 or 14, it is characterised in that the 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, it is important that the media file editing options include mark The option of file identification;
    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.
  17. 17. according to the device described in any one of claim 13 to 16, it is characterised in that the scanning element is specifically used for:
    The scan instruction of user is received, the scan instruction instruction is carried out to the media file stored in first storage device Scanning;
    According to the scan instruction of the user, the media file stored in first storage device is scanned, to determine the matchmaker Whether body file is marked with vital document mark.
  18. 18. according to the device described in any one of claim 13 to 16, it is characterised in that the scanning element 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 with Vital document identifies.
  19. 19. according to the device described in any one of claim 13 to 16, it is characterised in that the scanning element 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 media text Whether part is marked with vital document mark.
  20. 20. according to the device described in any one of claim 13 to 19, it is characterised in that
    The first backup memory block is provided with first storage device;
    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 First backup memory block of storage device;
    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 into second storage In equipment.
  21. 21. according to the device described in any one of claim 13 to 20, it is characterised in that
    The scanning element is additionally operable to scan the media file stored in the second storage device, whether to determine the media file It is marked with vital document mark;
    If the acquiring unit is additionally operable to the media file and is marked with vital document mark, the mesh of the media file is obtained Record information;
    The backup units are additionally operable to the directory information according to the media file, and the media file is backuped into the first storage In equipment.
  22. 22. according to the device described in any one of claim 21, it is characterised in that
    The second backup memory block is provided with first storage device;
    The backup units are specifically used for the directory information according to the media file, and the media file is backuped into first and deposited Store up the second backup memory block in equipment.
  23. 23. according to the device described in any one of claim 13 to 22, it is characterised in that described 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 to what in second storage device, described first storage device stored by described Media file synchronization is in the 3rd storage device.
  24. 24. according to the device described in any one of claim 13 to 23, described device also includes:
    Detection unit, for detecting the working condition of first storage device;
    Switch unit, if detecting that first storage device is in abnormal operation for the detection unit:
    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 described second automatically Storage device.
  25. A kind of 25. user equipment, it is characterised in that including:
    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:
    Receive the instruction that user is media file marking value documents mark;
    The media file stored in the first storage device is scanned, to determine whether the media file is marked with vital document mark Know;
    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.
  26. 26. user equipment according to claim 25, it is characterised in that
    First storage device include it is following any one:
    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 or storage card.
  27. 27. the user equipment according to claim 25 or 26, it is characterised in that the user equipment include mobile phone, computer, Tablet personal computer, personal digital assistant.
CN201710768953.6A 2012-12-26 2012-12-26 Media file backup method and device and user equipment Active CN107704339B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710768953.6A CN107704339B (en) 2012-12-26 2012-12-26 Media file backup method and device and user equipment

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710768953.6A CN107704339B (en) 2012-12-26 2012-12-26 Media file backup method and device and user equipment
CN201210575708.0A CN103902404B (en) 2012-12-26 2012-12-26 A kind of method, apparatus and user equipment of media file backup

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201210575708.0A Division CN103902404B (en) 2012-12-26 2012-12-26 A kind of method, apparatus and user equipment of media file backup

Publications (2)

Publication Number Publication Date
CN107704339A true CN107704339A (en) 2018-02-16
CN107704339B CN107704339B (en) 2021-06-15

Family

ID=50993741

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201210575708.0A Active CN103902404B (en) 2012-12-26 2012-12-26 A kind of method, apparatus and user equipment of media file backup
CN201710768953.6A Active CN107704339B (en) 2012-12-26 2012-12-26 Media file backup method and device and user equipment

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201210575708.0A Active CN103902404B (en) 2012-12-26 2012-12-26 A kind of method, apparatus and user equipment of media file backup

Country Status (1)

Country Link
CN (2) CN103902404B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110196785A (en) * 2018-02-27 2019-09-03 浙江宇视科技有限公司 Backup data management method, apparatus and electronic equipment
CN115988008A (en) * 2022-12-29 2023-04-18 江苏倍鼎网络科技有限公司 High-density storage method and system for cloud storage system

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103902404B (en) * 2012-12-26 2018-04-27 华为终端有限公司 A kind of method, apparatus and user equipment of media file backup
CN104407941B (en) * 2014-11-26 2018-11-23 上海爱数信息技术股份有限公司 A kind of windows file backup method based on archiving files attribute
CN106293513A (en) * 2016-07-26 2017-01-04 惠州市斯坦利科技有限公司 Movable storage device file reading and device
CN106227468A (en) * 2016-07-26 2016-12-14 惠州市斯坦利科技有限公司 Document handling method and device
CN106293515A (en) * 2016-07-26 2017-01-04 惠州市斯坦利科技有限公司 Flash memory device file reading and device
CN106293514A (en) * 2016-07-26 2017-01-04 惠州市斯坦利科技有限公司 The document handling method of flash memory device and device
CN106446229A (en) * 2016-10-08 2017-02-22 北京恒华伟业科技股份有限公司 Management method and device for necessity control over service function attachments
CN107195023A (en) * 2017-05-31 2017-09-22 深圳奥尼电子股份有限公司 Data storage method and automobile data recorder
CN112637302A (en) * 2020-12-16 2021-04-09 上海阅竞网络科技有限公司 Software operating system running on hardware equipment of Internet of things

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1547863A (en) * 2001-07-18 2004-11-17 ���˶�����ά������˹�ƶ��� Data security device
CN101446966A (en) * 2008-12-31 2009-06-03 中国建设银行股份有限公司 Data storage method and system
CN102169453A (en) * 2011-03-08 2011-08-31 杭州电子科技大学 File online backup method
JP2011205521A (en) * 2010-03-26 2011-10-13 Seiko Epson Corp Backup control device
CN102467419A (en) * 2010-11-10 2012-05-23 英业达股份有限公司 File backup method
CN103902404B (en) * 2012-12-26 2018-04-27 华为终端有限公司 A kind of method, apparatus and user equipment of media file backup

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070027936A1 (en) * 2005-07-28 2007-02-01 Stakutis Christopher J Determining changes made to a source file to transmit to a target location providing a mirror copy of the source file
CN102419720A (en) * 2011-09-29 2012-04-18 奇智软件(北京)有限公司 Method and device for backing up data of user

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1547863A (en) * 2001-07-18 2004-11-17 ���˶�����ά������˹�ƶ��� Data security device
CN101446966A (en) * 2008-12-31 2009-06-03 中国建设银行股份有限公司 Data storage method and system
JP2011205521A (en) * 2010-03-26 2011-10-13 Seiko Epson Corp Backup control device
CN102467419A (en) * 2010-11-10 2012-05-23 英业达股份有限公司 File backup method
CN102169453A (en) * 2011-03-08 2011-08-31 杭州电子科技大学 File online backup method
CN103902404B (en) * 2012-12-26 2018-04-27 华为终端有限公司 A kind of method, apparatus and user equipment of media file backup

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
MICROSOFT: "向文件添加标记或其他属性", 《HTTP://WINDOWS.MICROSOFT.COM/ZH-CN/WINDOWS-VISTA/ADD-TAGS-OR-OTHER-PROPERTIES-TO-A-FILE》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110196785A (en) * 2018-02-27 2019-09-03 浙江宇视科技有限公司 Backup data management method, apparatus and electronic equipment
CN110196785B (en) * 2018-02-27 2022-06-14 浙江宇视科技有限公司 Data backup management method and device and electronic equipment
CN115988008A (en) * 2022-12-29 2023-04-18 江苏倍鼎网络科技有限公司 High-density storage method and system for cloud storage system

Also Published As

Publication number Publication date
CN103902404B (en) 2018-04-27
CN103902404A (en) 2014-07-02
CN107704339B (en) 2021-06-15

Similar Documents

Publication Publication Date Title
CN103902404B (en) A kind of method, apparatus and user equipment of media file backup
CN108304112B (en) Data processing method and device
CN107870798A (en) The page layout processing method and terminal of application program
US20110202505A1 (en) Computer program product and data backup method
CN104820683A (en) Terminal
CN108073346A (en) A kind of record screen method, terminal and computer readable storage medium
CN105955845A (en) Data recovery method and device
CN107733662A (en) Group's restoration methods and device
CN105843903A (en) File management method and terminal
CN102419720A (en) Method and device for backing up data of user
CN104834687A (en) Picture display method
CN107451488A (en) A kind of method, device and mobile terminal that personal information is provided
CN107515716A (en) Billboard card management method, apparatus, computer equipment and storage medium
CN105094811A (en) Method can device for processing events
CN108984339A (en) Data reconstruction method and Related product
CN107800776A (en) A kind of document handling method, terminal, server and computer-readable medium
CN108388386A (en) A kind of information processing method, terminal device and computer readable storage medium
CN103279337A (en) Method and apparatus for executing application file and screen capture method and apparatus therefor
CN107451487A (en) A kind of processing method of private information, device and mobile terminal
US20180188911A1 (en) Method and apparatus for filtering object by using pressure
US9977621B2 (en) Multimedia data backup method, user terminal and synchronizer
CN103098055A (en) Recursive navigation in mobile customer relations management
CN107704337A (en) Method, mobile terminal and the device with store function of factory reset
CN101957833A (en) Data processing method, system and computer program
CN104424306A (en) Method, device and terminal equipment for recording log

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 518129 Building 2, B District, Bantian HUAWEI base, Longgang District, Shenzhen, Guangdong.

Applicant after: Huawei terminal (Shenzhen) Co.,Ltd.

Address before: 518129 Building 2, B District, Bantian HUAWEI base, Longgang District, Shenzhen, Guangdong.

Applicant before: HUAWEI DEVICE Co.,Ltd.

CB02 Change of applicant information
TA01 Transfer of patent application right

Effective date of registration: 20181221

Address after: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Applicant after: HUAWEI DEVICE Co.,Ltd.

Address before: 518129 Building 2, B District, Bantian HUAWEI base, Longgang District, Shenzhen, Guangdong.

Applicant before: Huawei terminal (Shenzhen) Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant