Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable local storage / use external storage only #13408

Closed
sammcj opened this issue Jan 15, 2015 · 14 comments
Closed

Disable local storage / use external storage only #13408

sammcj opened this issue Jan 15, 2015 · 14 comments

Comments

@sammcj
Copy link

sammcj commented Jan 15, 2015

It'd be great if you could disable internal storage or at least re-map it to use external SMB storage.

This would mean you could keep your owncloud server as a web server and use your standard SMB file storage for all files, one less place to backup and one less file server running a web app.

@DeepDiver1975
Copy link
Member

you can mount a smb share to your web servers and use this share then as your data dir

@DeepDiver1975 DeepDiver1975 added this to the backlog milestone Jan 16, 2015
@sammcj
Copy link
Author

sammcj commented Jan 16, 2015

That's not a very nice solution when you have an organisation of 100~ people that already have auto-mapping home drives etc... already.

@mmattel
Copy link
Contributor

mmattel commented Jan 25, 2015

I guess I understand what is meant.

There is a already existing storage environment, lets say it is a AD with users and shares and the users have their homedir defined in a SMB share as part of the AD.
When using oC as another frontend to the shares / home for the users, you get now a additional "home", a oC home, in parallel to the already existing home from the AD.

What @sammcj is requesting is (pls correct me if I am wrong), if the current oC user home, which is under the /data directory, can be be managed like the other storages (and therefore be disabled). From my interpretation, oC must have a users home where the user can store data, but it is worth thinkging that this home could be "externalized" with already existing methods of oC. The interresting thing is, that at least for SMB we already have a good basis. This is LDAP for the credentials and $user for the subdirectory for the users home.

@erhan-
Copy link

erhan- commented Apr 2, 2015

I would really love to see an option like this.

@preexo
Copy link

preexo commented Aug 3, 2015

+1 for this feature request! separating the storage and the front end on two different machines should be normal practice and therefore it would be nice if the local storage could be completely disabled.

@PVince81
Copy link
Contributor

In theory this is already possible on the technical level. You need to find a way to trick ownCloud (hack) to mount system-wide external storages to an empty mount point, or basically "/$user/files/" instead of the usual mount point like "/$user/files/subdir".

@PVince81
Copy link
Contributor

So here the idea is to allow the web UI to accept "/" as a valid mount point value.

Careful testing needs to be done to make sure this doesn't break other things.
Also needs to be documented.

@PVince81 PVince81 modified the milestones: 9.0.10, 9.0.9 Apr 13, 2017
@butonic
Copy link
Member

butonic commented Apr 13, 2017

actually the web ui allows it ... the server side prevents /. This limitation can be removed with:

diff --git a/apps/files_external/controller/storagescontroller.php b/apps/files_external/controller/storagescontroller.php
index b26e85c..8b2d418 100644
--- a/apps/files_external/controller/storagescontroller.php
+++ b/apps/files_external/controller/storagescontroller.php
@@ -144,7 +144,7 @@ abstract class StoragesController extends Controller {
         */
        protected function validate(StorageConfig $storage) {
                $mountPoint = $storage->getMountPoint();
-               if ($mountPoint === '' || $mountPoint === '/') {
+               if ($mountPoint === '') {
                        return new DataResponse(
                                array(
                                        'message' => (string)$this->l10n->t('Invalid mount point')

bear in mind that this is likely to cause problems. Let us know if you try!

@PVince81 PVince81 modified the milestones: 9.0.10, 9.0.11 May 29, 2017
@PVince81 PVince81 modified the milestones: triage, 9.0.11 Jun 29, 2017
@PVince81
Copy link
Contributor

Another approach that could allow this: #29502.

With that approach one could specify a specific external storage entry as the home for a user.

@PVince81 PVince81 modified the milestones: triage, backlog May 22, 2018
@spaceone
Copy link

spaceone commented Aug 9, 2021

I need this, too.

@holgerjakob
Copy link

With large amounts of external storage being available, it really makes no sense to me to store any of the files in a precious local storage

@stale
Copy link

stale bot commented Sep 20, 2021

This issue has been automatically closed.

@stale stale bot closed this as completed Sep 20, 2021
@didierm
Copy link

didierm commented Sep 20, 2021

Reopen, please.

@prilly-dev
Copy link

i need this also

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests