CN110362422A - A kind of data back up method, apparatus and system - Google Patents
A kind of data back up method, apparatus and system Download PDFInfo
- Publication number
- CN110362422A CN110362422A CN201810321465.5A CN201810321465A CN110362422A CN 110362422 A CN110362422 A CN 110362422A CN 201810321465 A CN201810321465 A CN 201810321465A CN 110362422 A CN110362422 A CN 110362422A
- Authority
- CN
- China
- Prior art keywords
- file
- backed
- data
- stored
- face characteristic
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management of the data involved in backup or backup restore
- G06F11/1451—Management of the data involved in backup or backup restore by selection of backup contents
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0608—Saving storage space on storage systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0638—Organizing or formatting or addressing of data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0673—Single storage device
- G06F3/0674—Disk device
- G06F3/0676—Magnetic disk device
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Quality & Reliability (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the present application provides a kind of data back up method, apparatus and system.The described method includes: the data to be stored that storage equipment receiving terminal apparatus is sent, detects the file type of the file in data to be stored, according to the file type, determines the file to be backed up in the data to be stored, back up the file to be backed up.Using scheme provided by the embodiments of the present application, the disk utilization of storage equipment can be improved.
Description
Technical field
This application involves technical field of data storage, more particularly to a kind of data back up method, apparatus and system.
Background technique
With the development of technology, user can be used terminal device and the operation such as take pictures, records a video, and generate in terminal device
Data volume it is also more and more.User, which can choose, is stored in the storage equipment such as server for the user data in terminal device
In, to reduce the data volume in terminal device.User data is lost due to hard disk failure etc. in order to prevent, stores equipment
User data would generally be backed up.
In the related technology, storage equipment receive terminal device transmission user data when, can to user data into
Row storage, and user data is backed up, i.e., it, also can be by user while user data is stored in designated disk
Data are stored in specified backup disk.Even if in this way, designated disk damage, can also be according to backup disk to user data
Restored.
But since storage equipment can all back up all user data, as the user generated in terminal device
When the data volume of data is very big, storage equipment just needs to back up a large amount of user data, causes occupancy storage equipment a large amount of
Disk space, the disk utilization for storing equipment are lower.
Summary of the invention
The embodiment of the present application has been designed to provide a kind of data back up method, apparatus and system, is set with improving storage
Standby disk utilization.
In order to achieve the above object, the embodiment of the present application provides a kind of data back up method, and this method is applied to storage
Equipment, this method comprises:
The data to be stored that receiving terminal apparatus is sent;
Detect the file type of the file in the data to be stored;
According to the file type, the file to be backed up in the data to be stored is determined;
Back up the file to be backed up.
Optionally, described according to the file type, the step of determining the file to be backed up in the data to be stored, packet
It includes:
It is described by having in the data to be stored when the file type is predetermined file type to be backed up
The file of file type is determined as file to be backed up.
Optionally, the step of backup file to be backed up, comprising:
From in the corresponding relationship of preset file type to be backed up and backup strategy, the file of the file to be backed up is determined
The corresponding backup strategy of type;According to determining backup strategy, the file to be backed up is backed up.
Optionally, the file type to be backed up determines in the following ways: receive that the terminal device sends to standby
Part file type.
Optionally, described according to the file type, the step of determining the file to be backed up in the data to be stored, packet
It includes:
When the file type is image type, the file in the data to be stored is image, extracts described image
In face characteristic;
According to the face characteristic, the file to be backed up in the data to be stored is determined.
Optionally, before extracting the face characteristic in described image, the method also includes:
Judge with the presence or absence of human face region in described image, if it is present executing the people extracted in described image
The step of face feature.
Optionally, described according to the face characteristic, the step of determining the file to be backed up in the data to be stored, packet
It includes:
The corresponding target face mark of the face characteristic is determined from preset face characteristic library, is judged preset to standby
It is identified in part mark with the presence or absence of the target face, if it is present described image is determined as in the data to be stored
File to be backed up;Wherein, the face characteristic library is used to store the corresponding relationship of face characteristic and face mark;Alternatively,
Judge with the presence or absence of the face characteristic in predetermined each face characteristic to be backed up, if it is present will
Described image is determined as the file to be backed up in the data to be stored.
Optionally, the step of backup file to be backed up, comprising:
From in the corresponding relationship of preset face mark and backup strategy, determine that the target face identifies corresponding backup
Strategy backs up the file to be backed up according to determining backup strategy;Alternatively,
According in preset face characteristic to be backed up and the corresponding relationship of backup strategy, determine that the face characteristic is corresponding
Backup strategy backs up the file to be backed up according to determining backup strategy.
Optionally, each face characteristic to be backed up is determined in the following ways:
Receive the sample facial image to be backed up that the terminal device is sent;Extract the sample of the sample facial image
Face characteristic, as face characteristic to be backed up.
Optionally, after the data to be stored that receiving terminal apparatus is sent, the method also includes: by described wait store
Data are stored to designated storage location.
The embodiment of the present application also provides a kind of data backup device, which is applied to storage equipment, which includes:
Receiving module, the data to be stored sent for receiving terminal apparatus;
Detection module, for detecting the file type of the file in the data to be stored;
Determining module, for determining the file to be backed up in the data to be stored according to the file type;
Backup module, for backing up the file to be backed up.
Optionally, the determining module, is specifically used for:
It is described by having in the data to be stored when the file type is predetermined file type to be backed up
The file of file type is determined as file to be backed up.
Optionally, the backup module, is specifically used for:
From in the corresponding relationship of preset file type to be backed up and backup strategy, the file of the file to be backed up is determined
The corresponding backup strategy of type;According to determining backup strategy, the file to be backed up is backed up.
Optionally, the determining module, comprising:
Extracting sub-module, for when the file type is image type, the file in the data to be stored to be figure
Picture extracts the face characteristic in described image;
Submodule is determined, for determining the file to be backed up in the data to be stored according to the face characteristic.
Optionally, the determining submodule is specifically used for:
The corresponding target face mark of the face characteristic is determined from preset face characteristic library, is judged preset to standby
It is identified in part mark with the presence or absence of the target face, if it is present described image is determined as in the data to be stored
File to be backed up;Wherein, the face characteristic library is used to store the corresponding relationship of face characteristic and face mark;Alternatively,
The determining submodule is specifically used for:
Judge with the presence or absence of the face characteristic in predetermined each face characteristic to be backed up, if it is present will
Described image is determined as the file to be backed up in the data to be stored.
Optionally, the backup module, is specifically used for:
From in the corresponding relationship of preset face mark and backup strategy, determine that the target face identifies corresponding backup
Strategy backs up the file to be backed up according to determining backup strategy;Alternatively,
The backup module, is specifically used for:
According in preset face characteristic to be backed up and the corresponding relationship of backup strategy, determine that the face characteristic is corresponding
Backup strategy backs up the file to be backed up according to determining backup strategy.
Optionally, described device further include:
Memory module, for after the data to be stored that receiving terminal apparatus is sent, the data to be stored to be stored
To designated storage location.
The embodiment of the present application also provides a kind of data backup system, which includes: storage equipment and terminal device;
Terminal device, for sending data to be stored to storage equipment;
Equipment is stored, for the data to be stored that receiving terminal apparatus is sent, detects the file in the data to be stored
File type the file to be backed up in the data to be stored is determined according to the file type, back up the text to be backed up
Part.
Optionally, the storage equipment is specifically used for:
It is described by having in the data to be stored when the file type is predetermined file type to be backed up
The file of file type is determined as file to be backed up.
Optionally, storage equipment is specifically used for:
From in the corresponding relationship of preset file type to be backed up and backup strategy, the file of the file to be backed up is determined
The corresponding backup strategy of type;According to determining backup strategy, the file to be backed up is backed up.
Optionally, terminal device is also used to send file type to be backed up to storage equipment;Equipment is stored, is also used to connect
Receive the file type to be backed up that terminal device is sent.
Optionally, storage equipment is specifically used for:
When the file type is image type, the file in the data to be stored is image, extracts described image
In face characteristic;According to the face characteristic, the file to be backed up in the data to be stored is determined.
Optionally, storage equipment is also used to:
Before extracting the face characteristic in described image, judge with the presence or absence of human face region in described image, if deposited
Then extracting the face characteristic in described image.
Optionally, storage equipment is specifically used for:
The corresponding target face mark of the face characteristic is determined from preset face characteristic library, is judged preset to standby
It is identified in part mark with the presence or absence of the target face, if it is present described image is determined as in the data to be stored
File to be backed up;Wherein, the face characteristic library is used to store the corresponding relationship of face characteristic and face mark;Alternatively,
The storage equipment, is specifically used for:
Judge with the presence or absence of the face characteristic in predetermined each face characteristic to be backed up, if it is present will
Described image is determined as the file to be backed up in the data to be stored.
Optionally, storage equipment is specifically used for:
From in the corresponding relationship of preset face mark and backup strategy, determine that the target face identifies corresponding backup
Strategy backs up the file to be backed up according to determining backup strategy;Alternatively,
Storage equipment is specifically used for:
According in preset face characteristic to be backed up and the corresponding relationship of backup strategy, determine that the face characteristic is corresponding
Backup strategy backs up the file to be backed up according to determining backup strategy.
Optionally, terminal device is also used to send sample facial image to be backed up to the storage equipment;Storage is set
It is standby, it is also used to receive the sample facial image to be backed up that the terminal device is sent, extracts the sample people of sample facial image
Face feature, as face characteristic to be backed up.
Optionally, storage equipment is also used to:
After the data to be stored that receiving terminal apparatus is sent, the data to be stored is stored to specified storage position
It sets.
The embodiment of the present application also provides a kind of storage equipment, which is characterized in that including processor, communication interface, storage
Device and communication bus, wherein processor, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes data backup provided by the embodiments of the present application
Method.This method comprises:
The data to be stored that receiving terminal apparatus is sent;
Detect the file type of the file in the data to be stored;
According to the file type, the file to be backed up in the data to be stored is determined;
Back up the file to be backed up.
The embodiment of the present application also provides a kind of computer readable storage medium, stored in the computer readable storage medium
There is computer program, the computer program realizes data back up method provided by the embodiments of the present application when being executed by processor.
This method comprises:
The data to be stored that receiving terminal apparatus is sent;
Detect the file type of the file in the data to be stored;
According to the file type, the file to be backed up in the data to be stored is determined;
Back up the file to be backed up.
In data back up method provided by the embodiments of the present application, apparatus and system, storage equipment can receive terminal
When the data to be stored that equipment is sent, the file type of the file in data to be stored is detected, according to the file type, is determined
File to be backed up in data to be stored backs up the file to be backed up.Due to the embodiment of the present application according to file type from wait deposit
It stores up and determines file to be backed up in data, without backing up the All Files in data to be stored, therefore can reduce standby
The data volume of part data saves the disk space of storage equipment, and then improves the disk utilization of storage equipment.Certainly, implement
Any product or method of the application does not necessarily require achieving all the advantages described above at the same time.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described.It should be evident that the accompanying drawings in the following description is only this
Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of data back up method provided by the embodiments of the present application;
Fig. 2 is a kind of flow diagram of step S103 in Fig. 1;
Fig. 3 is another flow diagram of step S103 in Fig. 1;
Fig. 4 is another flow diagram of data back up method provided by the embodiments of the present application;
Fig. 5 is terminal device provided by the embodiments of the present application and a kind of interaction flow schematic diagram for storing equipment;
Fig. 6 is a kind of structural schematic diagram of data backup device provided by the embodiments of the present application;
Fig. 7 is a kind of structural schematic diagram of data backup system provided by the embodiments of the present application;
Fig. 8 is a kind of structural schematic diagram of storage equipment provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Whole description.Obviously, described embodiment is only a part of the embodiment of the application, instead of all the embodiments.Base
Embodiment in the application, those of ordinary skill in the art are obtained all without making creative work
Other embodiments shall fall in the protection scope of this application.
In order to improve the disk utilization of storage equipment, the embodiment of the present application provides a kind of data back up method, device
And system.Below by specific embodiment, the application is described in detail.
Fig. 1 is a kind of flow diagram of data back up method provided by the embodiments of the present application.This method is applied to storage
Equipment, the storage equipment can be the server except Cloud Server or Cloud Server, or the calculating except server
Machine equipment.This method comprises the following steps S101~step S104:
Step S101: the data to be stored that receiving terminal apparatus is sent.
Wherein, data to be stored can be user data, or other data than user data.Number of users
According to may include: image data, video data, document data, music data and program data etc..
In the present embodiment, data to be stored can be sent to storage equipment by terminal device, and storage equipment can receive end
The data to be stored that end equipment is sent.It, can also be by data to be stored after the data to be stored that receiving terminal apparatus is sent
It stores to designated storage location.Wherein, designated storage location can be pre-set storage location.For example, specified storage position
Set to be the specified folder in designated disk.
Step S102: the file type of the file in detection data to be stored.
Wherein, file is the obtained number after being encoded using specific coding format to data information in computer
According to file can be image, video, document, music and program etc., and file type may include image type, video type, text
Shelves type, music type and Program Type etc..
Data to be stored may include a file or multiple files.When in data to be stored including multiple files, respectively
The file type of a file may be the same or different.
It, can be according to the extension of the file in data to be stored when detecting the file type of the file in data to be stored
The file type of name detection file.For example, can determine text as the extension of file entitled .docx .txt .ppt .pdf etc.
The file type of part is Doctype;As the extension of file entitled .jpg .png, bmp etc., the files classes of file can be determined
Type is image type.
File type can also be determined according to the file header data of the file in data to be stored.For example, working as file header number
When according to for FFD8FF, this document is the image type of jpg format, and when file header data are 89504E47, this document is png lattice
The image type of formula;When file header data are 57415645, this document is the video type of wav format, when file header data
When being 41564920, this document is the video type of avi format.Above-mentioned file header data are hexadecimal data.
Data to be stored, which was stored to the step of designated storage location, to be executed after step s 102.In this reality
It applies in example, it, specifically can be according to the text of the file in data to be stored when storing data to be stored to designated storage location
File in data to be stored is stored into designated storage location the storage location of the file type of this document by part type.Refer to
Determine each storage location that storage location includes different file types, the storage location of different file types is pre-set deposits
Storage space is set.
For example, in data to be stored including video type file and music type file when, can be by video type
File store into the file of video type, the file of music type is stored into the file of music type.
Step S103: according to above-mentioned file type, the file to be backed up in data to be stored is determined.
After determining the file type of file in data to be stored, the file of particular file types can be determined as to
Backup file avoids carrying out nothing to data to be stored in this way without regarding the file of All Files type as file to be backed up
The backup of difference.
Step S104: the above-mentioned file to be backed up of backup.
In this step, when backing up above-mentioned file to be backed up, file to be backed up can be stored to preset backup location.It should
Backup location can be the specified folder of designated disk.Backup location is to be located in different disk with designated storage location.This
Sample can restore file according to the data in backup location where designated storage location when disk failures.
It, can be according to disk array (Redundant Arrays of when backing up above-mentioned file to be backed up
Independent Disks, RAID) algorithm, backs up file to be backed up.It can also be according to other than RAID algorithm
Other algorithms back up file to be backed up.
As shown in the above, equipment is stored in the present embodiment can be in the data to be stored for receiving terminal device transmission
When, the file type for detecting the file in data to be stored determines to be backed up in data to be stored according to the file type
File backs up the file to be backed up.Since the present embodiment determines file to be backed up, nothing according to file type from data to be stored
All Files in data to be stored need to be backed up, therefore the data volume of Backup Data can be reduced, saved storage and set
Standby disk space, and then improve the disk utilization of storage equipment.
In another embodiment of the application, on the basis of embodiment illustrated in fig. 1, step S103, according to above-mentioned files classes
Type, can specifically include the step of determining the file to be backed up in data to be stored:
When above-mentioned file type is predetermined file type to be backed up, will there is above-mentioned text in the data to be stored
The file of part type is determined as file to be backed up.
As a kind of specific embodiment, above-mentioned steps S103 can be carried out according to flow diagram shown in Fig. 2, specific to wrap
It includes:
Step S103a: judging whether this document type is predetermined file type to be backed up, if it is, executing
Step S103b, if it is not, then can not be handled.
In the present embodiment, file type to be backed up can be the file type to be backed up of received terminal device transmission.Its
In, file type to be backed up can be terminal device according to the file type of the input operation determination of user.In this way, storage equipment
The file type to be backed up that can be specified according to user backs up data to be stored, can be improved user experience, rather than
It is indiscriminate to data to be stored progress to treat, i.e., its whole is backed up.
Step S103b: the file in data to be stored with this document type is determined as file to be backed up.
When there are when the file of multiple file types, judge whether each file type is predetermined in data to be stored
File type to be backed up, the file that file type belongs to file type to be backed up is determined as file to be backed up, file type
The file for being not belonging to file type to be backed up can not know as file to be backed up, to not back up to this document.
To sum up, in the present embodiment, the file of file type to be backed up specific in data to be stored can be determined as to standby
Part file, avoids backing up the file of All Files type, which file carried out so as to more accurately determination
Backup, which file is without backup.
In another embodiment of the application, in the embodiment depicted in figure 2, step S104 backs up the step of file to be backed up
Suddenly, it may comprise steps of 1a~step 2a:
Step 1a: from the corresponding relationship of preset file type to be backed up and backup strategy, file to be backed up is determined
The corresponding backup strategy of file type.
Wherein, backup strategy can be understood as backup rules.Backup strategy may include: by file backup in different number
Strategy in a disk.For example, backup strategy can be, by file backup in two different disks;Or by file
It backs up medium in three different disks.In the present embodiment, it can be arranged according to the significance level of file type to be backed up and be backed up
Strategy, to keep storage equipment more accurate to the backup of file.
By file backup in different number disk, it can be understood as file is replicated more parts, in different number magnetic
A this document is stored in each disk of disk.By file backup in multiple disks, it can be improved extensive after file corruption
Multiple probability, to improve the safety of backup file.
In the present embodiment, the corresponding relationship of file type and backup strategy to be backed up can set for preparatory received terminal
The corresponding relationship of file type and backup strategy to be backed up that preparation is sent.Wherein, pair of file type and backup strategy to be backed up
It should be related to, can be terminal device according to the corresponding relationship of the input operation determination of user.In this way, storage equipment can according to
The specified corresponding backup operation of file type to be backed up in family, backs up the file to be backed up of different file types, to each
A file is more accurately backed up, and user experience is improved.
Step 2a: according to determining backup strategy, file to be backed up is backed up.
For example, file to be backed up can be replicated two parts when backup strategy is by file backup in two disks, point
It is not stored in two different designated disks;When backup strategy be by file backup in three disks when, can will be to standby
Part file replicates three parts, is respectively stored in three different designated disks.
To sum up, in the present embodiment, can according to the corresponding relationship of type to be backed up and backup strategy, to file to be backed up into
Row backup, and then file to be backed up is more accurately backed up according to determining backup strategy.
In another embodiment of the application, on the basis of embodiment illustrated in fig. 1, step S103, according to above-mentioned files classes
Type, can be carried out according to flow diagram shown in Fig. 3, be specifically included at the step of determining the file to be backed up in data to be stored
Following steps S103A and step S103B:
Step S103A: when above-mentioned file type is image type, the file in data to be stored is image, extracts figure
Face characteristic as in.
Wherein, face characteristic may include interpupillary distance, facial feature points position and face mask etc., which is face
Face characteristic in details.When extracting the face characteristic in image, it can be extracted and be calculated using face characteristic in the related technology
Method carries out.
This step is specifically as follows, and judges whether above-mentioned file type is image type, if it is, in data to be stored
File be image, extract image in face characteristic.
In order to improve treatment effeciency, in another embodiment, before extracting the face characteristic in image, it can be determined that
It whether there is human face region in image, if it is present executing the step of extracting the face characteristic in image;If it does not,
It can not then be handled, i.e., the image not backed up.When whether there is human face region in judging image, it can extract
Feature in image judges with the presence or absence of Given Face feature in this feature, if it is present determining that there are face areas in image
Domain.Wherein, Given Face feature can be the key feature of face, such as ocular, mouth region and nasal area etc..It should
Key feature is more rough face characteristic.
There are when human face region in judging image, then extract the face characteristic in image, without to all images all
The operation for extracting face characteristic is executed, can be improved treatment effeciency.
Step S103B: according to above-mentioned face characteristic, the file to be backed up in data to be stored is determined.
In this step, image can be selected from the image in data to be stored according to face characteristic, as text to be backed up
Part.
To sum up, in the present embodiment, when the file in data to be backed up is image, the face that can be extracted in image is special
Sign determines file to be backed up according to face characteristic, and then can be selected to carry out which image according to different face characteristics standby
Part, therefore can more accurately determine file to be backed up.
In another embodiment of the application, on the basis of the above embodiments, step S103B is special according to above-mentioned face
The step of levying, determining the file to be backed up in data to be stored, can specifically include following implementation:
Mode one determines the corresponding target face mark of face characteristic from preset face characteristic library, judges preset
In mark to be backed up with the presence or absence of target face identify, if it is present by the image be determined as in data to be stored to standby
Part file.
Wherein, face characteristic library is used to store the corresponding relationship of face characteristic and face mark.Face mark, can be people
Face ID (Identification) or the person names of face etc..
The mark to be backed up that mark to be backed up can send for received terminal device.Mark to be backed up can set for terminal
The standby mark determining according to the input operation of user.
It in a kind of application scenarios, stores and is stored with face characteristic library in equipment, there is also face spies in terminal device
Levy library.The face feature database can be shown to user by terminal device, and be determined according to the input of user operation from face characteristic
Mark to be backed up is determined in library, which is sent to storage equipment.Storage equipment can receive terminal device transmission
Mark to be backed up.
Mode two judges with the presence or absence of above-mentioned face characteristic in predetermined each face characteristic to be backed up, if deposited
In the file to be backed up being then determined as above-mentioned image in data to be stored.
Wherein, above-mentioned face characteristic to be backed up can be with are as follows: the face in image to be backed up sent in advance to terminal device
Region carries out the face characteristic obtained after feature extraction.
Judge that Ke Yiwei will be above-mentioned with the presence or absence of above-mentioned face characteristic in predetermined each face characteristic to be backed up
Face characteristic is matched with each face characteristic to be backed up, when successful match, is determined and is deposited in each face characteristic to be backed up
In above-mentioned face characteristic.
To sum up, in the present embodiment, storage equipment can be according to face characteristic using the image comprising designated person as to standby
Part file, so as to more accurately determine file to be backed up.
In another embodiment of the application, on the basis of the above embodiments, storage equipment can be in the following ways
Determine each face characteristic to be backed up:
The sample facial image to be backed up that receiving terminal apparatus is sent, the sample face for extracting sample facial image are special
Sign, as face characteristic to be backed up.
Wherein, sample facial image can be understood as the image comprising face to be backed up.It can wrap in sample facial image
Containing background area, background area can also not included.
In the present embodiment, terminal device can determine sample facial image to be backed up according to the input operation of user, and
Determining sample facial image to be backed up is sent to storage equipment.Storage equipment can receive end device transmission to
The sample facial image of backup.It is special that the present embodiment can obtain face to be backed up according to the sample facial image that terminal device is sent
Sign, can more accurately determine face characteristic to be backed up.
In another embodiment of the application, on the basis of the above embodiments, step S104 backs up file to be backed up
Step, including following implementation operation:
Operation one determines that target face mark is corresponding from the corresponding relationship of preset face mark and backup strategy
Backup strategy backs up file to be backed up according to determining backup strategy.
Wherein, the corresponding relationship of face mark and backup strategy can be the face of received terminal device transmission in advance
The corresponding relationship of mark and backup strategy.The corresponding relationship of face mark and backup strategy can be terminal device according to user
The determining corresponding relationship of input operation.In this way, storage equipment can be corresponding with backup strategy according to specified face mark
Relationship determines backup strategy, can more accurately back up to file to be backed up, can also improve user experience.
Operation two, according in preset face characteristic to be backed up and the corresponding relationship of backup strategy, determines face characteristic pair
The backup strategy answered backs up file to be backed up according to determining backup strategy.
Wherein, the corresponding relationship of face characteristic to be backed up and backup strategy can determine in the following ways: receive terminal
The sample facial image to be backed up and corresponding backup strategy that equipment is sent, the sample face for extracting sample facial image are special
Sign generates the corresponding relationship of each face characteristic to be backed up and backup strategy as face characteristic to be backed up.Wherein, terminal is set
The sample facial image to be backed up and corresponding backup strategy that preparation is sent can operate for terminal device according to the input of user
Determining sample facial image to be backed up and corresponding backup strategy.
It, can be with reference to saying in step 2a in above-described embodiment when backing up file to be backed up according to determining backup strategy
Bright, details are not described herein again.
Fig. 4 is another flow diagram of data back up method provided by the embodiments of the present application.This method is applied to deposit
Equipment is stored up, which can be the server except Cloud Server or Cloud Server, or the meter except server
Calculate machine equipment.This method comprises the following steps S401~step S408:
Step S401: the data to be stored that receiving terminal apparatus is sent.
Step S402: the file type of the file in detection data to be stored.
Wherein, step S401 and step S402 respectively in embodiment illustrated in fig. 1 step S101 and step S102 it is identical,
It illustrates and may refer to embodiment illustrated in fig. 1, details are not described herein again.
Step S403: judging whether above-mentioned file type is image type, if not, S404 is thened follow the steps, if not,
Then follow the steps S406.
Step S404: when above-mentioned file type is not image type, judge whether this document type is predetermined
File type to be backed up, if so, S405 is thened follow the steps, if it is not, then can not be handled.In the present embodiment, to standby
Image type is not included in part file type.
Step S405: the file in the data to be stored with above-mentioned file type is determined as file to be backed up.
Wherein, step S404 and step S405 respectively with the step S103a and step S103b phase in embodiment illustrated in fig. 2
Together, illustrating may refer to embodiment illustrated in fig. 2, and details are not described herein again.
Step S406: when above-mentioned file type is image type, the file in data to be stored is image, extracts image
In face characteristic.
Step S407: according to above-mentioned face characteristic, the file to be backed up in data to be stored is determined.
Wherein, step S406 and step S407 respectively with the step S103A and step S103B phase in embodiment illustrated in fig. 3
Together, illustrating may refer to embodiment illustrated in fig. 3, and details are not described herein again.
Step S408: file to be backed up is backed up.
Wherein, step S408 is identical as the step S104 in embodiment illustrated in fig. 1, and illustrating may refer to shown in Fig. 1
Embodiment, details are not described herein again.
As shown in the above, equipment is stored in the present embodiment can be in the data to be stored for receiving terminal device transmission
When, the file type for detecting the file in data to be stored determines to be backed up in data to be stored according to the file type
File backs up the file to be backed up.Since the present embodiment determines file to be backed up, nothing according to file type from data to be stored
All Files in data to be stored need to be backed up, therefore the data volume of Backup Data can be reduced, saved storage and set
Standby disk space, and then improve the disk utilization of storage equipment.
Fig. 5 is terminal device provided by the embodiments of the present application and a kind of interaction diagrams for storing equipment.In Fig. 5, eventually
End equipment can be under the operation of the triggering non-image files backup of user, and (this document type does not include figure to display file type
As type), it is selected for user.Terminal device can receive the file type to be backed up of user's input, and show backup strategy, connect
The corresponding backup strategy of each file type to be backed up for receiving user's input, by file type to be backed up and corresponding backup strategy
It is sent to storage equipment.Storage equipment can receive the file type to be backed up and corresponding backup strategy of terminal device transmission.
Terminal device can be under the operation of the triggering image file backup of user, display setting picture or entrance of taking pictures,
Picture is selected for user or is taken pictures.Terminal device can obtain sample facial image to be backed up under the operation of user, and
Sample facial image is sent to storage equipment.Equipment is stored after receiving sample facial image, from sample facial image
Middle extraction obtains face characteristic to be backed up, and returns to terminal device and extract successful message.Terminal device is receiving storage
When the successful message of extraction that equipment returns, display for personage in image backup strategy, for user setting.Terminal device can
To obtain the corresponding backup strategy of each sample facial image under the operation of user, and each sample facial image is corresponding
Backup strategy is sent to storage equipment.Each sample facial image that storage equipment can receive terminal device transmission is corresponding
Backup strategy, and generate the corresponding backup strategy of each face characteristic to be backed up.In this way, storage equipment is receiving terminal device
It, can file to be backed up and backup strategy and each face characteristic to be backed up based on the received when the data to be stored of transmission
Corresponding backup strategy determines file to be backed up from data to be stored, and standby to file to be backed up progress according to backup strategy
Part.
Fig. 6 is a kind of structural schematic diagram of data backup device provided by the embodiments of the present application.The Installation practice and Fig. 1
Shown embodiment of the method is corresponding.The Installation practice is applied to storage equipment.The device includes:
Receiving module 601, the data to be stored sent for receiving terminal apparatus;
Detection module 602, for detecting the file type of the file in the data to be stored;
Determining module 603, for determining the file to be backed up in the data to be stored according to the file type;
Backup module 604, for backing up the file to be backed up.
In another embodiment of the application, in embodiment illustrated in fig. 6, determining module 603 is specifically used for:
It is described by having in the data to be stored when the file type is predetermined file type to be backed up
The file of file type is determined as file to be backed up.
In another embodiment of the application, in embodiment illustrated in fig. 6, backup module 604 is specifically used for:
From in the corresponding relationship of preset file type to be backed up and backup strategy, the file of the file to be backed up is determined
The corresponding backup strategy of type;
According to determining backup strategy, the file to be backed up is backed up.
In another embodiment of the application, in embodiment illustrated in fig. 6, receiving module 601 is also used to:
The file type to be backed up that receiving terminal apparatus is sent.
In another embodiment of the application, in embodiment illustrated in fig. 6, determining module 603 includes:
Extracting sub-module (not shown) is used for when the file type is image type, the data to be stored
In file be image, extract described image in face characteristic;
Determine submodule (not shown), for according to the face characteristic, determine in the data to be stored to
Backup file.
In another embodiment of the application, in embodiment illustrated in fig. 6, the device further include:
Judgment module (not shown), for judging described image before extracting the face characteristic in described image
In whether there is human face region, if it is present extract described image in face characteristic.
In another embodiment of the application, in embodiment illustrated in fig. 6, determine that submodule is specifically used for:
The corresponding target face mark of the face characteristic is determined from preset face characteristic library, is judged preset to standby
It is identified in part mark with the presence or absence of the target face, if it is present described image is determined as in the data to be stored
File to be backed up;Wherein, the face characteristic library is used to store the corresponding relationship of face characteristic and face mark;Alternatively,
Determine that submodule is specifically used for:
Judge with the presence or absence of the face characteristic in predetermined each face characteristic to be backed up, if it is present will
Described image is determined as the file to be backed up in the data to be stored.
In another embodiment of the application, in embodiment illustrated in fig. 6, backup module 604 is specifically used for:
From in the corresponding relationship of preset face mark and backup strategy, determine that the target face identifies corresponding backup
Strategy backs up the file to be backed up according to determining backup strategy;Alternatively,
The backup module, is specifically used for:
According in preset face characteristic to be backed up and the corresponding relationship of backup strategy, determine that the face characteristic is corresponding
Backup strategy backs up the file to be backed up according to determining backup strategy.
In another embodiment of the application, in embodiment illustrated in fig. 6, determining module 603 is also used to using following operation
Determine each face characteristic to be backed up:
Receive the sample facial image to be backed up that the terminal device is sent;
The sample face characteristic for extracting the sample facial image, as face characteristic to be backed up.
In another embodiment of the application, in embodiment illustrated in fig. 6, the device further include:
Memory module (not shown), for after the data to be stored that receiving terminal apparatus is sent, will it is described to
Storing data is stored to designated storage location.
Since above-mentioned apparatus embodiment is obtained based on embodiment of the method shown in Fig. 1, with this method skill having the same
Art effect, therefore details are not described herein for the technical effect of Installation practice.For device embodiment, since it is substantially similar
In embodiment of the method, so describing fairly simple, the relevent part can refer to the partial explaination of embodiments of method.
Fig. 7 is a kind of structural schematic diagram of data backup system provided by the embodiments of the present application.The system includes: that storage is set
Standby 701 and terminal device 702.
In the present embodiment, terminal device 702, for sending data to be stored to the storage equipment 701;
Equipment 701 is stored, for the data to be stored that receiving terminal apparatus 702 is sent, detects the text in data to be stored
The file type of part determines the file to be backed up in the data to be stored according to the file type, backs up described to be backed up
File.
Wherein, data to be stored can be user data, or other data than user data.Number of users
According to may include: image data, video data, document data, music data and program data etc..
In the present embodiment, data to be stored can be sent to storage equipment by terminal device, and storage equipment can receive end
The data to be stored that end equipment is sent.Equipment is stored after the data to be stored that receiving terminal apparatus is sent, it can also will be to
Storing data is stored to designated storage location.Wherein, designated storage location can be pre-set storage location.For example, referring to
Determining storage location can be the specified folder in designated disk.
File is the obtained data after being encoded using specific coding format to data information in computer, file
Can for image, video, document, music and program etc., file type may include image type, video type, Doctype,
Music type and Program Type etc..
Data to be stored may include a file or multiple files.When in data to be stored including multiple files, respectively
The file type of a file may be the same or different.
Equipment 701 is stored when detecting the file type of the file in data to be stored, it can be according in data to be stored
File extension name detection file file type.It can also be determined according to the file header data of the file in data to be stored
File type.
Storage equipment 701 stores data to be stored can also be in detection data to be stored to the step of designated storage location
In file file type after execute.In such an embodiment, storage equipment is deposited storing data to be stored to specified
When storage space is set, specifically can according to the file type of the file in data to be stored, by the file in data to be stored store to
The storage location of the file type of this document in designated storage location.Designated storage location includes that each of different file types deposits
Storage space is set, and the storage location of different file types is pre-set storage location.
After determining the file type of file in data to be stored, storage equipment 701 can be by particular file types
File is determined as file to be backed up, in this way without regarding the file of All Files type as file to be backed up, avoids treating and deposit
It stores up data and carries out indiscriminate backup.
When storage equipment 701 backs up above-mentioned file to be backed up, file to be backed up can be stored to preset backup location.
The backup location can be the specified folder of designated disk.Backup location is to be located in different disk with designated storage location.
In this way, can be restored according to the data in backup location to file when disk failures where designated storage location.
When backing up above-mentioned file to be backed up, file to be backed up can be backed up according to RAID algorithm.It can also be by
File to be backed up is backed up according to other algorithms other than RAID algorithm.
As shown in the above, equipment is stored in the present embodiment can be in the data to be stored for receiving terminal device transmission
When, the file type for detecting the file in data to be stored determines to be backed up in data to be stored according to the file type
File backs up the file to be backed up.Since the present embodiment determines file to be backed up, nothing according to file type from data to be stored
All Files in data to be stored need to be backed up, therefore the data volume of Backup Data can be reduced, saved storage and set
Standby disk space, and then improve the disk utilization of storage equipment.
In another embodiment of the application, in embodiment illustrated in fig. 7, storage equipment 701 is specifically used for:
When above-mentioned file type is predetermined file type to be backed up, will there is file type in data to be stored
File be determined as file to be backed up.
In the present embodiment, storage equipment 701 specifically may determine that whether this document type is predetermined text to be backed up
Part type, if it is, the file in data to be stored with this document type is determined as file to be backed up;If it is not, then
It can not be handled.
In the present embodiment, file type to be backed up can be the file type to be backed up of received terminal device 702 transmission.
Wherein, the file type that file type to be backed up can be determining according to the input operation of user for terminal device 702.In this way, depositing
The file type to be backed up that storage equipment 701 can be specified according to user backs up data to be stored, can be improved user's body
It tests, rather than is treated to data to be stored progress is indiscriminate, i.e., back up its whole.
When, there are when the file of multiple file types, storage equipment 701 judges that each file type is in data to be stored
No is predetermined file type to be backed up, and the file that file type belongs to file type to be backed up is determined as text to be backed up
Part, the file that file type is not belonging to file type to be backed up can not know as file to be backed up, thus not to this document into
Row backup.
To sum up, in the present embodiment, storage equipment can be true by the file of file type to be backed up specific in data to be stored
It is set to file to be backed up, avoids backing up the file of All Files type, so as to more accurately determines which
File is backed up, which file is without backup.
In another embodiment of the application, in embodiment illustrated in fig. 7, storage equipment 701 is specifically used for:
From in the corresponding relationship of preset file type to be backed up and backup strategy, the file of the file to be backed up is determined
The corresponding backup strategy of type backs up the file to be backed up according to determining backup strategy.
Wherein, backup strategy can be understood as backup rules.Backup strategy may include: by file backup in different number
Strategy in a disk.In the present embodiment, backup strategy can be arranged according to the significance level of file type to be backed up, thus
Keep storage equipment more accurate to the backup of file.
In the present embodiment, the corresponding relationship of file type and backup strategy to be backed up can connect in advance for storage equipment 701
The corresponding relationship of file type and backup strategy to be backed up that the terminal device 702 of receipts is sent.Wherein, file type to be backed up with
The corresponding relationship of backup strategy can be terminal device 702 according to the corresponding relationship of the input operation determination of user.In this way, depositing
The corresponding backup operation of file type to be backed up that storage equipment can be specified according to user, to the text to be backed up of different file types
Part is backed up, and is more accurately backed up to each file, and user experience is improved.
To sum up, in the present embodiment, storage equipment 701 can be right according to the corresponding relationship of type to be backed up and backup strategy
File to be backed up is backed up, and then is more accurately backed up according to determining backup strategy to file to be backed up.
In another embodiment of the application, in embodiment illustrated in fig. 7, terminal device 702 is also used to storage equipment hair
Send file type to be backed up;
The storage equipment is also used to receive the file type to be backed up that the terminal device is sent.
In another embodiment of the application, in embodiment illustrated in fig. 7, storage equipment 701 is specifically used for:
When above-mentioned file type is image type, the file in data to be stored is image, extracts the face in image
Feature determines the file to be backed up in data to be stored according to above-mentioned face characteristic.
Wherein, face characteristic may include interpupillary distance, facial feature points position and face mask etc., which is face
Face characteristic in details.When extracting the face characteristic in image, it can be extracted and be calculated using face characteristic in the related technology
Method carries out.
Storage equipment 701 specifically may determine that whether above-mentioned file type is image type, if it is, data to be stored
In file be image, extract image in face characteristic.
To sum up, in the present embodiment, when the file in data to be backed up is image, storage equipment can be extracted in image
Face characteristic determines file to be backed up according to face characteristic, and then can be selected according to different face characteristics to which image
It is backed up, therefore can more accurately determine file to be backed up.
In another embodiment of the application, in order to improve treatment effeciency, in embodiment illustrated in fig. 7, storage equipment 701 is also
For:
Before extracting the face characteristic in described image, judge with the presence or absence of human face region in described image, if deposited
Then extracting the face characteristic in described image.;If it does not exist, then can not be handled, i.e., the image is not carried out standby
Part.When whether there is human face region in judging image, feature in image can be extracted, is judged in this feature with the presence or absence of specific
Face characteristic, if it is present determining that there are human face regions in image.Wherein, Given Face feature can be the key of face
Feature, such as ocular, mouth region and nasal area etc..The key feature is more rough face characteristic.
There are when human face region in judging image, then extract the face characteristic in image, without to all images all
The operation for extracting face characteristic is executed, can be improved treatment effeciency.
In another embodiment of the application, in embodiment illustrated in fig. 7, storage equipment 701 is specifically used for:
The corresponding target face mark of the face characteristic is determined from preset face characteristic library, is judged preset to standby
It is identified in part mark with the presence or absence of the target face, if it is present described image is determined as in the data to be stored
File to be backed up.Wherein, the face characteristic library is used to store the corresponding relationship of face characteristic and face mark.
Storage equipment 701 can receive the mark to be backed up of the transmission of terminal device 702.Mark to be backed up can set for terminal
Standby 702 marks determining according to the input operation of user.
It in a kind of application scenarios, stores and is stored with face characteristic library in equipment 701, there is also this in terminal device 702
Face characteristic library.The face feature database can be shown to user by terminal device 702, and according to the input of user operation determine from
Mark to be backed up is determined in face characteristic library, which is sent to storage equipment 701.Storage equipment 701 can connect
Receive the mark to be backed up that terminal device 702 is sent.
Storage equipment 701 is specifically used for:
Judge with the presence or absence of the face characteristic in predetermined each face characteristic to be backed up, if it is present will
Above-mentioned image is determined as the file to be backed up in the data to be stored.
Wherein, above-mentioned face characteristic to be backed up can be with are as follows: storage equipment 701 in advance to terminal device 702 send to standby
Human face region in part image carries out the face characteristic obtained after feature extraction.
Storage equipment 701 may determine that special with the presence or absence of above-mentioned face in predetermined each face characteristic to be backed up
Sign, Ke Yiwei matches above-mentioned face characteristic with each face characteristic to be backed up, when successful match, determine it is each to
There are above-mentioned face characteristics in backup face characteristic.
To sum up, in the present embodiment, storage equipment can be according to face characteristic using the image comprising designated person as to standby
Part file, so as to more accurately determine file to be backed up.
In another embodiment of the application, in embodiment illustrated in fig. 7, terminal device 702 is also used to storage equipment
701 send sample facial image to be backed up.Equipment 701 is stored, the sample to be backed up of the transmission of receiving terminal apparatus 702 is also used to
This facial image extracts the sample face characteristic of sample facial image, as face characteristic to be backed up.
Wherein, sample facial image can be understood as the image comprising face to be backed up.It can wrap in sample facial image
Containing background area, background area can also not included.
The present embodiment can obtain face characteristic to be backed up according to the sample facial image that terminal device is sent, can be more quasi-
Really determine face characteristic to be backed up.
In another embodiment of the application, in embodiment illustrated in fig. 7, storage equipment 701 is specifically used for from preset people
Face mark in the corresponding relationship of backup strategy, determine that the target face identifies corresponding backup strategy, according to determining standby
Part strategy, backs up the file to be backed up.
Wherein, the corresponding relationship of face mark and backup strategy can be the preparatory received terminal device of storage equipment 701
The corresponding relationship of 702 the face marks and backup strategy sent.The corresponding relationship of face mark and backup strategy, can be terminal
The corresponding relationship determining according to the input operation of user of equipment 702.In this way, storage equipment 701 can be according to specified face mark
Know and determine backup strategy with the corresponding relationship of backup strategy, more accurately file to be backed up can be backed up, can also be improved
User experience.
Storage equipment 701 can be used for according in preset face characteristic to be backed up and the corresponding relationship of backup strategy,
It determines the corresponding backup strategy of the face characteristic, according to determining backup strategy, backs up the file to be backed up.
In the present embodiment, storage equipment 701 can receive terminal device 702 transmission sample facial image to be backed up and
Corresponding backup strategy extracts the sample face characteristic of sample facial image, as face characteristic to be backed up, generates each to standby
The corresponding relationship of part face characteristic and backup strategy.Wherein, the sample facial image to be backed up and right that terminal device 702 is sent
The backup strategy answered, can for terminal device 702 according to the determining sample facial image to be backed up of the input operation of user and
Corresponding backup strategy.
Fig. 8 is a kind of structural schematic diagram of storage equipment provided by the embodiments of the present application.The storage equipment includes processor
801, communication interface 802, memory 803 and communication bus 804, wherein processor 801, communication interface 802, memory 803 are logical
It crosses communication bus 804 and completes mutual communication;
Memory 803, for storing computer program;
Processor 801 when for executing the program stored on memory 803, realizes number provided by the embodiments of the present application
According to backup method.This method comprises:
The data to be stored that receiving terminal apparatus is sent;
Detect the file type of the file in the data to be stored;
According to the file type, the file to be backed up in the data to be stored is determined;
Back up the file to be backed up.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component
Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard
Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control bus etc..For just
It is only indicated with a thick line in expression, figure, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, RAM), also may include non-easy
The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also
To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit,
CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal
Processing, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing
It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete
Door or transistor logic, discrete hardware components.
As shown in the above, equipment is stored in the present embodiment can be in the data to be stored for receiving terminal device transmission
When, the file type for detecting the file in data to be stored determines to be backed up in data to be stored according to the file type
File backs up the file to be backed up.Since the present embodiment determines file to be backed up, nothing according to file type from data to be stored
All Files in data to be stored need to be backed up, therefore the data volume of Backup Data can be reduced, saved storage and set
Standby disk space, and then improve the disk utilization of storage equipment.
The embodiment of the present application provides a kind of computer readable storage medium, and meter is stored in the computer readable storage medium
Calculation machine program, realizes data back up method provided by the embodiments of the present application when computer program is executed by processor.This method packet
It includes:
The data to be stored that receiving terminal apparatus is sent;
Detect the file type of the file in the data to be stored;
According to the file type, the file to be backed up in the data to be stored is determined;
Back up the file to be backed up.
As shown in the above, equipment is stored in the present embodiment can be in the data to be stored for receiving terminal device transmission
When, the file type for detecting the file in data to be stored determines to be backed up in data to be stored according to the file type
File backs up the file to be backed up.Since the present embodiment determines file to be backed up, nothing according to file type from data to be stored
All Files in data to be stored need to be backed up, therefore the data volume of Backup Data can be reduced, saved storage and set
Standby disk space, and then improve the disk utilization of storage equipment.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or any other variant be intended to it is non-
It is exclusive to include, so that the process, method, article or equipment for including a series of elements not only includes those elements,
It but also including other elements that are not explicitly listed, or further include solid by this process, method, article or equipment
Some elements.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including
There is also other identical elements in the process, method, article or equipment of the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality
For applying example, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to embodiment of the method
Part explanation.
The foregoing is merely the preferred embodiments of the application, are not intended to limit the protection scope of the application.It is all
Any modification, equivalent substitution, improvement and etc. done within spirit herein and principle are all contained in the protection scope of the application
It is interior.
Claims (29)
1. a kind of data back up method, which is characterized in that be applied to storage equipment, which comprises
The data to be stored that receiving terminal apparatus is sent;
Detect the file type of the file in the data to be stored;
According to the file type, the file to be backed up in the data to be stored is determined;
Back up the file to be backed up.
2. determination is described wait store the method according to claim 1, wherein described according to the file type
The step of file to be backed up in data, comprising:
When the file type is predetermined file type to be backed up, will there is the file in the data to be stored
The file of type is determined as file to be backed up.
3. according to the method described in claim 2, it is characterized in that, the step of the backup file to be backed up, comprising:
From in the corresponding relationship of preset file type to be backed up and backup strategy, the file type of the file to be backed up is determined
Corresponding backup strategy;
According to determining backup strategy, the file to be backed up is backed up.
4. according to the method described in claim 2, it is characterized in that, the file type to be backed up determines in the following ways:
Receive the file type to be backed up that the terminal device is sent.
5. determination is described wait store the method according to claim 1, wherein described according to the file type
The step of file to be backed up in data, comprising:
When the file type is image type, the file in the data to be stored is image, is extracted in described image
Face characteristic;
According to the face characteristic, the file to be backed up in the data to be stored is determined.
6. according to the method described in claim 5, it is characterized in that, extract described image in face characteristic before, it is described
Method further include:
Judge with the presence or absence of human face region in described image, if it is present it is special to execute the face extracted in described image
The step of sign.
7. according to the method described in claim 5, determination is described wait store it is characterized in that, described according to the face characteristic
The step of file to be backed up in data, comprising:
The corresponding target face mark of the face characteristic is determined from preset face characteristic library, judges preset mark to be backed up
In knowledge with the presence or absence of the target face identify, if it is present by described image be determined as in the data to be stored to
Backup file;Wherein, the face characteristic library is used to store the corresponding relationship of face characteristic and face mark;Alternatively,
Judge with the presence or absence of the face characteristic in predetermined each face characteristic to be backed up, if it is present will be described
Image is determined as the file to be backed up in the data to be stored.
8. the method according to the description of claim 7 is characterized in that the step of backup file to be backed up, comprising:
From in the corresponding relationship of preset face mark and backup strategy, determine that the target face identifies corresponding backup plan
Slightly, according to determining backup strategy, the file to be backed up is backed up;Alternatively,
According in preset face characteristic to be backed up and the corresponding relationship of backup strategy, the corresponding backup of the face characteristic is determined
Strategy backs up the file to be backed up according to determining backup strategy.
9. the method according to the description of claim 7 is characterized in that determining each face characteristic to be backed up in the following ways:
Receive the sample facial image to be backed up that the terminal device is sent;
The sample face characteristic for extracting the sample facial image, as face characteristic to be backed up.
10. described in any item methods according to claim 1~9, which is characterized in that in receiving terminal apparatus transmission wait store
After data, the method also includes:
The data to be stored is stored to designated storage location.
11. a kind of data backup device, which is characterized in that be applied to storage equipment, described device includes:
Receiving module, the data to be stored sent for receiving terminal apparatus;
Detection module, for detecting the file type of the file in the data to be stored;
Determining module, for determining the file to be backed up in the data to be stored according to the file type;
Backup module, for backing up the file to be backed up.
12. device according to claim 11, which is characterized in that the determining module is specifically used for:
When the file type is predetermined file type to be backed up, will there is the file in the data to be stored
The file of type is determined as file to be backed up.
13. device according to claim 12, which is characterized in that the backup module is specifically used for:
From in the corresponding relationship of preset file type to be backed up and backup strategy, the file type of the file to be backed up is determined
Corresponding backup strategy;
According to determining backup strategy, the file to be backed up is backed up.
14. device according to claim 11, which is characterized in that the determining module, comprising:
Extracting sub-module, the file being used for when the file type is image type, in the data to be stored is image, is mentioned
Take the face characteristic in described image;
Submodule is determined, for determining the file to be backed up in the data to be stored according to the face characteristic.
15. device according to claim 14, which is characterized in that the determining submodule is specifically used for:
The corresponding target face mark of the face characteristic is determined from preset face characteristic library, judges preset mark to be backed up
In knowledge with the presence or absence of the target face identify, if it is present by described image be determined as in the data to be stored to
Backup file;Wherein, the face characteristic library is used to store the corresponding relationship of face characteristic and face mark;Alternatively,
The determining submodule is specifically used for:
Judge with the presence or absence of the face characteristic in predetermined each face characteristic to be backed up, if it is present will be described
Image is determined as the file to be backed up in the data to be stored.
16. device according to claim 15, which is characterized in that the backup module is specifically used for:
From in the corresponding relationship of preset face mark and backup strategy, determine that the target face identifies corresponding backup plan
Slightly, according to determining backup strategy, the file to be backed up is backed up;Alternatively,
The backup module, is specifically used for:
According in preset face characteristic to be backed up and the corresponding relationship of backup strategy, the corresponding backup of the face characteristic is determined
Strategy backs up the file to be backed up according to determining backup strategy.
17. 1~16 described in any item devices according to claim 1, which is characterized in that described device further include:
Memory module, for after the data to be stored that receiving terminal apparatus is sent, the data to be stored to be stored to finger
Determine storage location.
18. a kind of data backup system characterized by comprising storage equipment and terminal device;
The terminal device, for sending data to be stored to the storage equipment;
The storage equipment, the data to be stored sent for receiving the terminal device, is detected in the data to be stored
The file type of file determines the file to be backed up in the data to be stored according to the file type, and backup is described to standby
Part file.
19. system according to claim 18, which is characterized in that the storage equipment is specifically used for:
When the file type is predetermined file type to be backed up, will there is the file in the data to be stored
The file of type is determined as file to be backed up.
20. system according to claim 19, which is characterized in that the storage equipment is specifically used for:
From in the corresponding relationship of preset file type to be backed up and backup strategy, the file type of the file to be backed up is determined
Corresponding backup strategy;
According to determining backup strategy, the file to be backed up is backed up.
21. system according to claim 19, which is characterized in that
The terminal device is also used to send file type to be backed up to storage equipment;
The storage equipment is also used to receive the file type to be backed up that the terminal device is sent.
22. system according to claim 18, which is characterized in that the storage equipment is specifically used for:
When the file type is image type, the file in the data to be stored is image, is extracted in described image
Face characteristic;
According to the face characteristic, the file to be backed up in the data to be stored is determined.
23. system according to claim 22, which is characterized in that the storage equipment is also used to:
Before extracting the face characteristic in described image, judge with the presence or absence of human face region in described image, if it is present
Extract the face characteristic in described image.
24. system according to claim 22, which is characterized in that the storage equipment is specifically used for:
The corresponding target face mark of the face characteristic is determined from preset face characteristic library, judges preset mark to be backed up
In knowledge with the presence or absence of the target face identify, if it is present by described image be determined as in the data to be stored to
Backup file;Wherein, the face characteristic library is used to store the corresponding relationship of face characteristic and face mark;Alternatively,
The storage equipment, is specifically used for:
Judge with the presence or absence of the face characteristic in predetermined each face characteristic to be backed up, if it is present will be described
Image is determined as the file to be backed up in the data to be stored.
25. system according to claim 24, which is characterized in that the storage equipment is specifically used for:
From in the corresponding relationship of preset face mark and backup strategy, determine that the target face identifies corresponding backup plan
Slightly, according to determining backup strategy, the file to be backed up is backed up;Alternatively,
The storage equipment, is specifically used for:
According in preset face characteristic to be backed up and the corresponding relationship of backup strategy, the corresponding backup of the face characteristic is determined
Strategy backs up the file to be backed up according to determining backup strategy.
26. system according to claim 24, which is characterized in that
The terminal device is also used to send sample facial image to be backed up to the storage equipment;
The storage equipment is also used to receive the sample facial image to be backed up that the terminal device is sent, extracts the sample
The sample face characteristic of this facial image, as face characteristic to be backed up.
27. 8~26 described in any item systems according to claim 1, which is characterized in that the storage equipment is also used to:
After the data to be stored that receiving terminal apparatus is sent, the data to be stored is stored to designated storage location.
28. a kind of storage equipment, which is characterized in that including processor, communication interface, memory and communication bus, wherein processing
Device, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes any method and step of claim 1-10.
29. a kind of computer readable storage medium, which is characterized in that be stored with computer in the computer readable storage medium
Program realizes claim 1-10 any method and step when the computer program is executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810321465.5A CN110362422A (en) | 2018-04-11 | 2018-04-11 | A kind of data back up method, apparatus and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810321465.5A CN110362422A (en) | 2018-04-11 | 2018-04-11 | A kind of data back up method, apparatus and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110362422A true CN110362422A (en) | 2019-10-22 |
Family
ID=68214120
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810321465.5A Pending CN110362422A (en) | 2018-04-11 | 2018-04-11 | A kind of data back up method, apparatus and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110362422A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021135326A1 (en) * | 2019-12-30 | 2021-07-08 | 华为技术有限公司 | Data backup method, apparatus and device, and medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103577280A (en) * | 2012-07-30 | 2014-02-12 | 北京网秦天下科技有限公司 | Method and system for duplicating data |
US20150120671A1 (en) * | 2013-10-24 | 2015-04-30 | Synology Incorporated | Method of providing backup system and related backup system |
CN107229468A (en) * | 2017-05-22 | 2017-10-03 | 努比亚技术有限公司 | A kind of file backup method and mobile terminal |
CN107291577A (en) * | 2017-06-19 | 2017-10-24 | 腾讯科技(深圳)有限公司 | file backup method, device and storage medium |
-
2018
- 2018-04-11 CN CN201810321465.5A patent/CN110362422A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103577280A (en) * | 2012-07-30 | 2014-02-12 | 北京网秦天下科技有限公司 | Method and system for duplicating data |
US20150120671A1 (en) * | 2013-10-24 | 2015-04-30 | Synology Incorporated | Method of providing backup system and related backup system |
CN107229468A (en) * | 2017-05-22 | 2017-10-03 | 努比亚技术有限公司 | A kind of file backup method and mobile terminal |
CN107291577A (en) * | 2017-06-19 | 2017-10-24 | 腾讯科技(深圳)有限公司 | file backup method, device and storage medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021135326A1 (en) * | 2019-12-30 | 2021-07-08 | 华为技术有限公司 | Data backup method, apparatus and device, and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3780541B1 (en) | Identity information identification method and device | |
CN110569311A (en) | Data synchronization method and device for database and computer storage medium | |
JP7103345B2 (en) | Analysis system, analysis method and program | |
CN109543455A (en) | A kind of data archiving method and device of block chain | |
CN109445861A (en) | System start method, device, computer installation and storage medium | |
US8554727B2 (en) | Method and system of tiered quiescing | |
CN109977684A (en) | A kind of data transmission method, device and terminal device | |
CN107766726A (en) | Application security detection method and device | |
CN108985559A (en) | Air control data processing method, device, computer equipment and storage medium | |
CN112750038B (en) | Transaction risk determination method, device and server | |
CN104573132B (en) | Song lookup method and device | |
CN110362422A (en) | A kind of data back up method, apparatus and system | |
CN106293996B (en) | Method of data synchronization, main equipment, alternate device and system | |
CN107995167B (en) | Equipment identification method and server | |
CN107203915B (en) | Data storage method and device | |
CN115033426A (en) | Data backup method and electronic equipment | |
CN106651272B (en) | Method and equipment for managing distribution information and mobile terminal | |
CN114625756A (en) | Data query method and device and server | |
CN114417397A (en) | Behavior portrait construction method and device, storage medium and computer equipment | |
CN114398994A (en) | Method, device, equipment and medium for detecting business abnormity based on image identification | |
CN111198986B (en) | Information transmission method, device, electronic equipment and storage medium | |
CN111770080A (en) | Method and device for recovering device fingerprint | |
CN114547182A (en) | Personnel information synchronization method, terminal device and storage medium | |
CN107305610B (en) | Access path processing method and device, and automaton identification method, device and system | |
CN110766407A (en) | Transaction verification method, accounting node and medium based on block chain |
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 | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20200325 Address after: 310051 room 307, floor B, building 2, No. 399, Danfeng Road, Binjiang District, Hangzhou City, Zhejiang Province Applicant after: Hangzhou Haikang Storage Technology Co., Ltd Address before: 430074 East Lake Development Zone, Wuhan City, Hubei Province, No. 1 Software Park, Guanshan Road, Phase 5, Building F4, Room 21, Room 01 Applicant before: WUHAN HIKVISION STORAGE TECHNOLOGY Co.,Ltd. |
|
TA01 | Transfer of patent application right |