I've needed a UPS for a long time, but they're not cheap.  I found a nice APC unit at Goodwill for $4.49, then picked up some batteries.  Plugged them in and unfortunately it still dies the instant you unplug it.  Oh well, worth a try.