owncloud no "local" storage?

hi at all,

I wanted to share my local drive in owncloud, but there is no such option. I can only share as google drive, owncloud, sftp and webdav.

does anybody have an idea how to solve this on my VM install of dietpi?

best wishes!

Hi,

due to security reason, this has been disabled by OwnCloud developer. You would need to get this activated according OwnCloud documentation

https://doc.owncloud.org/server/10.0/admin_manual/configuration/files/external_storage/local.html

nano /var/www/owncloud/config/config.php

add ‘files_external_allow_create_new_local’ => ‘true’,

I only need a big folder to put data on. by default data/ is shared. but how big is it and how do I manage its size? that is the reason I wanted to mount another local drive.

by default, data directory is located at /mnt/dietpi_userdata/owncloud_data. It is used by all user until the file system is full or a quote (you can define on owncloud) is reached.

to add external disk space, you have a couple of option

  1. define data location before install owncloud
  2. adjust /boot/dietpi.txt
SOFTWARE_OWNCLOUD_DATADIR=/mnt/dietpi_userdata/owncloud_data
  1. after insstalation
  2. copy content of /mnt/dietpi_userdata/owncloud_data to the new disk
  3. adjust /var/www/owncloud/config/config.php
'datadirectory' => '/mnt/dietpi_userdata/owncloud_data',
  1. add the external drive as local storage location within owncloud
  2. move whole /mnt/dietpi_userdata/ to the external drive using dietpi-drive_manager
  3. move whole RootFS to the external drive using dietpi-drive_manager