I like the simple interface of dokuwiki very much. Another point that gets me excited about dokuwiki is that it uses text files for its database rather than MySQL. This means I can easily backup by compressing the whole folder contains dokuwiki, copy it to somewhere else and I'm done. Moreover, the convenience of text file data is that I can effectively use git for version control - which is great. I can do whatever I want to the content of my homepage while offline and upload it when I'm online.
So I was trying to adopt dokuwiki to my homepage and decided to move the "About" and "Projects" pages to
dokuwiki. I love editing text with my beloved Sublime Text 3 (which I have
purchased recently). I then realized it's kind of cumbersome to upload those
text files via FTP. I would like to have the capability of synchronization
bi-direction from my home machine to my web server via SSH. At first I tried
rsync but it doesn't work the way I want because it's unidirectional sync (or
maybe I did it wrongly?). Then I remember unison - the program I use to sync my
personal data. The problem with unison is that it needs the remote server to
have unison program too. But I don't have root permission to install unison on
my host server. So what I did was downloading a precompiled version of unison
here (note that my web server is running 64 bit Linux) and
upload it to /home/myusername/bin/unison
On the other hand, unison v.2.40 is running on my home machine Linux Mint 14. Since I already created the SSH key for my web server, I can just effectively use 1 command to synchronize the local dokuwiki data to my remote web server like so:
unison -ui text -sshargs "-i ~/.ssh/everbot.ssh -p xxxxx" /localDir/dokuwiki/ ssh://email@example.com//home/myusername/pathToDokuwiki/pages/ -servercmd /home/myusername/bin/unison -perms 0 unison -ui text -sshargs "-i ~/.ssh/everbot.ssh -p xxxxx" /localDir/dokuwiki/ ssh://firstname.lastname@example.org//home/myusername/pathToDokuwiki/pages/ -servercmd /home/myusername/bin/unison -perms 0
Pretty neat isn't it!
Feel free to share your experience on how to use dokuwiki effectively by commenting below.