Patent ID: 8838918

Claim:
An information processing apparatus operable with power from an external power source, the information processing apparatus comprising: a volatile memory that stores data; a nonvolatile memory to backup the data stored in the volatile memory; a battery unit that supplies power to the information processing apparatus when the power from the external power source to the information processing apparatus is stopped, the battery unit being charged by the external power source; and a controller that controls backup of the data in accordance with a process including: saving the data stored in the volatile memory into the nonvolatile memory when the power from the external power source to the information processing apparatus is stopped, writing back the data saved in the nonvolatile memory into the volatile memory upon recovery of the power from the external power source, deleting the data saved in the nonvolatile memory after the writing back, resaving, from the volatile memory into the nonvolatile memory, data deleted from the non-volatile memory when the controller detects that the power has again stopped while deleting the data saved in the nonvolatile memory, receiving a notification of an amount of battery-charge from the battery unit when the writing back of the data saved in the nonvolatile memory into the volatile memory is completed after the power is recovered from the external power source, calculating a number of data that is deleted based on the received amount of the battery-charge, and deleting a calculated number of data from among the data saved in the nonvolatile memory after the writing back of the data.