Skip to content
This repository has been archived by the owner on Feb 20, 2019. It is now read-only.

mount.json for external storags was moved to db #2236

Closed
ghost opened this issue Mar 11, 2016 · 9 comments
Closed

mount.json for external storags was moved to db #2236

ghost opened this issue Mar 11, 2016 · 9 comments
Assignees
Milestone

Comments

@ghost
Copy link

ghost commented Mar 11, 2016

Ref: owncloud/core#20354

@qwertymodo
Copy link

Edit: My comment was probably best separated as its own issue, so I'll just pull it from here and leave it at #2237

@carlaschroder
Copy link
Contributor

Interesting...lots of changes happening in external storage. Thanks @RealRancor

@carlaschroder carlaschroder added this to the 9.0.1-current-maintenance milestone Mar 11, 2016
@ghost
Copy link
Author

ghost commented Mar 11, 2016

Lots of changes without even doing a ping at the documents tracker about such changes. :-/

@RobinMcCorkell
Copy link

Sorry, we dropped the ball on this one, we should have notified you guys the manual config process was changing. The new files_external can be configured through the occ interface, which should be used as a replacement for provisioning by creating mount.json manually.

Notable commands:

  • occ files_external:backends - list all storage backends and authentication mechanisms
  • occ files_external:list [<user_id>] - list all configured external storages, prints admin storages by default but can be passed a user ID to list personal storages instead
  • occ files_external:config <mount_id> <key> [<value>] - get or set a configuration key on a storage
  • occ files_external:create --config=... <mount_point> <storage_backend> <authentication_backend> - create a new storage configuration for the mount point, storage backend and authentication mechanism, with the config provided in --config=... (in the format key=value, specify --config= multiple times for multiple keys)
  • occ files_external:delete <mount_id> - delete a storage configuration
  • occ files_external:import <path> - import storage configuration from the legacy JSON format, also useful when provisioning an instance. Specify - for the path to read from stdin.

Hope that helps!

@qwertymodo
Copy link

occ files_external:import /path/to/mount.json worked great, thanks.

@carlaschroder
Copy link
Contributor

Yay thanks @Xenopathic

@carlaschroder carlaschroder self-assigned this Mar 14, 2016
@carlaschroder
Copy link
Contributor

#2299

@michaelstingl
Copy link
Contributor

@carlaschroder I found another wrong section about "Configuration File":
https://doc.owncloud.com/server/9.0/admin_manual/configuration_files/external_storage_configuration_gui.html#configuration-file

Configuration File

Storage mount configurations are stored in a JSON formatted file. Admin storages are stored in data/mount.json, while personal storages are stored in data/$user/mount.json. For more advanced use cases, including provisioning external storages from outside ownCloud, see Configuring External Storage (Configuration File).

This links to:
https://doc.owncloud.com/server/9.0/admin_manual/configuration_files/external_storage_configuration.html

Configuring External Storage (Configuration File)

Starting with ownCloud 9.0, the data/mount.json file for configuring external storages has been removed, and replaced with a set of occ commands.

… and this finally links to the OCC page:
https://doc.owncloud.com/server/9.0/admin_manual/configuration_server/occ_command.html#files-external-label

Files External

These commands replace the …

@michaelstingl michaelstingl reopened this Apr 25, 2016
@carlaschroder
Copy link
Contributor

All fixed.

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

No branches or pull requests

4 participants