We have recently installed Drupal 6.x and we are working on setting our infrastructure up to support our business goals. one of the things we would like to do is run Drupal in a clustered environment to handle load balancing, redundancy, and back-up/recovery. The issue we are running into right now is the replication of files uploaded by users to the 'files' directory. We wanted to explore the option of storing all files in the database rather than to the file system. Can anyone help me out with this? Thanks

Comments

vm’s picture

New one on me, I am under the impression that a database can't physically hold files, only data.

cog.rusty’s picture

There is the http://drupal.org/project/dbfm module, but it is still only for Drupal 5. You might be able to give them a hand to update or improve it.

rooey’s picture

This is EXACTLY why we made DBFM.

We're running this in conjuction with the replication module and a few other bits and pieces.

The replication module forces all drupal DB writes on slaves to be piped through to the master server.

DBFM allows users to upload files locally (it shunts it to the master in the background) and does all sorts of fancy things to keep things in sync.

Drop me a note if u need an explanation.

You would probably do well to jump aboard - we're working on finalising functionality on our existing platform (drupal 6 wasn't released when we started so it's v5) - once this is done we're going to have to look at moving on to either 6 or 7.