The File Store Configuration.

Scope: client and server, all versions.

A file store will persist items in a local file system. It requires either

  • A single directory under which any required directories will be created, or
  • two directories, a data directory and an index directory
In both cases the system will manage these in the sense that they will be created as needed along with any needed subdirectories.
path Single top-level directory. Any required subdirectories will be made under this one.
dataPath Location of items
indexPath Location of system-built indices.
removeEmptyFiles Remove any empty files in the store. The default is true meaning that empty files will be deleted if found in the file store.

Again you specify either the path or both the dataPath and indexPath.

A file-based store system is a great, easy way to set up your storage. It require nothing more than the correct permissions. Remember though that you should do the usual administrative tasks of backing it up as needed and protecting it from prying eyes since it will contain sensitive information. Both clients and servers support file stores.

Server examples

Example 1.

<service name="default" address="">
   <fileStore path="/var/www/storage">

This sets up a fully functioning service with local storage and using the default MyProxy service.

Example 2.

An alternate version of this would be to specify the data and index paths for each store:

<service name="default" address="">
   <fileStore dataPath="/var/www/storage/transactions/data"
   <fileStore dataPath="/var/www/storage/clients/data"
   <fileStore dataPath="/var/www/storage/clientApprovals/data"
This is equivalent to the first example.

Client examples

Using a file store in a client

A client file store can be applied to
   <client name="my-cfg">
        <fileStore path="/var/www/client/storage"
        <!-- other stuff -->
This makes the asset store in the given directory. This will not remove empty files in the archive when it finds them.

Last modified 11/20/19.
©2000-2013 Board of Trustees of the University of Illinois.