Store to RTC memory on demand

I use the following code to store values in RTC memory of the ESP in case of power down.

...
esp8266:
  restore_from_flash: true
preferences:
  flash_write_interval: 24h
globals:
  - id: total_pluses
    type: int
    restore_value: True
...

Is there a way to store data to the RTC memory on demand just before I manually disconnect the device from the power? supply.