How can I retrieve all my wiki data?

For the pages there is currently no automatic procedure, but if your wiki is public you can use a website copier like HTTrack.

Related question

Maintenance scheduled for February 11th at 03:00 PM
Maintenance scheduled for February 11th at 03:00 PM