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