peter hill wrote:
I'm creating an internal documentation wiki which
will be hosted on a
couple of hosts. Database replication will ensure that documentation
gets syncronized across the different systems, but there doesn't appear
to be a common solution to distribute the uploaded images/files. At
least that is my impression from reading through the FAQs and
documentation that I have been able to find. Is there a tool or common
solution for this? Is it an option to store this data within the
database as blobs?
Not currently. This is a planned side feature of a rewrite of the image storage
system I've got in my todo queue, but that may be a couple months as the
priority has been lowered by our new fileserver giving excellent performance on
the old system for now.
Because of our architecture I will be unable to host
these directories
on NFS. I've considered putting together a simple rsync/shell script but
will have to rely on ctime/mtime for conflicts. I don't mind having to
write code to do this, but didn't want to recreate the wheel if an
existing solution is out there.
If you have *one* wiki spread over two hosts which can't share a filesystem,
we've got nothing built-in for you. If you have *two* wikis on two hosts, which
share some additional stuff, you could set up another wiki to run uploads to and
use the 'shared upload' (commons) stuff to load them remotely from both.
If you go for rsync-type copying of files, you can make your life easier by
disabling overwriting of uploaded images; this should avoid most worries about
conflicts. In 1.6 (CVS devel ver) you can set the group permissions (see
DefaultSettings.php for the permissions list), or you could probably hack
SpecialUpload.php a little bit in 1.5.
-- brion vibber (brion @
pobox.com)