Remove the old battery and wait until you can find a new battery to buy, then put it into your Tama and restart it.
Once you have screwed the back on again, press button B and you will get a "RESET? / DOWNLOAD?" screen - use button A to scroll and choose Download.
Your old Tama will appear.
Best, etc.
TamaMum