[Owncloud] Filesystem configuration proposal
Robin Appelman
icewind at owncloud.com
Sat Apr 21 00:25:41 UTC 2012
Hi,
I've been thinking about a good format for the configuration of mounts in the filesystem,
my idea is to have 3 types of mounts, global mounts, group mounts (mounted for all users in a group) and user mounts
Below is an example configuration that will hopefully make my idea clear
array(
'global'=>array(
'/'=>array('class'=>'oc_filestorage_local','options'=>array('datadir'=>'/foo'));
),
'group'=>array(
'salesdepartment'=>array(
'/$user/files/SalesData'=>array('class'=>'oc_filestorage_local','options'=>array('datadir'=>'/bar/sales'))
),
),
'user'=>array(
'all'=>array(
'/$user/files/Pictures'=>array('class'=>'oc_filestorage_webdav','options'=>array('host'=>'picturehost.com','user'=>'$user','password'=>'$password')),
),
'user1'=>array(
'/$user/files/Music'=>array('class'=>'oc_filestorage_local','options'=>array('datadir'=>'/shared/music/folder'))
),
'user2'=>array(
'/$user/files/Music'=>array('class'=>'oc_filestorage_local','options'=>array('datadir'=>'/shared/music/folder'))
)
)
)
$user/$password is replaced by the username/password of the current user
Any feedback or other ideas how to configure mounting
- Robin Appelman
More information about the Owncloud
mailing list