owncloud no "local" storage?

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
naddel81
Posts: 103
Joined: Sun Jul 21, 2019 12:54 pm

owncloud no "local" storage?

Post by naddel81 »

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!
User avatar
Joulinar
Posts: 4836
Joined: Sat Nov 16, 2019 12:49 am

Re: owncloud no "local" storage?

Post by Joulinar »

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/ad ... local.html

Code: Select all

nano /var/www/owncloud/config/config.php
add 'files_external_allow_create_new_local' => 'true',
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
naddel81
Posts: 103
Joined: Sun Jul 21, 2019 12:54 pm

Re: owncloud no "local" storage?

Post by naddel81 »

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.
User avatar
Joulinar
Posts: 4836
Joined: Sat Nov 16, 2019 12:49 am

Re: owncloud no "local" storage?

Post by Joulinar »

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
    1. adjust /boot/dietpi.txt

      Code: Select all

      SOFTWARE_OWNCLOUD_DATADIR=/mnt/dietpi_userdata/owncloud_data
  2. after insstalation
    1. copy content of /mnt/dietpi_userdata/owncloud_data to the new disk
    2. adjust /var/www/owncloud/config/config.php

      Code: Select all

      'datadirectory' => '/mnt/dietpi_userdata/owncloud_data',
  3. add the external drive as local storage location within owncloud
  4. move whole /mnt/dietpi_userdata/ to the external drive using dietpi-drive_manager
  5. move whole RootFS to the external drive using dietpi-drive_manager
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply