The present disclosure relates to a field of data backup technology, and more particularly to a method and an apparatus for backing up data, and an electronic device.
As the mobile terminals include more and more functions, users may use the mobile terminals in various occasions, such as work and life, and store all kinds of data in the mobile terminal. When the mobile terminal is lost or damaged and the like, there exists the risk of losing data, or, when the user makes manual management due to insufficient storage space of the mobile terminal, some important data may be accidentally deleted.
In the related art, based on the intelligent development and application of a router, a hard disk with large capacity is configured in the router, so that the user may back up the data in the mobile terminal into the router, which not only ensures the data security, but also facilitates the user's viewing of the backup data.
However, how to promote management efficiency of the stored backup data by improving storage manner of the backup data stored in the router is not proposed in the related art.
The present disclosure provides a method and an apparatus for backing up data, and an electronic device, to solve the technical problem of low management efficiency of the backup data stored in a router is low
In a first aspect of the present disclosure, there is provided a method for backing up data, which may be implemented in a router device. In the method, the router device receives backup data from a terminal. The router device verifies account information that the terminal has logged in to the router device. The router device then stores the backup data to a path corresponding to the account information.
In a second aspect of the present disclosure, there is provided an electronic device. The electronic device may include: a processor; and a memory for storing instructions executable by the processor. The processor is configured to: receive backup data from a terminal; determine account information that the terminal has logged in; and store the backup data to a path corresponding to the account information.
In a third aspect of the present disclosure, there is provided a non-transitory computer readable storage medium. When instructions in the storage medium are executed by an electronic device, the electronic device may execute actions including: receiving backup data from a terminal; determining account information that the terminal has logged in to the electronic device; and storing the backup data to a path corresponding to the account information in the electronic device.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. The following description refers to the accompanying drawings in which the same numbers in different drawings represent the same or similar elements unless otherwise represented. The implementations set forth in the following description of exemplary embodiments do not represent all implementations consistent with the invention. Instead, they are merely examples of apparatuses and methods consistent with aspects related to the invention as recited in the appended claims. Further, the different exemplary embodiments may be combined by a person having ordinary skill in the art.
The terminology used in the present disclosure is for the purpose of describing exemplary embodiments only and is not intended to limit the present disclosure. As used in the present disclosure and the appended claims, the singular forms “a,” “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It shall also be understood that the terms “or” and “and/or” used herein are intended to signify and include any or all possible combinations of one or more of the associated listed items, unless the context clearly indicates otherwise.
It shall be understood that, although the terms “first,” “second,” “third,” etc. may include used herein to describe various information, the information should not be limited by these terms. These terms are only used to distinguish one category of information from another. For example, without departing from the scope of the present disclosure, first information may include termed as second information; and similarly, second information may also be termed as first information. As used herein, the term “if” may include understood to mean “when” or “upon” or “in response to” depending on the context.
Reference throughout this specification to “one embodiment,” “an embodiment,” “exemplary embodiment,” or the like in the singular or plural means that one or more particular features, structures, or characteristics described in connection with an embodiment is included in at least one embodiment of the present disclosure. Thus, the appearances of the phrases “in one embodiment” or “in an embodiment,” “in an exemplary embodiment,” or the like in the singular or plural in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics in one or more embodiments may include combined in any suitable manner.
The technical solutions provided by the embodiments of the present disclosure may include the following advantageous effects:
The present disclosure stores the backup data according to the account information, so that access restrictions based on authority may be set between different accounts in advance, thereby improving security and privacy of the backup data, and helping the router to improve the management efficiency to the stored backup data.
The present disclosure also combines the account information with the device identification to manage the stored backup data, so that a more detailed storage management to the backup data is realized.
The present disclosure also classifies and stores the backup data according to the metadata information of the backup data, thereby facilitating a user's finding of the backup data, and also helping the router to improve the management efficiency of the backup data.
The present disclosure only also returns the information of the backup data corresponding to the account information according to the account information that the terminal has logged in, whereby it facilitates management of the backup data based on the account and backup data contents under other accounts may be also avoided to reveal, which helps to improve the security of the backup data.
The present disclosure also uses an account login mechanism so that the user only views and manages the backup data corresponding to the account that has been logged in, thereby facilitating the router's management of the backup data and also helping to improve the security of the backup data.
In step 102, the router receives backup data from a terminal. The backup data may include photo, mp3, video, mails, or any data from a terminal device.
In the embodiments, the terminal may implement the data backup in a router after joining a LAN (Local Area Network) created by the router. In an exemplary embodiment, after negotiating with the terminal and starting a backup function, the router determines that the data received from the terminal needs to be backed up. In another exemplary embodiment, the router may identify that a data packet belongs to the data that needs to be backed up from the terminal according to identification in the data packet received from the terminal.
In step 104, the router determines whether the terminal has logged in to the router using the account information.
In the embodiments, the router may inquire the account information that matches “a login account and a login password” according to a login request including the login account and the login password sent by the terminal, so as to realize account login of the terminal. As an exemplary embodiment, the router may verify the corresponding account information that the terminal has logged in according to the account identification in the corresponding data packet when receiving the backup data.
In step 106, the backup data is stored under a path corresponding to the account information in the router.
From the above described embodiment that, the present disclosure differentiates storage paths of backup data for different accounts in the router by account login mechanism, thereby facilitating the effective management of the backup data corresponding to the different accounts. For example, a user may copy files, delete files in the backup data on the router. The different accounts may relate to the same terminal. Alternatively or additionally, the different accounts may relate to different terminals.
When the router differentiates the storage path of the corresponding backup data according to the account information, a variety of organization structures may be adopted. The following detailed description will be made.
As an exemplary embodiment,
As another exemplary embodiment,
Based on the organization structure of the data storage path shown in
When the router adopts the organization structure of the data storage path as shown in
In step 402, suppose the terminal initiates a login request to the router by the account A.
In step 404, the router verifies the combination including a login account and a login password in the login request, and returns a message that the login is successful to the terminal after authenticating.
In step 406, the terminal sends a data access request to the router according to the account A that has logged in.
In step 408, the router determines the backup data that allows the account A to access.
In the embodiments, the user may set access authority on the backup data corresponding to the account that has logged in according to the actual needs. Therefore, the terminal may only access the backup data corresponding to the account A, or may also access the backup data having corresponding authority but corresponding to other account when logging in the account A.
In step 410, the router sends information of the backup data that allows the account A to access determined in the step 408 to the terminal.
In the embodiments, as shown in
Further, since a plurality of devices of the same user, such as a mobile phone, a tablet PC and the like, or mobile phones of a plurality of users of the same family or the like may share the same account, the user may need the router to implement more sophisticated backup data management for each terminal device. Therefore, when the backup data from the terminal is stored to the path of the account information corresponding that the terminal has logged in, the router may further: acquire a device identification of the terminal; and determine a sub-path corresponding to the device identification in the path corresponding to the account information, and store the backup data to the sub-path corresponding to the device identification.
In the embodiments, considering the account information that the terminal has logged in and the device identification of the terminal at the same time, the organization structure corresponding to the data storage path may also be required to further expand when the router stores the backup data.
As an exemplary embodiment, the organization structure of the data storage path shown in
As another exemplary embodiment, the organization structure of the data storage path shown in
The user may access and manage the backup data through the interface shown in
According to an exemplary embodiment of the present disclosure, the backup data may include metadata information. Accordingly, the router may also read metadata information of the backup data from the terminal, classify the backup data according to the metadata information, determine a sub-path corresponding to a classification result under the path corresponding to the account information, and store the backup data to the sub-path corresponding to the classification result.
In the embodiments, metadata of the backup data may be corresponding creation time, file size, and the like. Taking “the creation time” as an example, suppose the backup data from the terminal received by the router is: 123.jpg, the file belongs to the type of “picture”, and the creation time is Jul. 30, 2014. When the router adopts the organization structure of the data storage path shown in
Correspondingly, the user may access the backup data “123.jpg” stored in the router in the following way: the user clicks “picture” button in the terminal interface shown in
Corresponding to the embodiment of the aforesaid access processing method, the present disclosure also provides an embodiment of an access processing apparatus.
Herein, the data receiving unit 121 is configured to receive backup data from a terminal.
The account determining unit 122 is configured to determine account information that the terminal has logged in.
The data storage unit 123 is configured to store the backup data to a path corresponding to the account information.
In the above described embodiment, the backup data is stored according to the account information, so that access restrictions based on authority may be set between different accounts in advance, thereby improving security and privacy of the backup data, and helping the router to improve the management efficiency to the stored backup data.
As shown in
Herein, the identification acquisition sub-unit 1231 is configured to acquire a device identification of the terminal.
The first sub-path determining sub-unit 1232 is configured to determine a sub-path corresponding to the device identification under the path corresponding to the account information, and store the backup data to the sub-path corresponding to the device identification.
In the above described embodiment, the stored backup data is managed by combining the account information with the device identification, so that a more detailed storage management to the backup data is realized.
As shown in
Herein, the information reading sub-unit 1233 is configured to read metadata information of the backup data.
The data classification sub-unit 1234 is configured to classify the backup data according to the metadata information.
The second sub-path determining sub-unit 1235 is configured to determine a sub-path corresponding to a classification result under the path corresponding to the account information, and store the backup data to the sub-path corresponding to the classification result.
In the above described embodiment, the backup data is classified and stored according to the metadata information of the backup data, whereby facilitates a user's finding of the backup data, and also helps the router to improve the management efficiency of the backup data.
As shown in
Herein, the request receiving unit 124 is configured to receive a data access request sent by the terminal.
The information return unit 125 is configured to return information of the backup data corresponding to the account information to the terminal according to the data access request.
In the above described embodiment, the information of the backup data corresponding to the account information is only returned according to the account information that the terminal has logged in, thereby facilitating management of the backup data based on the account, and backup data contents of other accounts are also avoided to reveal, which helps to improve the security of the backup data.
It should be noted that, the structure of the request receiving unit 124 and the information return unit 125 in the aforesaid apparatus embodiment shown in
As shown in
Herein, the instruction receiving unit 126 is configured to receive a data management instruction sent by the terminal.
The data management unit 127 is configured to manage the backup data corresponding to the account information according to the data management instruction.
In the above described embodiment, also uses an account login mechanism so that the user the user may only view and manage the backup data corresponding to the account that has logged in by an account login mechanism, thereby facilitating the router's management of the backup data, and also helping to improve the security of the backup data.
It should be noted that, the structure of instruction receiving unit 126 and the data management unit 127 in the aforesaid apparatus embodiment shown in
The detailed implementation process of the function and action of each unit in the above apparatus refers to the implementation process of corresponding steps in the above method, which is no longer described here.
The apparatus embodiment is consistent with the method embodiment, the relevant contents may refer to the descriptions in the method embodiment. The apparatus embodiment described above is only schematic, wherein the unit described as a separated component may be or may also be not physically separated, the component used as a unit display may be or may also be not a physical unit, i.e., it may be located at one place, or may also be distributed in a plurality of network units. Some or all of the modules may be selected to realize the purpose of the present disclosure solution according to the actual needs. Those skilled in the art may understand and implement the present disclosure without any creative labor.
Correspondingly, the present disclosure further provides an access processing apparatus, including: a processor; and a memory for storing instructions executable by the processor. For example, the access processing apparatus may include a router device, a smart router, or other electronic device. The processor is configured to: receive backup data from a terminal; determine account information that the terminal has logged in to the access processing apparatus; and store the backup data to a path corresponding to the account information in the access processing apparatus.
Correspondingly, the present disclosure further provides a router device, including a memory and one or more programs, wherein the one or more programs are stored in the memory, and configured to be executable by one or more processors of the router device. The one or more programs includes instructions to implement actions including: receiving backup data from a terminal; determining account information that the terminal has logged in; and storing the backup data to a path corresponding to the account information.
There is provided a non-transitory computer readable storage medium, wherein when instructions in the storage medium are executed by the processor of a terminal, which may execute a method for backing up data, including: receiving backup data from a terminal; determining account information that the terminal has logged in; and storing the backup data to a path corresponding to the account information.
receiving backup data from a terminal;
determining account information that the terminal has logged in; and
storing the backup data to a path corresponding to the account information.
The apparatus 1700 may also include a power component 1726 configured to perform power management of the apparatus 1700, wired or wireless network interface(s) 1750 configured to connect the apparatus 1700 to a network, and an input/output (I/O) interface 1758. The apparatus 1700 may operate based on an operating system stored in the memory 1732, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, or the like.
After considering this description and carrying out the embodiments disclosed herein, those skilled in the art may easily anticipate other implementation aspects of the present disclosure. The present disclosure is meant to cover any variations, usage or adaptive change of these embodiments, and these variations, usage or adaptive change follow general concept of the present disclosure and include the common knowledge or the customary technical means in the technical field that is not disclosed in the present disclosure. The description and embodiments are only exemplary, and the real range and spirit of the present disclosure are defined by the following claims. The different exemplary embodiments in the disclosure may be combined to create new embodiment without undue experiments by a person having ordinary skill in the art.
It should be understood that the present disclosure is not limited to precise structures that are described above and shown in the accompanying drawings, and may be modified and changed without departing from the range of the present disclosure. The scope of the present disclosure is only defined by the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
201410404888.5 | Aug 2014 | CN | national |
The present application is a continuation of International Application No. PCT/CN2015/074584, filed on Mar. 19, 2015, which is based upon and claims priority to Chinese Patent Application No. 201410404888.5, filed on Aug. 15, 2014, the entire contents of which are incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2015/074584 | Mar 2015 | US |
Child | 14881672 | US |