Info gleaned from http://support.apple.com/en-us/HT5082
(note wikiadmin changed parameters between lion and ml/mavericks) and other places
1: export wiki data on SOURCE machine
sudo wikiadmin export -name <wiki_short_name> -path /tmp/wiki-export2: move that folder in some manner to your target machine
(i tar it up and scp'd that)
sudo tar czf this-wiki-20150116.tgz /tmp/wiki-export3: import on TARGET machine
3a: untarball that tar
tar xvzf this-wiki-20150116.tgz3b: set permissions
sudo chown -R _teamsserver /tmp/wiki-export3c: import into wiki server
sudo wikiadmin import -path /tmp/wiki-export4: you're done! (maybe. sort of. see next step)
5: Fixing the project URL shortname
so... you've got your wiki now on your new server. and then you notice that the url isn't the nice shortname you created on the Source machine. (because you've maybe already done this a few times or had a wiki with that same shortname on the Target machine?) So now we need to do some actual hacky style work to fix this.
5a: copy the new shortname from the url that you surf to when you click on your wiki in your browser
e.g.: http://gromit/wiki/projects/g6k2G0n4M/Sweet_Wiki.html what we want to copy is g6k2G0n4M
5b: change the postgres database table for the wiki (collab) server
sudo psql -U _teamsserver -h /Library/Server/Wiki/PostgresSocket collabselect * from entity where tiny_id = 'g6k2G0n4M';^^^ Note the single quotes around that copied shortname
(this should result in a listing of things. it should ONLY give you one line)
update entity set tiny_id = 'sweetwiki' where tiny_id='g6k2G0n4M'; ^^^ my project name i'm going for is 'sweetwiki' change as appropriate
(this should result in "UPDATE 1")
if you updated more than 1 row... well... time to maybe look at restoring
5c: tell the wiki server to update things
sudo wikiadmin updateSchema -g sweetwiki