Data lost

Hello,

I use the ready-to-go sd card image from emoncms on my raspberry pi. logging local and remote.

Today I did a clean shutdow "sudo shutdown now" and then disconnected te power and booted again, but noticed I lost about 24 hours of data.

How can this be prevented? I expected the data stored in the memory to be saved on the sd card.

Thank you.