How can I upgrade Friendlyelec firmware of openwrt to latest without having to use another device? How can I restore openwrt configuration automatic after new firmware installation?

I would like to
  1. Always have TF card mounted in the device ready with flasher tools. Maybe at /sdcard path.
  2. Backup openwrt configuration to TF card at /sdcard/backups.
  3. Add latest friendlyelec openwrt firmware to the TF card /sdcard and modify flasher tool configuration to find this new firmware.
  4. Reboot device and start from TF card and automatic run flasher tools.
  5. Restore backup from TF card /sdcard/backup before first reboot
  6. Reboot device

Is it possible somehow?