It occurs to me that since UPS batteries have been known to burst, then putting it in the back of a wardrobe might cause damage. Maybe it'd be easier to tackle your project a different way? Make it tolerant of power loss? I'll grant that's not easy. I'd suggest looking at PiCore, a Raspberry Pi port of Tiny Core Linux that loads into RAM from a read-only partition on the SD-card, and that any data logging should go to a USB flash stick. I don't know how easy PiCore is to work with, but it seems to be well-maintained and have an active community.