IMO the simplest, most secure solution is the rsync option. Rsync the data and lib directories from your production server to your local server so that content and functionality are the same locally.
e.g. me@home$ rsync -h --progress --stats -r -p -l -D --update --exclude tmp --exclude vendor --exclude inc --exclude bin --exclude data/cache --exclude conf /var/www/wiki/
me@public.web:/home/me/public_html/wiki