Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
You can design (or use off-the-shelf power monitor IC) a switch that connects the RAM to a backup battery (or large capacitor, say, 0.5F - called SuperCap) or VCC, whichever is higher .. see example below ..
The backup time depends on the level of quiescent current into the RAM and 30mins with CMOS RAMs should not be a problem ..