Do a search on PPrune; this subject has come up before, and I'm pretty sure someone gave details of what you have to do.
I photocopy every page of my logbooks (I have separate rotary and f/w ones) as I complete it, just in case something like this ever happens.
Good luck; it's a bummer, but not a total disaster.