CN112181717A - Data backup method and device for mobile phone game and electronic equipment - Google Patents
Data backup method and device for mobile phone game and electronic equipment Download PDFInfo
- Publication number
- CN112181717A CN112181717A CN201910596261.7A CN201910596261A CN112181717A CN 112181717 A CN112181717 A CN 112181717A CN 201910596261 A CN201910596261 A CN 201910596261A CN 112181717 A CN112181717 A CN 112181717A
- Authority
- CN
- China
- Prior art keywords
- data
- mobile phone
- game
- operation event
- update
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 49
- 238000012544 monitoring process Methods 0.000 claims abstract description 21
- 230000015654 memory Effects 0.000 claims description 13
- 230000005540 biological transmission Effects 0.000 claims description 3
- 238000012216 screening Methods 0.000 claims description 3
- 238000004590 computer program Methods 0.000 description 7
- 238000012986 modification Methods 0.000 description 6
- 230000004048 modification Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management of the data involved in backup or backup restore
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/28—Supervision thereof, e.g. detecting power-supply failure by out of limits supervision
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the invention discloses a data backup method for a mobile phone game, which comprises the following steps: monitoring the electric quantity of the mobile phone; when the electric quantity of the mobile phone is smaller than a preset value, monitoring a data operation event of a game, and judging the data operation event; if the data operation event is set for an update account, the data operation event is snapshot, and an operation log is generated; merging the operation log, the account information and the generation time of the operation log to generate update data; and sending the updated data to a backup storage device. The backup method disclosed by the invention realizes automatic backup of the data of the updated account when the electric quantity of the automatic mobile phone is low, thereby avoiding data loss.
Description
Technical Field
The embodiment of the invention relates to the technical field of data backup, in particular to a data backup method and device for a mobile game and electronic equipment.
Background
Along with the popularization of smart phones, mobile games are also produced. Currently, there are a variety of mobile games on the market, and the types of these mobile games include those of intellectual, shooting, and simulation. Mobile games have become one of the important leisure modes in people's life. However, data backup of mobile phone games in the market at present often requires manual setting by a user, which not only wastes time, but also is easy to forget, and particularly when the mobile phone is low in power, the mobile phone is suddenly turned off, which results in game data loss.
Disclosure of Invention
The embodiment of the invention provides the following technical scheme:
according to a first aspect of the embodiments of the present invention, a data backup method for a mobile game is provided, including:
monitoring the electric quantity of the mobile phone;
when the electric quantity of the mobile phone is smaller than a preset value, monitoring a data operation event of a game, and judging the data operation event;
if the data operation event is set for an update account, the data operation event is snapshot, and an operation log is generated;
merging the operation log, the account information and the generation time of the operation log to generate update data;
and sending the updated data to a backup storage device.
Further, in the data backup method for the mobile phone game, if the data operation event is read data, the original program of the game is executed.
Further, in the data backup method for the mobile phone game, when the electric quantity of the mobile phone is greater than or equal to a preset value,
monitoring a data operation event of the game every preset time, and if the data operation event is monitored to be set for an updated account, snapshotting the data operation event to generate an operation log;
merging the operation log and the account information to generate update data;
and sending the updated data to the backup storage device.
Further, the data backup method for the mobile phone game further comprises: and after the updating data is generated, sending information to inform a user.
Further, the data backup method for the mobile phone game further comprises:
when the said update data is received,
detecting the storable space of the storage device, when the available storage space of the storage device is less than or equal to a preset value after the updated data is detected to be stored,
screening out data with the same account information as the updated data and marking the data as first data;
sorting the first data in chronological order of storage to the storage device;
and deleting the first data according to a time sequence until the available storage space of the storage device is larger than the preset value after the updating data are stored in the storage space, and storing the updating data in the storage device.
Further, in the data backup method for the mobile phone game,
and when the available storage space of the storage device is larger than a preset value after the update data is stored in the storage space, transmitting the update data to a storable space for storage.
Further, in the data backup method for the mobile phone game, before sending the update data to the storage device, the compression processing of the update data is further included.
Further, in the data backup method for the mobile phone game, before sending the update data to the storage device, the encryption processing of the update data is further included.
According to a second aspect of the embodiments of the present invention, there is provided a data backup device for a mobile game, including:
the electric quantity monitoring module is used for monitoring the electric quantity of the mobile phone;
the data judging module is used for monitoring a data operation event of a game and judging the data operation event when the electric quantity of the mobile phone is smaller than a preset value;
the log generation module is used for snapshotting the data operation event and generating an operation log if the data operation event is set for an update account;
the data updating module is used for combining the operation log, the account information and the generation time of the operation log to generate updating data;
and the data transmission module is used for sending the updating data to the backup storage device, and storing the updating data into the storage space after detecting that the updating data is stored into the storage space.
According to a third aspect of embodiments of the present invention, there is provided an electronic apparatus, including: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is running, the machine-readable instructions when executed by the processor performing the steps of the data backup method for a mobile game according to any one of claims 1 to 8.
The embodiment of the invention has the following advantages:
the embodiment of the invention discloses a data backup method for a mobile phone game, which comprises the following steps: monitoring the electric quantity of the mobile phone; when the electric quantity of the mobile phone is smaller than a preset value, monitoring a data operation event of a game, and judging the data operation event; if the data operation event is set for an update account, the data operation event is snapshot, and an operation log is generated; merging the operation log, the account information and the generation time of the operation log to generate update data; and sending the updated data to a backup storage device. The backup method disclosed by the invention realizes automatic backup of the data of the updated account when the electric quantity of the automatic mobile phone is low, thereby avoiding data loss.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below. It should be apparent that the drawings in the following description are merely exemplary, and that other embodiments can be derived from the drawings provided by those of ordinary skill in the art without inventive effort.
The structures, ratios, sizes, and the like shown in the present specification are only used for matching with the contents disclosed in the specification, so that those skilled in the art can understand and read the present invention, and do not limit the conditions for implementing the present invention, so that the present invention has no technical significance, and any structural modifications, changes in the ratio relationship, or adjustments of the sizes, without affecting the functions and purposes of the present invention, should still fall within the scope of the present invention.
Fig. 1 is an implementation environment related to a data backup method for a mobile game according to an embodiment of the present invention;
FIG. 2 is a flowchart of a data backup method for a mobile game according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a data backup device for a mobile game according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The present invention is described in terms of particular embodiments, other advantages and features of the invention will become apparent to those skilled in the art from the following disclosure, and it is to be understood that the described embodiments are merely exemplary of the invention and that it is not intended to limit the invention to the particular embodiments disclosed. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is an implementation environment related to a data backup method for a mobile game according to an embodiment of the present invention, and with reference to fig. 1, the implementation environment includes: a client 101 and a server 102.
The client 101 may be a smart phone, and the product type of the client 101 is not specifically limited in this embodiment. The client 101 may be installed with an application of a game APP, and operations such as interaction between a game and a server, game setting, and update of other data may be completed based on the application, which is not limited in the embodiment of the present invention.
Based on the implementation environment of fig. 1, an embodiment of the present application provides a data backup method for a mobile game, which, with reference to fig. 2, includes the following steps:
s201, monitoring the electric quantity of the mobile phone;
in this embodiment, after a user starts and logs in a game on a smart phone, the power of the smart phone starts to be monitored.
S202, when the electric quantity of the mobile phone is smaller than a preset value, monitoring a data operation event of a game, and judging the data operation event;
in this embodiment, the electric quantity of the mobile phone is monitored in real time, and when the electric quantity is lower than a preset value, for example, the electric quantity is lower than 20%, a data operation event of a game by a user is monitored, and the game data is prepared to be backed up;
s203, if the data operation event is set for an update account, snapshotting the data operation event to generate an operation log; merging the operation log, the account information and the generation time of the operation log to generate update data;
in this embodiment, when it is detected that the data operation event is an update user setting, that is, a user setting, such as an operation on a game, a parameter setting of the game, and the like, is changed, the data operation event is snapshot, an operation log is generated, and the operation log, account information, and generation time of the operation log are combined to generate update data;
s204, if the data operation event is read data, executing the original program of the game;
s205, when the electric quantity of the mobile phone is larger than or equal to a preset value, monitoring a data operation event of the game at intervals of preset time, and if the data operation event is monitored to be the setting of an updated account, snapshotting the data operation event to generate an operation log; merging the operation log and the account information to generate update data;
in this embodiment, the data operation event of the game is monitored every preset time interval, for example, when the power of the mobile phone is greater than or equal to 20%, the data operation event of the game is monitored every 10 minutes (preset time interval).
And S206, sending the updated data to the backup storage device.
Specifically, after the update data is generated, information is sent to notify the user.
Preferably, the data backup method for the mobile phone game further comprises the following steps:
when the said update data is received,
detecting the storable space of the storage device, when the available storage space of the storage device is less than or equal to a preset value after the updated data is detected to be stored,
screening out data with the same account information as the updated data and marking the data as first data;
sorting the first data in chronological order of storage to the storage device;
and deleting the first data according to a time sequence until the available storage space of the storage device is larger than the preset value after the updating data are stored in the storage space, and storing the updating data in the storage device.
And when the available storage space of the storage equipment is larger than a preset value after the update data is stored in the storage space, transmitting the update data to a storable space for storage.
The method also comprises compressing the update data before sending the update data to the storage device.
The method also comprises the step of encrypting the updating data before sending the updating data to the storage device.
Based on the same inventive concept, the embodiment of the application also provides a data backup device for the mobile phone game, which corresponds to the data backup method for the mobile phone game. Because the principle of solving the problems of the device in the embodiment of the present application is similar to that of the data backup method for the mobile game in the embodiment of the present application, the implementation of the device can refer to the implementation of the method, and repeated details are not repeated.
Referring to fig. 3, a data backup apparatus for a mobile game includes:
the electric quantity monitoring module 301 is used for monitoring the electric quantity of the mobile phone;
a data discrimination module 302, configured to monitor a data operation event of a game and discriminate the data operation event when the electric quantity of the mobile phone is smaller than a preset value;
a log generating module 303, configured to snapshot the data operation event and generate an operation log if the data operation event is set for an update account;
the data updating module 304 is configured to combine the operation log, the account information, and the generation time of the operation log to generate updated data;
and the data transmission module 305 sends the updated data to the backup storage device.
The embodiment of the application also provides a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the steps of the data backup method for the mobile phone game are executed.
Specifically, the storage medium can be a general-purpose storage medium, such as a removable disk, a hard disk, or the like, and when the computer program on the storage medium is executed, the data backup method for the mobile game can be executed.
Corresponding to the data backup method for the mobile phone game in fig. 2, an embodiment of the present application further provides a computer device, as shown in fig. 4, the device includes a memory 1000, a processor 2000 and a computer program stored on the memory 1000 and executable on the processor 2000, wherein the processor 2000 implements the steps of the data backup method for the mobile phone game when executing the computer program.
Specifically, the memory 1000 and the processor 2000 can be general-purpose memories and processors, which are not specifically limited herein, and the data backup method for the mobile phone game can be performed when the processor 2000 executes a computer program stored in the memory 1000.
The computer program product for the data backup method for the mobile game provided in the embodiment of the present application includes a computer readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiment, and specific implementation may refer to the method embodiment, and will not be described herein again.
In all examples shown and described herein, any particular value should be construed as merely exemplary, and not as a limitation, and thus other examples of example embodiments may have different values.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus described above may refer to the corresponding process in the foregoing method embodiment, and is not described herein again. In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described apparatus embodiments are merely illustrative.
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 application 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 functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the exemplary embodiments of the present application, and are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims
Although the invention has been described in detail above with reference to a general description and specific examples, it will be apparent to one skilled in the art that modifications or improvements may be made thereto based on the invention. Accordingly, such modifications and improvements are intended to be within the scope of the invention as claimed.
Although the invention has been described in detail above with reference to a general description and specific examples, it will be apparent to one skilled in the art that modifications or improvements may be made thereto based on the invention. Accordingly, such modifications and improvements are intended to be within the scope of the invention as claimed.
Claims (10)
1. A data backup method for a mobile phone game is characterized by comprising the following steps:
monitoring the electric quantity of the mobile phone;
when the electric quantity of the mobile phone is smaller than a preset value, monitoring a data operation event of a game, and judging the data operation event;
if the data operation event is set for an update account, the data operation event is snapshot, and an operation log is generated;
merging the operation log, the account information and the generation time of the operation log to generate update data;
and sending the updated data to a backup storage device.
2. The method of claim 1, wherein if the data operation event is a read data, executing an original program of the game.
3. The method of claim 1, wherein when the power of the mobile phone is greater than or equal to a predetermined value,
monitoring a data operation event of the game every preset time, and if the data operation event is monitored to be set for an updated account, snapshotting the data operation event to generate an operation log;
merging the operation log and the account information to generate update data;
and sending the updated data to the backup storage device.
4. The data backup method for mobile phone games according to claim 1, further comprising: and after the updating data is generated, sending information to inform a user.
5. The data backup method for mobile phone games according to any one of claims 1 to 4, further comprising:
when the said update data is received,
detecting the storable space of the storage device, when the available storage space of the storage device is less than or equal to a preset value after the updated data is detected to be stored,
screening out data with the same account information as the updated data and marking the data as first data;
sorting the first data in chronological order of storage to the storage device;
and deleting the first data according to a time sequence until the available storage space of the storage device is larger than the preset value after the updating data are stored in the storage space, and storing the updating data in the storage device.
6. The method of claim 5, wherein the data is stored in a memory of the mobile phone,
and when the available storage space of the storage device is larger than a preset value after the update data is stored in the storage space, transmitting the update data to a storable space for storage.
7. The method of claim 5, further comprising compressing the update data before sending the update data to the storage device.
8. The method of claim 7, further comprising encrypting the update data before sending the update data to the storage device.
9. A data backup device for a mobile game, comprising:
the electric quantity monitoring module is used for monitoring the electric quantity of the mobile phone;
the data judging module is used for monitoring a data operation event of a game and judging the data operation event when the electric quantity of the mobile phone is smaller than a preset value;
the log generation module is used for snapshotting the data operation event and generating an operation log if the data operation event is set for an update account;
the data updating module is used for combining the operation log, the account information and the generation time of the operation log to generate updating data;
and the data transmission module is used for transmitting the updated data to the backup storage equipment.
10. An electronic device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is running, the machine-readable instructions when executed by the processor performing the steps of the data backup method for a mobile game according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910596261.7A CN112181717A (en) | 2019-07-03 | 2019-07-03 | Data backup method and device for mobile phone game and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910596261.7A CN112181717A (en) | 2019-07-03 | 2019-07-03 | Data backup method and device for mobile phone game and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112181717A true CN112181717A (en) | 2021-01-05 |
Family
ID=73915899
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910596261.7A Pending CN112181717A (en) | 2019-07-03 | 2019-07-03 | Data backup method and device for mobile phone game and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112181717A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060224636A1 (en) * | 2005-04-05 | 2006-10-05 | Microsoft Corporation | Page recovery using volume snapshots and logs |
CN101764880A (en) * | 2009-12-21 | 2010-06-30 | 宇龙计算机通信科技(深圳)有限公司 | Information backup method and terminal |
CN104572113A (en) * | 2015-01-21 | 2015-04-29 | 深圳市中兴移动通信有限公司 | Automatic storage space arranging method and mobile terminal |
CN105786654A (en) * | 2016-03-01 | 2016-07-20 | 北京金山安全软件有限公司 | Data backup method and device and electronic equipment |
-
2019
- 2019-07-03 CN CN201910596261.7A patent/CN112181717A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060224636A1 (en) * | 2005-04-05 | 2006-10-05 | Microsoft Corporation | Page recovery using volume snapshots and logs |
CN101764880A (en) * | 2009-12-21 | 2010-06-30 | 宇龙计算机通信科技(深圳)有限公司 | Information backup method and terminal |
CN104572113A (en) * | 2015-01-21 | 2015-04-29 | 深圳市中兴移动通信有限公司 | Automatic storage space arranging method and mobile terminal |
CN105786654A (en) * | 2016-03-01 | 2016-07-20 | 北京金山安全软件有限公司 | Data backup method and device and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108111464B (en) | Data verification method and device | |
CN111008034B (en) | Patch generation method and device | |
WO2012036893A2 (en) | Reputation checking obtained files | |
CN105988805B (en) | Application program management method and mobile terminal | |
CN108154034B (en) | Vulnerability analysis method and device based on WordPress | |
CN114065204A (en) | File-free Trojan horse searching and killing method and device | |
CN111160624B (en) | User intention prediction method, user intention prediction device and terminal equipment | |
DE112011105687T5 (en) | Using Option ROM Memory | |
CN115859274B (en) | Method and system for monitoring event log behavior of Windows process emptying system | |
CN105868625B (en) | Method and device for intercepting restart deletion of file | |
CN112162773A (en) | Differential upgrading method and device, storage medium and terminal | |
CN108776631B (en) | Server, method for acquiring compatibility test equipment and storage medium | |
CN111030968A (en) | Detection method and device capable of customizing threat detection rule and storage medium | |
CN110652728A (en) | Game resource management method and device, electronic equipment and storage medium | |
CN108762983B (en) | Multimedia data recovery method and device | |
CN117724899A (en) | Project data backup method, system and medium | |
CN113535226A (en) | Application downloading method, terminal, server, computer device and storage medium | |
CN112181717A (en) | Data backup method and device for mobile phone game and electronic equipment | |
CN112784318A (en) | Method, device and storage medium for generating unique identification code of equipment | |
CN106648671B (en) | Application upgrading method and terminal | |
CN112182570A (en) | Data processing method and device for mobile phone game and electronic equipment | |
CN110891097B (en) | Cross-device user identification method and device | |
CN114035812A (en) | Application software installation and/or operation method, device, electronic equipment and storage medium | |
CN110888686B (en) | Application program starting method, device and storage medium | |
CN113595797A (en) | Alarm information processing method and device, electronic equipment and storage medium |
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 |