CN107506386B - Data aggregation method and device based on NAS, terminal equipment and storage medium - Google Patents

Data aggregation method and device based on NAS, terminal equipment and storage medium Download PDF

Info

Publication number
CN107506386B
CN107506386B CN201710616956.8A CN201710616956A CN107506386B CN 107506386 B CN107506386 B CN 107506386B CN 201710616956 A CN201710616956 A CN 201710616956A CN 107506386 B CN107506386 B CN 107506386B
Authority
CN
China
Prior art keywords
data
multimedia file
target terminal
terminal device
stored
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710616956.8A
Other languages
Chinese (zh)
Other versions
CN107506386A (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.)
Shenzhen Damai Technology Co Ltd</en>
Original Assignee
Shenzhen Damai Technology Co Ltd</en>
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 Shenzhen Damai Technology Co Ltd</en> filed Critical Shenzhen Damai Technology Co Ltd</en>
Priority to CN201710616956.8A priority Critical patent/CN107506386B/en
Publication of CN107506386A publication Critical patent/CN107506386A/en
Application granted granted Critical
Publication of CN107506386B publication Critical patent/CN107506386B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1435Saving, restoring, recovering or retrying at system level using file system or storage system metadata
    • 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/1458Management of the backup or restore process
    • G06F11/1464Management of the backup or restore process for networked environments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems
    • G06F16/1824Distributed file systems implemented using Network-attached Storage [NAS] architecture
    • G06F16/1827Management specifically adapted to NAS
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Library & Information Science (AREA)
  • Multimedia (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to the technical field of data processing, and provides a data aggregation method and device based on NAS, terminal equipment and a computer storage medium. According to the method and the device, the unique identifier of the target terminal device is written into the specific multimedia file, when the target terminal device accesses the NAS server through the first protocol, the corresponding unique identifier and the user information are extracted from the specific multimedia file, and then the data to be stored can be stored in the corresponding storage area of the NAS server. The unique identifier is extracted from the specific multimedia file, and is also used when the target terminal device stores data to the NAS server through the second protocol, so that the target terminal device can be ensured to adopt the same unique identifier when accessing the NAS server through the first protocol and the second protocol respectively, and the problem of data aggregation failure caused by the deviation of the unique identifier during multi-channel data backup is solved.

Description

Data aggregation method and device based on NAS, terminal equipment and storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a data aggregation method and apparatus based on NAS, a terminal device, and a computer storage medium.
Background
The NAS (Network Attached Storage) is a special data Storage server, comprises a Storage device and embedded system software, can provide a cross-platform file sharing function, and meets the requirement of a user for accessing data through a Network.
When a user backs up data stored in the terminal device to the NAS server through different transmission channels (such as different network transmission protocols like HTTP or MTP), the same multiple data copies can be backed up at the same time, which results in prolonging of data transmission time and waste of storage space.
In order to solve the above problems, the following data aggregation method is mainly adopted at present: firstly, acquiring a unique identifier of terminal equipment through an interface provided by a terminal system, and taking the identifier as a certificate of multi-channel data backup; then binding the corresponding user information and the identifier through the server; and acquiring corresponding user information from a server through the identifier when multi-channel data backup is carried out, and finally backing up the data of the terminal equipment to a storage area corresponding to the user information in the NAS.
However, due to the diversity of the terminal system, the interface provided by the terminal system is often non-standard, which may cause deviation of the device unique identifier acquired through multiple channels, further cause abnormality of the user information acquired from the server, and finally cause failure of data aggregation. For example, due to the customization diversity and the nonstandard property of the Andriod mobile phone system, an interface provided by the customized Andriod mobile phone system is a nonstandard interface, and the unique identifier of the mobile phone device acquired through various channels is deviated.
Disclosure of Invention
In view of this, embodiments of the present invention provide a data aggregation method and apparatus based on NAS, a terminal device, and a computer storage medium, which can solve the problem of data aggregation failure caused by a deviation of a device identifier during multi-channel data backup.
A first aspect of an embodiment of the present invention provides a data aggregation method based on NAS, including:
when a target terminal device accesses an NAS server through a first protocol, detecting a preset specific multimedia file from a specified directory of the target terminal device, wherein the specific multimedia file is generated and stored in the specified directory when the target terminal device accesses the NAS server through a second protocol;
extracting a unique identifier and user information of the target terminal device, which are written in advance, from the specific multimedia file, wherein the unique identifier and the user information are used when the target terminal device stores data to the NAS server through a second protocol;
and storing the data to be stored of the target terminal equipment to a storage area corresponding to the user information and the unique identifier in the NAS server.
A second aspect of the embodiments of the present invention provides a NAS-based data aggregation apparatus, including:
the system comprises a specific file detection module, a storage module and a processing module, wherein the specific file detection module is used for detecting a preset specific multimedia file from a specified directory of a target terminal device when the target terminal device accesses the NAS server through a first protocol, and the specific multimedia file is generated and stored in the specified directory when the target terminal device accesses the NAS server through a second protocol;
the information extraction module is used for extracting a pre-written unique identifier and user information of the target terminal device from the specific multimedia file, wherein the unique identifier and the user information are used when the target terminal device stores data to the NAS server through a second protocol;
and the data storage module is used for storing the data to be stored of the target terminal equipment into a storage area corresponding to the user information and the unique identifier in the NAS server.
A third aspect of the present embodiment provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the NAS-based data aggregation method provided in the first aspect of the present embodiment when executing the computer program.
A fourth aspect of the embodiments of the present invention provides a computer-readable storage medium, which stores a computer program, which when executed by a processor, implements the steps of the NAS-based data aggregation method as provided in the first aspect of the embodiments of the present invention.
According to the method and the device, the unique identifier of the target terminal device is written into the specific multimedia file, when the target terminal device accesses the NAS server through the first protocol, the corresponding unique identifier and the user information are extracted from the specific multimedia file, and then the data to be stored can be stored in the corresponding storage area of the NAS server. The unique identifier is extracted from the specific multimedia file, and is also used when the target terminal device stores data to the NAS server through the second protocol, so that the target terminal device can be ensured to adopt the same unique identifier when accessing the NAS server through the first protocol and the second protocol respectively, and the problem of data aggregation failure caused by the deviation of the unique identifier during multi-channel data backup is solved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart of a NAS-based data aggregation method according to a first embodiment of the present invention;
fig. 2 is a flowchart of a NAS-based data aggregation method according to a second embodiment of the present invention;
fig. 3 is a block diagram of an embodiment of a NAS-based data aggregation apparatus according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
The embodiment of the invention provides a data aggregation method, a data aggregation device, terminal equipment and a computer storage medium based on NAS, which can solve the problem of data aggregation failure caused by deviation of equipment identifiers during multi-channel data backup.
Referring to fig. 1, a first embodiment of a NAS-based data aggregation method according to an embodiment of the present invention includes:
101. when a target terminal device accesses an NAS server through a first protocol, detecting a preset specific multimedia file from a specified directory of the target terminal device;
the target terminal device is a terminal device which needs to backup data to the NAS server, and can be various devices such as a mobile phone, a desktop computer or a notebook computer of a user. The specified directory is a certain specific storage directory of the target terminal device, and the specific multimedia file is generated and stored in the specified directory when the target terminal device accesses the NAS server through a second protocol. The first protocol and the second protocol are file transmission protocols of two different channels, the first protocol is a file transmission protocol in which the target terminal device is directly connected with the NAS server or is connected with the NAS server through a data line, and the first protocol can be a file transmission protocol such as an MTP (multiple time protocol), a PTP (precision time protocol) and the like; the second protocol is a file transfer protocol in which the target terminal device is connected to the NAS server via a wired or wireless network, and may be a file transfer protocol such as FTP, HTTP, TCP/IP, or UDP. The specific multimedia file is a multimedia file containing specific information, and can be a picture file or a video file.
Further, the specific multimedia file may be generated by:
(1) when the target terminal equipment accesses the NAS server through a second protocol, acquiring a unique identifier of the target terminal equipment through a standard interface of a terminal system;
(2) determining user information according to a user account used by the target terminal device for accessing the NAS server;
(3) and writing the unique identifier and the user information into a specified multimedia file to obtain the specific multimedia file.
For the above steps (1) to (3), when the target terminal device logs in the NAS server using the registered user account, obtaining the unique identifier of the target terminal device, determining user information according to the user account used by the target terminal device to access the NAS server, and then writing the unique identifier and the user information into the specified multimedia file to obtain the specific multimedia file. Specifically, the unique identifier and the user information may be written into a designated location of a designated multimedia file by using a preset algorithm, and then the obtained specific multimedia file may be stored in a designated directory of the target terminal device. When the target terminal device stores data to the NAS server through the second protocol, the unique identifier and the user information may be directly used.
Further, the detecting a preset specific multimedia file from the specified directory of the target terminal device includes:
(1) detecting a target multimedia file with a specified size in a specified directory of the target terminal equipment;
(2) if only one target multimedia file is detected, determining the target multimedia file as the specific multimedia file;
(3) and if more than two target multimedia files are detected, acquiring the data value of the designated position of each target multimedia file, and determining the specific multimedia file from each target multimedia file according to the data value of the designated position.
To facilitate the search for a specific multimedia file, the size of the specific multimedia file may be specified to be a known value when the specific multimedia file is selected, so that the multimedia file with the size of the known value in the specified directory of the target terminal device is detected. For a plurality of multimedia files with known sizes in a specified directory, a data value of a specified position of each multimedia file can be further acquired, and the specific multimedia file is determined from each multimedia file according to the data value of the specified position. The designated location may be a flag bit, and the value of the flag bit is written into the specific multimedia file in advance. Therefore, whether the corresponding multimedia file is the specific multimedia file can be judged according to whether the value of the designated position is the same as the value written in advance.
Further, other factors may be utilized to search the specific multimedia file from the specified directory, such as the creation time of the specific multimedia file, the specified information of the specified location of the specific multimedia file, and the like.
102. Extracting a unique identifier of the target terminal device and user information which are written in advance from the specific multimedia file;
and after the specific multimedia file is detected, extracting the pre-written unique identifier of the target terminal equipment and user information from the specific multimedia file. The unique identifier and the user information are used when the target terminal device stores data to the NAS server through a second protocol. Specifically, a preset algorithm may be adopted to extract the unique identifier and the user information from the specified location of the specific multimedia file.
103. And storing the data to be stored of the target terminal equipment to a storage area corresponding to the user information and the unique identifier in the NAS server.
After the unique identifier and the user information of the target terminal device are extracted, the data to be stored of the target terminal device can be stored in a storage area corresponding to the user information and the unique identifier in the NAS server. The data to be stored may be one or more arbitrary data files designated by the user, or may be all data files in a designated storage directory of the target terminal device. In order to facilitate data management, the NAS server may divide a plurality of different storage areas according to user information and a device identifier, and the data to be stored in the target terminal device is stored in a storage area corresponding to the user information and the unique identifier.
Further, the storing the data to be stored of the target terminal device in the storage area corresponding to the user information and the unique identifier in the NAS server may include:
(1) sending the data to be stored in the target terminal device to a user directory bound with the user information in the NAS server, wherein the user directory is a storage area specifically set for each user in the NAS server;
(2) and distributing the data to be stored to a device directory bound with the unique identifier in the user directory for storage.
With regard to the above steps (1) and (2), a dedicated storage area can be previously divided for each user in the NAS server by establishing a user directory bound with user information, and a dedicated storage area can be further divided for each device of each user by establishing a device directory bound with a device unique identifier in each user directory. Each user directory may have multiple device directories, and different user directories may have the same device directory. And storing data to be stored in a user directory bound with the user information, and then further distributing the data to the equipment directory bound with the unique identifier in the user directory for storage.
Preferably, in an embodiment of the present invention, the first protocol is an MTP protocol, the second protocol is an HTTP protocol, the target terminal device is an android or IOS smart phone, and the designated directory is a system album of the smart phone. When a user logs in NAS equipment through a registered user, a unique identifier of the equipment is obtained through a standard interface, the identifier and user information are written into a specified position of a special multimedia file, and the special multimedia file is stored in a system album directory of a mobile phone. The mobile phone application transmits the file data of the system album to the NAS device end through an HTTP protocol, and the NAS device end stores the data to be stored in the corresponding storage area through the user information and the device information. When the NAS device is accessed by the mobile phone through the MTP protocol, the special multimedia file is found from the album directory of the mobile phone system through the size of the special multimedia file, and the user information and the unique device identifier are taken out from the specified position of the special multimedia file. The equipment terminal transmits the data to be stored of the mobile phone system album to the NAS service logic layer through an MTP protocol, the service logic layer stores the data to be stored to the user directory bound with the user information according to the user information, and then distributes the data to be stored to the equipment directory bound with the identifier according to the unique identifier of the equipment for storage. Therefore, the same user information and the same unique device identifier are used when data backup operation is performed through two channels, namely HTTP and MTP, file data can be aggregated to the same storage directory of the NAS device, and time and space additional expenses are reduced.
In the embodiment of the invention, when a target terminal device accesses an NAS server through a first protocol, a preset specific multimedia file is detected from a specified directory of the target terminal device; extracting a unique identifier of the target terminal device and user information which are written in advance from the specific multimedia file; and storing the data to be stored of the target terminal equipment to a storage area corresponding to the user information and the unique identifier in the NAS server. According to the embodiment of the invention, the unique identifier of the target terminal equipment is written into the specific multimedia file, when the target terminal equipment accesses the NAS server through the first protocol, the corresponding unique identifier and the user information are extracted from the specific multimedia file, and then the data to be stored can be stored in the corresponding storage area of the NAS server. The unique identifier is extracted from the specific multimedia file, and is also used when the target terminal device stores data to the NAS server through the second protocol, so that the target terminal device can be ensured to adopt the same unique identifier when accessing the NAS server through the first protocol and the second protocol respectively, and the problem of data aggregation failure caused by the deviation of the unique identifier during multi-channel data backup is solved.
Referring to fig. 2, a second embodiment of a NAS-based data aggregation method according to the present invention includes:
201. when a target terminal device accesses an NAS server through a first protocol, detecting a preset specific multimedia file from a specified directory of the target terminal device;
step 201 is the same as step 101, and please refer to the related description of step 101.
202. Extracting a unique identifier of the target terminal device and user information which are written in advance from the specific multimedia file;
step 202 is the same as step 102, and please refer to the related description of step 102.
203. Judging whether first data with the same name as the data to be stored is stored in a storage area corresponding to the user information and the unique identifier in the NAS server;
after the unique identifier and the user information of the target terminal device are extracted, before the data to be stored is stored in the NAS server, whether first data with the same name as the data to be stored is stored in a storage area corresponding to the user information and the unique identifier in the NAS server or not is judged. If the first data is stored in the storage area, executing step 204; if the first data does not exist in the storage area, step 207 is executed.
204. Comparing and judging whether the updating time of the data to be stored is behind the updating time of the first data or not;
and if the first data is stored in the storage area, comparing and judging whether the updating time of the data to be stored is behind the updating time of the first data. If the update time of the data to be stored is later than the update time of the first data, executing step 205; if the update time of the data to be stored is before the update time of the first data, step 206 is executed.
205. Overwriting the first data with the data to be stored;
and if the updating time of the data to be stored is after the updating time of the first data, the data to be stored is the newer data, so the first data is covered by the data to be stored.
206. Abandoning to store the data to be stored;
and if the update time of the data to be stored is before the update time of the first data, the data to be stored is the older data, so that the data to be stored is abandoned.
207. And storing the data to be stored of the target terminal equipment to a storage area corresponding to the user information and the unique identifier in the NAS server.
First data with the same name as the data to be stored does not exist in the storage area corresponding to the user information and the unique identifier, so that the data to be stored of the target terminal device can be stored in the storage area corresponding to the user information and the unique identifier in the NAS server, and repeated data cannot occur.
In the embodiment of the invention, when a target terminal device accesses an NAS server through a first protocol, a preset specific multimedia file is detected from a specified directory of the target terminal device; extracting a unique identifier of the target terminal device and user information which are written in advance from the specific multimedia file; and storing the data to be stored of the target terminal equipment to a storage area corresponding to the user information and the unique identifier in the NAS server. According to the embodiment of the invention, the unique identifier of the target terminal equipment is written into the specific multimedia file, when the target terminal equipment accesses the NAS server through the first protocol, the corresponding unique identifier and the user information are extracted from the specific multimedia file, and then the data to be stored can be stored in the corresponding storage area of the NAS server. The unique identifier is extracted from the specific multimedia file, and is also used when the target terminal device stores data to the NAS server through the second protocol, so that the target terminal device can be ensured to adopt the same unique identifier when accessing the NAS server through the first protocol and the second protocol respectively, and the problem of data aggregation failure caused by the deviation of the unique identifier during multi-channel data backup is solved. Before the data to be stored is stored in the corresponding area of the NAS server, whether the data which is overlapped with the data to be stored exists in the corresponding area is judged, if so, only the data with the newer updating time is reserved, the data can be prevented from being repeatedly stored, and the storage space of the NAS server is saved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
The foregoing mainly describes a NAS-based data aggregation method, and a NAS-based data aggregation apparatus will be described below.
Referring to fig. 3, an embodiment of a NAS-based data aggregation apparatus according to the present invention includes:
a specific file detection module 301, configured to detect a preset specific multimedia file from a specified directory of a target terminal device when the target terminal device accesses an NAS server through a first protocol, where the specific multimedia file is generated and stored in the specified directory when the target terminal device accesses the NAS server through a second protocol;
an information extraction module 302, configured to extract a pre-written unique identifier and user information of the target terminal device from the specific multimedia file, where the unique identifier and user information are used by the target terminal device when storing data to the NAS server through a second protocol;
a data storage module 303, configured to store the data to be stored of the target terminal device in a storage area corresponding to the user information and the unique identifier in the NAS server.
Further, the NAS-based data aggregation apparatus may further include:
an identifier obtaining module, configured to obtain a unique identifier of the target terminal device when the target terminal device accesses the NAS server through a second protocol;
the user information determining module is used for determining user information according to a user account used by the target terminal equipment for accessing the NAS server;
and the information writing module is used for writing the unique identifier and the user information into a specified multimedia file to obtain the specific multimedia file.
Further, the specific file detection module 301 may include:
the target file detection unit is used for detecting a target multimedia file with a specified size in a specified directory of the target terminal equipment;
a first determining unit, configured to determine, if only one target multimedia file is detected, the target multimedia file as the specific multimedia file;
a second determining unit, configured to, if more than two target multimedia files are detected, obtain a data value of an assigned position of each target multimedia file, and determine the specific multimedia file from each target multimedia file according to the data value of the assigned position.
An embodiment of the present invention further provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of any one of the NAS-based data aggregation methods shown in fig. 1 to fig. 2 when executing the computer program.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps of any one of the NAS-based data aggregation methods shown in fig. 1 to fig. 2.
Fig. 4 is a schematic diagram of a terminal device according to an embodiment of the present invention. As shown in fig. 4, the terminal device 4 of this embodiment includes: a processor 40, a memory 41 and a computer program 42 stored in said memory 41 and executable on said processor 40. The processor 40, when executing the computer program 42, implements the steps in the above-described embodiments of the NAS-based data aggregation method, such as the steps 101 to 103 shown in fig. 1. Alternatively, the processor 40, when executing the computer program 42, implements the functions of each module/unit in each device embodiment described above, for example, the functions of the modules 301 to 303 shown in fig. 3.
The computer program 42 may be partitioned into one or more modules/units that are stored in the memory 41 and executed by the processor 40 to implement the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 42 in the terminal device 4.
The terminal device 4 may be various types of computing devices such as a mobile phone, a desktop computer, a notebook, a palm computer, and a cloud server. The terminal device may include, but is not limited to, a processor 40, a memory 41. It will be understood by those skilled in the art that fig. 4 is only an example of the terminal device 4, and does not constitute a limitation to the terminal device 4, and may include more or less components than those shown, or combine some components, or different components, for example, the terminal device 4 may further include an input-output device, a network access device, a bus, etc.
The Processor 40 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 41 may be an internal storage unit of the terminal device 4, such as a hard disk or a memory of the terminal device 4. The memory 41 may also be an external storage device of the terminal device 5, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the terminal device 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the terminal device 4. The memory 41 is used for storing the computer program and other programs and data required by the terminal device. The memory 41 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. . Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, etc. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (8)

1. A data aggregation method based on NAS is characterized by comprising the following steps:
when a target terminal device accesses an NAS server through a first protocol, detecting a preset specific multimedia file from a specified directory of the target terminal device, wherein the specific multimedia file is generated and stored in the specified directory when the target terminal device accesses the NAS server through a second protocol;
extracting a unique identifier and user information of the target terminal device, which are written in advance, from the specific multimedia file, wherein the unique identifier and the user information are used when the target terminal device stores data to the NAS server through a second protocol;
storing the data to be stored of the target terminal equipment to a storage area corresponding to the user information and the unique identifier in the NAS server;
wherein the specific multimedia file is generated by:
when the target terminal equipment accesses the NAS server through a second protocol, acquiring a unique identifier of the target terminal equipment;
determining user information according to a user account used by the target terminal device for accessing the NAS server;
and writing the unique identifier and the user information into a specified multimedia file to obtain the specific multimedia file.
2. The NAS-based data aggregation method according to claim 1, wherein the detecting a preset specific multimedia file from a specified directory of the target terminal device comprises:
detecting a target multimedia file with a specified size in a specified directory of the target terminal equipment;
if only one target multimedia file is detected, determining the target multimedia file as the specific multimedia file;
and if more than two target multimedia files are detected, acquiring the data value of the designated position of each target multimedia file, and determining the specific multimedia file from each target multimedia file according to the data value of the designated position.
3. The NAS-based data aggregation method according to claim 1, wherein the storing the data to be stored of the target terminal device in a storage area corresponding to the user information and a unique identifier in the NAS server comprises:
sending the data to be stored in the target terminal device to a user directory bound with the user information in the NAS server, wherein the user directory is a storage area specifically set for each user in the NAS server;
and distributing the data to be stored to a device directory bound with the unique identifier in the user directory for storage.
4. The NAS-based data aggregation method according to any one of claims 1 to 3, wherein before storing the data to be stored of the target terminal device in the storage area corresponding to the user information and the unique identifier in the NAS server, the method further comprises:
judging whether first data with the same name as the data to be stored is stored in the storage area;
if the first data are stored in the storage area, comparing the updating time of the data to be stored with the updating time of the first data;
if the updating time of the data to be stored is after the updating time of the first data, the first data is covered by the data to be stored;
and if the updating time of the data to be stored is before the updating time of the first data, the data to be stored is abandoned.
5. A NAS-based data aggregation apparatus, comprising:
the system comprises a specific file detection module, a storage module and a processing module, wherein the specific file detection module is used for detecting a preset specific multimedia file from a specified directory of a target terminal device when the target terminal device accesses the NAS server through a first protocol, and the specific multimedia file is generated and stored in the specified directory when the target terminal device accesses the NAS server through a second protocol;
the information extraction module is used for extracting a pre-written unique identifier and user information of the target terminal device from the specific multimedia file, wherein the unique identifier and the user information are used when the target terminal device stores data to the NAS server through a second protocol;
the data storage module is used for storing the data to be stored of the target terminal equipment to a storage area corresponding to the user information and the unique identifier in the NAS server;
an identifier obtaining module, configured to obtain a unique identifier of the target terminal device when the target terminal device accesses the NAS server through a second protocol;
the user information determining module is used for determining user information according to a user account used by the target terminal equipment for accessing the NAS server;
and the information writing module is used for writing the unique identifier and the user information into a specified multimedia file to obtain the specific multimedia file.
6. The NAS-based data aggregation apparatus of claim 5, wherein the specific file detection module comprises:
the target file detection unit is used for detecting a target multimedia file with a specified size in a specified directory of the target terminal equipment;
a first determining unit, configured to determine, if only one target multimedia file is detected, the target multimedia file as the specific multimedia file;
a second determining unit, configured to, if more than two target multimedia files are detected, obtain a data value of an assigned position of each target multimedia file, and determine the specific multimedia file from each target multimedia file according to the data value of the assigned position.
7. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the NAS-based data aggregation method according to any one of claims 1 to 4 when executing the computer program.
8. A computer-readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the steps of the NAS-based data aggregation method according to any one of claims 1 to 4.
CN201710616956.8A 2017-07-26 2017-07-26 Data aggregation method and device based on NAS, terminal equipment and storage medium Active CN107506386B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710616956.8A CN107506386B (en) 2017-07-26 2017-07-26 Data aggregation method and device based on NAS, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710616956.8A CN107506386B (en) 2017-07-26 2017-07-26 Data aggregation method and device based on NAS, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN107506386A CN107506386A (en) 2017-12-22
CN107506386B true CN107506386B (en) 2020-03-27

Family

ID=60689933

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710616956.8A Active CN107506386B (en) 2017-07-26 2017-07-26 Data aggregation method and device based on NAS, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN107506386B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109660547A (en) * 2018-12-28 2019-04-19 北京旷视科技有限公司 Data transmission method, data sending device, data sink and system
CN113010876B (en) * 2019-12-05 2023-04-18 马上消费金融股份有限公司 Data storage method, application account registration method and storage device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101345921A (en) * 2008-08-21 2009-01-14 中兴通讯股份有限公司 Self-editing multimedia message processing unit, service system and service implementing method
EP2129075A1 (en) * 2008-05-30 2009-12-02 Nokia Siemens Networks Oy Method of locating NAS context
CN101873463A (en) * 2010-05-20 2010-10-27 杭州海康威视***技术有限公司 Video playback method, monitoring client and digital hard disk video recorder
CN102104621A (en) * 2009-12-18 2011-06-22 巴比禄股份有限公司 Information recording device and information recording method
CN104463010A (en) * 2014-10-31 2015-03-25 华为技术有限公司 File lock implementation method and device
CN104539659A (en) * 2014-12-09 2015-04-22 华迪计算机集团有限公司 Multi-user-file exchange and sharing method and device based on NAS

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2129075A1 (en) * 2008-05-30 2009-12-02 Nokia Siemens Networks Oy Method of locating NAS context
CN101345921A (en) * 2008-08-21 2009-01-14 中兴通讯股份有限公司 Self-editing multimedia message processing unit, service system and service implementing method
CN102104621A (en) * 2009-12-18 2011-06-22 巴比禄股份有限公司 Information recording device and information recording method
CN101873463A (en) * 2010-05-20 2010-10-27 杭州海康威视***技术有限公司 Video playback method, monitoring client and digital hard disk video recorder
CN104463010A (en) * 2014-10-31 2015-03-25 华为技术有限公司 File lock implementation method and device
CN104539659A (en) * 2014-12-09 2015-04-22 华迪计算机集团有限公司 Multi-user-file exchange and sharing method and device based on NAS

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于网络附属对象设备的集群存储体系结构;张悠慧 等;《软件学报》;20030223;第14卷(第2期);第293-299页 *

Also Published As

Publication number Publication date
CN107506386A (en) 2017-12-22

Similar Documents

Publication Publication Date Title
CN108255989B (en) Picture storage method and device, terminal equipment and computer storage medium
CN107506386B (en) Data aggregation method and device based on NAS, terminal equipment and storage medium
CN104036194A (en) Vulnerability detection method and device for revealing private data in application program
CN111694589A (en) Upgrade package generation method and device, server and computer readable storage medium
CN107864044B (en) Information processing method and device, terminal and readable storage medium
CN115421968A (en) Data recovery method and electronic equipment
CN110851334A (en) Flow statistical method, electronic device, system and medium
CN113259494B (en) File storage method and device, electronic equipment and storage medium
CN113343312A (en) Page tamper-proofing method and system based on front-end point burying technology
CN110019040B (en) Folder processing method, mobile terminal and storage medium
CN111612947A (en) Method, equipment and storage medium for processing communication abnormity of intelligent lock
CN111400091A (en) Factory setting restoring method, factory setting restoring device and mobile terminal
CN108647139B (en) System test method, device, storage medium and electronic device
CN111143092A (en) Fault recording data processing method and system and terminal equipment
CN116303250A (en) Accounting archive data management method and device, electronic equipment and medium
CN109981697B (en) File unloading method, system, server and storage medium
CN107748705B (en) Method for recovering system EVT log fragments, terminal equipment and storage medium
CN114157662B (en) Cloud platform parameter adaptation method, device, terminal equipment and storage medium
CN112800130A (en) Data uplink method, system, device, equipment and storage medium
CN111124467B (en) Authority role display method, system, computer equipment and readable storage medium
CN108959405B (en) Strong consistency reading method of data and terminal equipment
CN106991336B (en) File management method and device
TWI748590B (en) Software program verification method, electronic device, and storage medium
CN112667579B (en) File storage method, device, equipment and storage medium
CN110875895A (en) Method, system, equipment and vehicle for realizing intelligent terminal software login

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
GR01 Patent grant
GR01 Patent grant