Server device and computer program
The data synchronization system manages data with generation flags to store more data on the server while using terminals with small capacities, ensuring data availability and user convenience.
Patent Information
- Application Number
- JP2023064512
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-11
- Publication Date
- 2024-10-24
- Estimated Expiration
- 2043-04-11
AI Technical Summary
Conventional data synchronization technologies require equal storage capacities between a terminal and a cloud server, limiting data storage on terminals with smaller capacities and risking unintended data deletion or complex user selection processes.
Implement a data synchronization system where data is managed with generation flags, allowing data deletion from terminals without affecting the cloud server, and enabling access to previous generations of data through a viewing application.
Enables storage of more data on the server side while using terminals with small capacities, maintaining user convenience and data availability without direct deletion from the server.
Smart Images

Figure 2024151265000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a server device and a computer program for performing data synchronization. [Background technology]
[0002] In recent years, "synchronization" technology for storage devices has been widely used to improve data reliability. Synchronization allows the contents of two storage devices to be matched and a copy of the data being used to be automatically created, so that even if a failure occurs in one storage device, the data in the other device can still be used, which is convenient. Compared to manually creating a copy of data, synchronization is particularly convenient because it automatically creates a copy of data. For example, a mechanism is widely used in which a synchronization technique is applied to a cloud server in which a storage device is arranged on the cloud, and the storage device in a specific terminal is synchronized with the storage contents of the cloud server. In such synchronization technology, various ideas and improvements have been proposed, and there are many patent documents relating to improvements in synchronization technology. Several patent documents relating to synchronization techniques are described below.
[0003] Prior patent literature For example, the following Patent Document 1 discloses a technique for a data synchronization system that synchronizes data between a server and a terminal. This document discloses a mechanism that enables priority to be shared, and a technique for determining which data to delete from among the data held on the terminal, based on the shared priority. Furthermore, Patent Document 2 below discloses a technique that allows a user to select data to be synchronized, rather than synchronizing all data in a folder. Furthermore, the following Patent Document 3 discloses a technique for forcibly formatting a storage device when a problem occurs when synchronizing a first storage device with a second storage device. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2018-32271 A [Patent Document 2] JP 2019-86866 A [Patent Document 3] JP 2020-30828 A Summary of the Invention [Problem to be solved by the invention]
[0005] Thus, conventionally, the use of synchronization techniques between storage devices has been widely practiced. Now, for example, when synchronizing a cloud server with a storage device in a user's terminal, the capacity of the storage device in the terminal and the capacity of the storage device in the cloud server are the same in principle, so it is not possible to create a copy of data that exceeds the storage capacity of the terminal.
[0006] Therefore, even when using a cloud server, the terminal also needs to have a large storage capacity. However, the price of smartphones, which are widely used terminals in recent years, tends to increase the larger the internal storage capacity. Therefore, it would be convenient for users to use a smartphone with as little storage capacity as possible while storing large amounts of data on a cloud server that is synchronized with the smartphone. In response to such demands, the above-mentioned Patent Document 1 discloses a technique for conserving storage capacity on the terminal side by configuring the terminal side to be able to delete data using priority. However, depending on the priority setting, it is possible that unexpected data may be automatically deleted from the terminal.
[0007] In addition, the above-mentioned Patent Document 2 discloses a technique for saving storage capacity on the terminal side by adopting a configuration in which the user can select data that does not need to be synchronized. However, this increases the work of selecting the relevant data, which increases the user's workload and complicates the procedure. Furthermore, in the conventional synchronization technology, if data is deleted from the storage device on the terminal side, the corresponding data is naturally deleted from the cloud server. Therefore, (with only the conventional synchronization technology) data deleted by the user cannot be restored at a later date.
[0008] The present invention has been made in view of the above problems, and has an object to realize a data synchronization system that can store more data on the server side while using a terminal with only a small storage capacity, and to provide a server device, related devices, and related computer programs for this purpose. [Means for solving the problem]
[0009] The inventors of the present application have conducted extensive research into such issues and have come to the conclusion that it may be possible to improve upon conventional synchronization technology and solve the above-mentioned problems by configuring data to be deleted from the server side even if it is deleted from the terminal side. As a result of many years of research, the inventors have completed the present invention, which is described below, based on this basic idea.
[0010] (1) In order to solve the above problem, the present invention provides a server device that retains the memory contents of an internal storage device of a terminal, comprising an interface for connecting to the terminal, a database that stores the same memory contents as those of the internal storage device of the terminal, and a control unit that saves the same memory contents as those of the internal storage device of the terminal in the database, wherein the control unit executes an operation of saving the first data in the database when the interface receives a data creation report and created first data from the terminal, and an operation of saving the second data in the database when the interface receives a data update report and updated second data from the terminal, the operation of saving the second data in the database, wherein the operation of saving the second data includes an operation of confirming whether or not data with a flag of n (n is an integer greater than or equal to 1) generations ago added to the second data is present in the database, and if the result of the confirmation shows that data with a flag of n generations ago added to the second data is present, an operation of incrementing the generation number of the flag of the data n generations ago by 1, an operation of incrementing the generation number of the flag of the second data before the update stored in the database to 1 generation ago, and an operation of saving the updated second data in the database.
[0011] (2) In order to solve the above problem, the present invention provides a server device that retains the memory contents of an internal storage device of a terminal, comprising an interface for connecting to the terminal, a database that stores the same memory contents as those of the internal storage device of the terminal, and a control unit that saves the same memory contents as those of the internal storage device of the terminal in the database, wherein the control unit executes an operation of storing the first data in the database when the interface receives a data creation report and the created first data from the terminal, and an operation of deleting the third data from the database when the interface receives a data deletion report and the deleted third data from the terminal, wherein the operation of deleting the third data includes an operation of checking whether or not data with a flag of n (n is an integer greater than or equal to 1) generations ago is present in the database to the third data, and when the result of the check shows that data with a flag of n generations ago is present in the third data, incrementing the generation number of the data of the nth generation ago by +1, and an operation of incrementing the generation number of the flag of the third data before deletion stored in the database to one generation ago.
[0012] (3) The present invention also relates to a server device as described in (1) or (2), wherein the control unit, when the interface receives an access to the database from the terminal, performs the following operations: confirming whether the access includes access permission information; if the access permission information is included in the confirming step, permitting access to all data in the database of the terminal and transmitting data requested by the access to the terminal via the interface; and if the access permission information is not included in the confirming step, permitting access only to data in the database of the terminal that does not have a flag from n generations ago added, and transmitting data requested by the access to the terminal via the interface.
[0013] (4) The present invention also provides a computer program for operating a computer as a terminal that accesses the server device described in (3), the computer program being characterized by causing the computer to execute a procedure for transmitting access including the access permission information to the server device.
[0014] (5) The present invention is also a computer program for causing a computer to operate as the server device described in (1), the computer program executing the following steps: when the interface receives a data creation report and the created first data from the terminal, the control unit stores the first data in the database; and when the interface receives a data update report and the updated second data from the terminal, the control unit stores the second data in the database, the step of storing the second data includes the steps of the control unit confirming whether or not data with a flag of n generations ago (n is an integer greater than or equal to 1) added to the second data is present in the database, and if the confirmation results in the presence of data with a flag of n generations ago added to the second data, incrementing the generation number of the flag of the data n generations ago by +1; the control unit changing the generation number of the flag of the second data before the update stored in the database to one generation ago; and the control unit storing the updated second data in the database.
[0015] (6) The present invention is also a computer program for causing a computer to operate as the server device described in (2), the computer program executing the following steps: when the interface receives a data creation report and the created first data from the terminal, the control unit stores the first data in the database; and when the interface receives a data deletion report and the deleted third data from the terminal, the control unit deletes the third data from the database, the step of deleting the third data includes the step of the control unit confirming whether or not data with a flag of n generations ago (n is an integer greater than or equal to 1) added to the third data is present in the database, and if the result of the confirmation shows that data with a flag of n generations ago added to the third data is present, the step of incrementing the generation number of the data of n generations ago by +1; and the step of the control unit changing the generation number of the flag of the third data before deletion stored in the database to one generation ago. Effect of the Invention
[0016] According to the present invention, it is possible to provide a server device that can store more data on the server side while utilizing a terminal with only a small storage capacity, and to realize a data synchronization system using the same. [Brief description of the drawings]
[0017] [Figure 1] 1 is an overall configuration diagram of a data synchronization system 10 according to an embodiment of the present invention. [Diagram 2] FIG. 2 is a configuration diagram of a cloud server 14. [Diagram 3] 10 is a flowchart showing an operation when data is created on the terminal side. [Figure 4] 10 is a flowchart showing an operation when data is updated on the terminal side. [Diagram 5] 10 is a flowchart showing an operation when data is updated on the terminal side. [Figure 6]10 is a flowchart showing an operation when data is deleted on the terminal side. [Figure 7] 10 is a flowchart showing an operation when data is deleted on the terminal side. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0018] Hereinafter, a data synchronization system 10 according to a preferred embodiment of the present invention, and a cloud server 14 and terminals (such as a smartphone 16 and a personal computer 18) used therein will be described with reference to the drawings.
[0019] 1. Configuration 1 shows an overall configuration diagram of a data synchronization system 10 according to this embodiment. As shown in this diagram, the data synchronization system 10 according to this embodiment includes a cloud server 14 and a network 12 to which the cloud server 14 is connected. A user connects to the cloud server 14 from a smartphone 16 via the network 12 to use a service that synchronizes the contents of a storage device in the smartphone 16 with the database of the cloud server 14. The terminal used by the user is not limited to the smartphone 16, but may be, for example, a personal computer 18 or the like. In this manner, in this embodiment, a state in which the cloud server 14 synchronizes data in the internal storage devices of various terminals (such as the smartphone 16 and the personal computer 18) of users via a network will be described.
[0020] Cloud server 14 is a server that provides synchronization services to users (terminals) via network 12. Its configuration is shown in Fig. 2. As shown in the figure, cloud server 14 is a computer that includes a database 20, a CPU 22, a memory 24, and a network interface 26. The database 20 is a storage device, and may be configured with a hard disk or a semiconductor storage device. This database 20 is a central storage device for providing backup services to users (terminals), and stores data synchronized with the contents of the internal storage device of the user's terminal. The specific storage operation will be described in detail later. The CPU 22 is a CPU that executes the operation of the cloud server 14, and controls the operation of the cloud server 14 by executing a computer program stored in the memory 24. This computer program in the memory 24 corresponds to a suitable example of a computer program in the claims.
[0021] Moreover, cloud server 14 corresponds to a preferred example of a server device in the claims. Moreover, CPU 22 corresponds to a preferred example of a control unit in the claims. Moreover, database 20 corresponds to a preferred example of a database in the claims.
[0022] The network interface 26 is an interface for connecting to the network 12, and various interfaces may be used depending on the type of the network 12. The network 12 may be, for example, the Internet, but various networks may be used depending on the purpose and environment of use. The network interface 26 corresponds to a suitable example of an interface in the claims.
[0023] The smartphone 16 and the personal computer 18 are terminals used by users, and the users synchronize data in the internal storage devices of these terminals using the cloud server 14. The smartphone 16 and the personal computer 18 correspond to suitable examples of the terminals in the claims. In this embodiment, a smartphone 16 and a personal computer 18 are given as examples of terminals that can be synchronized with data, but any terminal that has an internal storage device that can be backed up can be the target of the data synchronization service.
[0024] 2nd.Operation The operation of the data synchronization system 10 according to this embodiment will be described below with reference to a flowchart. Here, an example will be described in which user X has made a contract with the operator of cloud server 14 and the internal storage device of user X's smartphone 16 is set to synchronize with cloud server 14 (see FIG. 1). The smartphone 16 is configured for so-called synchronization, and for example, when data is created, the data is transmitted to the cloud server 14. Such settings and operations are realized, for example, by installing an application program for performing a predetermined synchronization (hereinafter, in this embodiment, referred to as a "synchronization app") on the smartphone 16. The synchronization app may perform settings, or may be resident and may execute an operation of transmitting the data to the cloud server 14 every time it detects that data has been created. The synchronization app corresponds to a suitable example of a computer program in the claims. In this embodiment, a specific synchronous application is installed on the smartphone 16, and the application is assumed to realize the operations described below. That is, the CPU of the smartphone 16 executes the synchronous application to realize the operations described below.
[0025] (2-1) Creating new data FIG. 3 is a flowchart showing the operation when new data is created on the terminal (smartphone 16) side. In the following, in this embodiment, the terminal will be described by taking the smartphone 16 as an example. The terminal may be any device that can be operated by a user and can generate new data and delete data. In addition, in this embodiment, a computer file will be described as an example of data. For example, this corresponds to an image data file when a photo is taken with the smartphone 16. Data is not limited to a file, and may be any data that can be handled by a computer.
[0026] First, in step S3-1, a photograph is taken at the smartphone 16 terminal, an image data file (data A) is created, and the image data file is stored in the smartphone 16's internal storage device. In step S3-2, smartphone 16 transmits the data creation report and the newly created data A to synchronization destination cloud server 14. As a result, the data creation report and the newly created data A reach cloud server 14 via network 12. The data creation report includes an ID indicating user X, an ID of smartphone 16 that created data A, and the like, and is a report that notifies cloud server 14 that the data has been created. Such an operation may be executed by a synchronization app installed in the smartphone 16. In other words, the CPU of the smartphone 16 executes the synchronization app, and when it detects that the data A has been stored in the internal storage device, it transmits the data A and a data creation report, which is a report notifying the cloud server 14 that the data A has been created, to the cloud server 14.
[0027] In step S3-3, cloud server 14 receives the transmitted data creation report and the newly created data A. This reception is performed by network interface 26, and the received data etc. are processed by CPU 22. In step S3-4, the CPU 22 of the cloud server 14 processes the received data A etc. The CPU 22 first checks the data creation report to identify the user X, and stores the newly created data A in the database 20 as new data A for the user X. This operation allows the database 20 to hold the same storage contents as the internal storage device of the smartphone 16 of the user X, thus achieving so-called synchronization. The database 20 manages data for each user. Logically, the data is managed separately, for example, as a storage area for user X and a storage area for user Y.
[0028] (2-2) Updating (editing) data FIG. 4 is a flowchart showing the operation when data is updated (edited) on the terminal (smartphone 16) side. An update means that the contents are updated, and refers to, for example, when a text file is edited to change the contents. It also refers to when an image file is retouched to edit the contents. In this embodiment, in such cases, the data before the update is saved by generation management. The following will explain each step in order.
[0029] First, in step S4-1, the user X edits an image data file (data B) of a photo inside the smartphone 16 at the smartphone 16 terminal. In step S4-2, the smartphone 16 transmits the data update report and data B to the synchronization destination cloud server 14. As a result, the data update report reaches the cloud server 14 via the network 12. The data update report includes an ID indicating user X and an ID of the smartphone 16 that updated data B, and is a report that notifies the cloud server 14 that the data has been updated. The data update report also includes an identifier indicating the updated data B. This identifier may be anything that can identify data B, but for example, a hash value or the like can be suitably used.
[0030] Such an operation may be executed by a synchronization app installed in the smartphone 16. In other words, the CPU of the smartphone 16 executes the synchronization app, and when it detects that the contents of data B stored in the internal storage device have been updated, it transmits the data B and a data update report, which is a report notifying the cloud server 14 that the data B has been updated, to the cloud server 14. In step S4-3, the cloud server 14 receives the transmitted data update report and the updated data B. This reception is performed by the network interface 26, and the received data etc. are processed by the CPU 22.
[0031] In step S4-4, the CPU 22 of the cloud server 14 processes the received data update report. The CPU 22 first checks the identifier in the data update report to identify the user X, and then recognizes that the updated data is data B. In step S4-5, the CPU 22 checks whether data B to be updated already includes data of one generation before, two generations before, and so on.
[0032] generation management A distinctive feature of this embodiment is that it incorporates generational management of data. In other words, when the contents of the data are updated or deleted, a flag for one generation back is added to the data of the generation before the update and saved in the database. In this embodiment, generational management is performed up to 10 generations back. In this way, when data is updated (deleted), a flag for one generation ago is added and stored in the database. As a result, the data before the update (deletion) becomes invisible from the smartphone 16. In other words, data with a flag for n generations ago (n is an integer from 1 to 10, and the same applies below) is controlled so that it cannot be seen in normal access. In addition, even if data is "deleted" rather than "updated", generation management is performed based on the same idea. However, in the case of "deletion", the data after deletion is not saved. As a result, the deleted data cannot be directly viewed from the smartphone 16.
[0033] Description Note that "data with a flag added n generations ago" may be simply written as "data n generations ago." Adjusting the "number of generations of the flag n generations ago" (adding +1, etc.) may also be written as adjusting the "number of generations of the data n generations ago" (adding +1, etc.).
[0034] Viewing Management Data with a flag added from n generations ago cannot be viewed through normal access from a terminal. In order for the terminal to view data with a flag of n generations ago, a predetermined viewing application is used. In this embodiment, the above-mentioned synchronization application is provided with a viewing function and is used as the viewing application. A user can view and download data with a flag of n generations ago via this synchronization application. It is preferable that a so-called PC version of this synchronization application is also prepared, and the PC version of the synchronization application can be used not only on the smartphone 16 but also on the personal computer 18. In this way, cloud server 14 permits viewing (browsing) of data with a flag from n generations ago only in the case of access from a browsing application (which also serves as a sync application in this embodiment), and data with a flag from n generations ago cannot be viewed in normal access. To achieve this, the browsing application accesses cloud server 14 including a browsing application ID, and is able to browse all data, including data with a flag from n generations ago. Cloud server 14 permits viewing of all data only in the case of access including a browsing application ID. Here, the viewing application (synchronous application) corresponds to a suitable example of a computer program in the claims.
[0035] Such operations are realized by the CPU 22 of the cloud server 14 executing a computer program stored in the memory 24. Although an example of distinguishing between normal access and browsing by using the browsing application ID has been described here, the application name or other information may be used. Such information is referred to as access permission information here.
[0036] When attempting to add a flag of one generation back to the current data (before updating) currently recorded in the database 20 and save it, the existence of data with flags of n generations back is confirmed, the generation of the data with the past flags added is shifted one step back in time, and then the flag of one generation back is added to the current data (before updating) currently recorded. This also applies to deletion.
[0037] In other words, Data with flags from one generation ago added → Data with flags from two generations ago added Data with flags from two generations ago → Data with flags from three generations ago Data with flags from three generations ago → Data with flags from four generations ago Data with flags from 4 generations ago → Data with flags from 5 generations ago As shown above, the data is shifted one generation at a time toward the past. An upper limit may be set for the number of generations to be stored. For example, in this embodiment, the maximum number of generations is set to 10 generations back. When attempting to add a flag for 11 generations back, the data is completely deleted from database 20. In this manner, CPU 22 adds a flag for one generation back to data B currently stored (immediately before update), i.e., it clearly indicates that the data is one generation back, and stores the data as is in database 22.
[0038] Now, if the check result in step S4-5 shows that data from one generation back, two generations back, etc. exists, the process proceeds to step S5-1 in Fig. 5, where the flags of the data to which the generation-related flags have been added are shifted to the older generation by one generation. On the other hand, if data from one generation back, two generations back, etc. does not exist, the process proceeds to step S5-2 in Fig. 5. In step S5-1, the data with the flag added from n generations ago is incremented by 1. That is, the data is shifted to the older generation by one generation. In step S5-2, a "one generation ago" flag is added to the current data (the pre-update data stored in database 20 at that point in time). In step S 5 - 3 , the updated data B is stored in the database 20 . The data is updated in the above manner. The above-described operation of cloud server 14 is realized by CPU 22 executing a computer program stored in memory 24.
[0039] (2-3) Data Deletion FIG. 6 is a flowchart showing the operation when data is deleted on the terminal (smartphone 16) side. In step S6-1, at the smartphone 16 terminal, user X deletes the image data file (data C) of the photo inside the smartphone 16. In step S6-2, smartphone 16 transmits a data deletion report to synchronization destination cloud server 14. As a result, the data deletion report reaches cloud server 14 via network 12. The data deletion report includes an identifier that indicates the deleted data C. This identifier may be anything that can identify the data C, but for example, a hash value or the like can be suitably used.
[0040] Such an operation may be executed by a synchronization app installed in the smartphone 16. In other words, the CPU of the smartphone 16 executes the synchronization app, and when it detects that the data C stored in the internal storage device has been deleted, it transmits to the cloud server 14 a data deletion report that is a report informing the cloud server 14 that the data C has been deleted. In step S6-3, the cloud server 14 receives the transmitted data deletion report. This reception is performed by the network interface 26, and the received data etc. are processed by the CPU 22.
[0041] In step S6-4, CPU 22 of cloud server 14 processes the received data deletion report. CPU 22 first checks the identifier in the data deletion report to identify user X, and then recognizes that the deleted data is data C. In step S6-5, the CPU 22 checks whether data C to be deleted already includes data one generation before, two generations before, and so on.
[0042] generation management As explained above, data deletion also involves generation management, just like data updates. Data deletion differs from data updates in that the updated data is not saved. Similarly, the flags from n generations ago are shifted one generation at a time. Also, just like data updates, a viewing app (synchronization app) is used to view data with flags from n generations ago.
[0043] Now, if the check result in step S6-5 shows that data from one generation back, two generations back, etc. exists, the process proceeds to step S7-1 in Fig. 7, where the flags of the data to which the generation-related flags have been added are shifted to the older generation by one generation. On the other hand, if data from one generation back, two generations back, etc. does not exist, the process proceeds to step S7-2 in Fig. 7. In step S7-1, the "n" of the "n generations ago" of data to which a flag from n generations ago has been added is incremented by +1. That is, the data is shifted one generation at a time toward the older generation. In step S7-2, a "one generation ago" flag is added to the current data (the data stored in database 20 at that point in time). In this manner, data deletion is performed. Unlike the case of updating data, there is no operation of saving the updated data. The operation of cloud server 14 described above is realized by CPU 22 executing a computer program stored in memory 24.
[0044] (2-4) The significance of generation-managed data In conventional "synchronization," if data is deleted, the corresponding data is also deleted in the synchronized storage device. This is because "synchronization" is a technology that makes the stored contents of two types of storage devices identical, and it aims to duplicate data and improve data availability. Therefore, since a storage device with the same storage state is always obtained, the safety of the data is guaranteed. However, it is assumed that the capacity of the internal storage device cannot be large in a small information terminal such as the smartphone 16. Furthermore, it is known that the cost becomes excessively high if the internal storage device of a small information terminal such as the smartphone 16 is made large. Services that realize synchronization between an internal storage device of a smartphone 16 or the like and another storage device (e.g., a cloud server) have been known for some time, but since this is "synchronization," it is necessary for the storage capacity to be similar to that of a storage device of a smartphone 1 or the like.
[0045] In contrast, in this embodiment, as described above, even if data is deleted (edited), the data continues to be stored in the database 22 with a flag of n generations ago added. In this embodiment, the data with the flag of n generations ago added is allowed to be viewed or downloaded only when accessed with a synchronization application (viewing application). Therefore, the cloud server of this embodiment can store more data than the capacity of the internal storage device of the smartphone 16 while utilizing synchronization technology. In this embodiment, since it is based on the simple operation of the synchronization technology, the user does not need to perform any special operation to automatically save data in excess of the capacity of the internal storage device of the smartphone 16. In other words, the user can use storage capacity in excess of the capacity of the internal storage device of the smartphone 16 simply by performing operations similar to those used with the conventional "synchronization" technology.
[0046] (2-5) Access to generation-managed data In this way, the cloud server 14 of the present embodiment stores data in sync with the internal storage device of the smartphone 16, and also stores data deleted on the smartphone 16 with a flag indicating n generations ago added. This data with the flag indicating n generations ago added can be accessed using a viewing app.
[0047] For example, when a user accesses the cloud server using a viewing application, the user can view a list of the contents of the database 20. For example, data D that has been updated several times can be viewed as follows: Data D Data D with flags from one generation ago Data D with flags from two generations ago Data D with flags from three generations ago They are listed as follows.
[0048] For example, after several updates, deleted data E is Data E with flags from one generation ago Data E with flags from two generations ago Data E with flags from three generations ago In this case, only the data E with the flag added from n generations ago is saved, and the data E without the flag added is not saved, so it does not appear in the list.
[0049] A user can view or download any generation of data from among these, for example, data from three generations ago (data D (or E) with a flag for three generations ago attached). To achieve this, it is necessary for cloud server 14 to be able to determine whether the accessed computer program is a viewing app or not. For this reason, a viewing app (synchronization app) can access cloud computer 14 with a specified viewing app ID. In the case of access with the viewing app ID, CPU 22 of cloud computer 14 makes all data available for viewing, including data with a flag for n generations ago attached. On the other hand, in the case of access without a viewing app ID (called normal access), data except for data with a flag for n generations ago attached is made available for viewing. Here, an example has been described in which the browsing application ID is used to determine whether the access is normal or not, but it is also preferable to make the determination using other types of information such as the application name, etc. Information for such a determination is called access permission information in this embodiment. Furthermore, these operations may be realized by the CPU 22 executing a computer program stored in the memory 24.
[0050] (2-6) Access from other devices As described in Fig. 1, the cloud server 14 of the present embodiment may be configured to be accessible from various devices, not limited to the smartphone 16. In the example shown in Fig. 1, a connection from a personal computer 18 is shown. In this case, it is preferable that a synchronization application (browsing application) is installed in the personal computer 18, similar to the smartphone 16. In this way, by allowing other devices (personal computer 18) to connect to cloud server 14, it is possible to synchronize database 20 in cloud server 14 with the internal storage device of personal computer 18. As a result, it is also possible to synchronize smartphone 16 with personal computer 18.
[0051] By installing a viewing application (synchronous application) in the personal computer 18, it is possible to view and download previously saved data and previously deleted data from the personal computer 18. These operations are similar to those executed by the smartphone 16 described above. 3. Features and Effects of the Present Embodiment In the above, in this embodiment, an example has been described in which the synchronization service provided by the cloud server 14 is used from a terminal such as the smartphone 16. The cloud server 14 of this embodiment uses a generation management mechanism to store data even if it has been deleted from a terminal such as the smartphone 16, and is therefore capable of storing more data than the storage capacity of the terminal.
[0052] In addition, since a generation management mechanism is used, even when data is updated (edited) on a device such as a smartphone 16, the previous generation is stored, making it possible to store more data than the device's memory capacity allows, and the data can also function as a data backup. On the other hand, the cloud server 14 is controlled so that data flagged as nth generation by generation management cannot be seen during normal access, so that the user can be provided with the same operability as with previous synchronization services. In addition, by accessing from a viewing app (which may also serve as a sync app), data with n generations of flags can be viewed, providing the convenience of being able to use past data.
[0053] 3. Variations (1) In the above embodiment, the cloud server 14 is connected via a network, but a server device other than a "cloud" may be used. A local server may be used to execute operations similar to those described above. (2) In the above-described embodiment, the smartphone 16 and the personal computer 18 are described as terminals that use the cloud server 14 that executes the synchronization service, but any device that has an internal storage device and can use synchronization can be used as a terminal. For example, it may be a tablet computer, a small information and communication device used in the Internet of Things (IoT), or a microcomputer built into a home appliance. (3) In the above embodiment, an example of generation management for 10 generations has been shown, but generation management for a smaller number of generations or a larger number of generations may also be used.
[0054] (4) In the above embodiment, an example has been described in which the browsing application uses a browsing application ID in order for the cloud server 14 to identify that the access is from a browsing application, but other information may be used for identification. It may be determined whether the access is from a browsing application based on the application name or specific information (access permission information) in the communication content. Also, the configuration may be such that the user inputs a password when accessing the cloud server 14 using the browsing application. Here, this predetermined information (application name, predetermined information, user password) is called access permission information. That is, when this access permission information is included in the access from the terminal, CPU 22 of cloud server 14 permits access to all data in database 20. On the other hand, in the case of normal access that does not include access permission information, access is permitted only to data in database 20 that is not flagged with the nth generation flag.
[0055] (4b) Furthermore, it is also preferable that the cloud server 14 is provided with a web server. It is also preferable that the web server is configured so that data can be viewed and downloaded. The browsing application can access the WEB server, and the user can browse and download data on the WEB server. At this time, it is preferable to have the user input a password, and use this password as the above-mentioned access permission information. In addition, the password can be registered in the browsing application, and when accessing the WEB server of the cloud server 14, the registered password can be automatically entered. (5) In the above embodiment, the synchronization application also serves as the browsing application. However, the synchronization application and the browsing application may be used separately.
[0056] (6) In the above-described embodiment, a data creation report, a data update report, a data deletion report, etc. have been described, but this may be configured in any form as long as it is capable of transmitting information to the cloud server 14. These "reports" may be configured using communication units known as packets or data frames (or simply frames). They may also be files transmitted using a protocol such as FTP. They may also be emails, or messages such as messengers or chats. Various conventionally known communication units may be used as the "reports" in the above-described embodiments. (6) Furthermore, the embodiment described above is one example of a means for realizing the present invention, and should be appropriately modified or changed depending on the configuration of the device to which the present invention is applied and various conditions. The present invention is not limited to the aspects of this embodiment. [Explanation of symbols]
[0057] 10 Data Synchronization System 12 Network 14 Cloud Server 16 Smartphone 18 Personal Computers 20 Database 22 CPU 24 Memory 26 Network Interface
Claims
1. Behavior in case of update A server device that holds the contents of an internal storage device of a terminal, an interface for connecting to the terminal; a database that stores the same contents as those stored in the internal storage device of the terminal; a control unit that stores in the database the same contents as those stored in the internal storage device of the terminal; The control unit includes: an operation of storing the first data in the database when the interface receives a data creation report and the created first data from the terminal; When the interface receives a data update report and updated second data from the terminal, the interface stores the second data in the database; Run The operation of storing the second data includes: confirming whether data having a flag of n generations ago (n is an integer of 1 or more) added to the second data exists in the database, and if a result of the confirmation indicates that data having a flag of n generations ago is present in the second data, incrementing the number of generations of the flag of the data of n generations ago by +1; an operation of changing a generation number of a flag of the second data before the update stored in the database to one generation earlier; storing the updated second data in the database; A server device comprising:
2. Behavior in case of deletion A server device that holds the contents of an internal storage device of a terminal, an interface for connecting to the terminal; a database that stores the same contents as those stored in the internal storage device of the terminal; a control unit that stores in the database the same contents as those stored in the internal storage device of the terminal; The control unit includes: an operation of storing the first data in the database when the interface receives a data creation report and the created first data from the terminal; an operation of deleting the third data from the database when the interface receives a data deletion report from the terminal and the deleted third data; Run The operation of deleting the third data includes: confirming whether data having a flag of n generations ago (n is an integer of 1 or more) added to the third data exists in the database, and if data having a flag of n generations ago added to the third data exists as a result of the confirmation, incrementing the number of generations of the data of the n generations ago by +1; an operation of changing a generation number of a flag of the third data stored in the database before the deletion to one generation earlier; A server device comprising:
3. 3. The server device according to claim 1, The control unit is When the interface receives an access to the database from the terminal, the control unit performs an operation of checking whether the access includes access permission information; in the step of checking, if the access permission information is included, an operation of permitting access to all data in the database of the terminal and transmitting data required for the access to the terminal via the interface; in the step of checking, if the access permission information is not included, an operation of permitting access only to data in the database of the terminal to which a flag of n generations ago is not added, and transmitting the data requested by the access to the terminal via the interface; A server device that executes the above.
4. A computer program for causing a computer to operate as a terminal for accessing the server device according to claim 3, comprising: a step of transmitting an access including the access permission information to the server device; A computer program characterized by:
5. A computer program for causing a computer to operate as the server device according to claim 1, comprising: a step of causing the control unit to store the first data in the database when the interface receives a data creation report and the created first data from the terminal; a step of the control unit storing the second data in the database when the interface receives a data update report and updated second data from the terminal; Run the command, The step of storing the second data includes: the control unit confirms whether data having a flag of n generations ago (n is an integer of 1 or more) added to the second data exists in the database, and if data having a flag of n generations ago added to the second data exists as a result of the confirmation, increments the number of generations of the flag of the data of n generations ago by +1; a step of changing a generation number of a flag of the second data before the update stored in the database by the control unit to the previous generation; a step of the control unit storing the updated second data in the database; 1. A computer program comprising:
6. A computer program for causing a computer to operate as the server device according to claim 2, comprising: a step of causing the control unit to store the first data in the database when the interface receives a data creation report and the created first data from the terminal; a step of causing the control unit to delete the third data from the database when the interface receives a data deletion report from the terminal and the deleted third data; Run the command, The step of deleting the third data includes: the control unit confirms whether data having a flag of n generations ago (n is an integer of 1 or more) added to the third data exists in the database, and if data having a flag of n generations ago added to the third data exists as a result of the confirmation, increments the number of generations of the data of n generations ago by +1; a step of changing a generation number of a flag of the third data stored in the database before the deletion to the previous generation by the control unit; 1. A computer program comprising:
Citation Information
Patent Citations
Data synchronization system, terminal, method, and program
JP2018032271A
Information processing unit and program
JP2019086866A
Cloud service providing device and management method
JP2020030828A
