External Storage auf Nextcloud
[Bug]: Can't save global credentials in external storage · Issue #49829 · nextcloud/server
Using the occ command — Nextcloud latest Administration Manual latest documentation
Files external
These commands are used for managing Nextcloud’s External Storage feature. In addition to replicating the configuration capabilities in the Web UI, additional capabilities include exporting / importing configurations, scanning External Storage mounts that require login credentials, and configuring update notifications (if supported by the storage type).
Note
These commands are only available when the “External storage support” app (files_external
) is enabled.
Available commands for the “files_external” namespace:
files_external:applicable Manage applicable users and groups for a mount files_external:backends Show available authentication and storage backends files_external:config Manage backend configuration for a mount files_external:create Create a new mount configuration files_external:delete Delete an external mount files_external:export Export mount configurations files_external:import Import mount configurations files_external:list List configured admin or personal mounts files_external:notify Listen for active update notifications for a configured external mount files_external:option Manage mount options for a mount files_external:scan Scan an external storage for changed files files_external:verify Verify mount configuration
files_external:scan
provides the ability to provide a username and/or password for cases where login credentials are used.
Use files_external:export
to export all admin mounts to stdout, and files_external:export [user_id]
to export the mounts of the specified Nextcloud user.
Use files_external:import [filename]
to import legacy JSON configurations, and to copy external mount configurations to another Nextcloud server.
Beispiel
Hello I Could solve my Issue using this solution (Thanks to jtr) :
Connect to your VM (Shell Linux) hosting your NextCloud. Use SU.
Go to the Folder hosting NextCloud with the occ file. (This step should look evidence for everyone , but I am Noob hahaha, I give advices for Noob )
And write this :
Here , you can do this :
sudo -u www-data php occ files_external:list
You can see the bad External Drives and delete it with :
sudo -u www-data php occ files_external:delete X
Then , you can re-create good ones by using this command :
sudo -u www-data php occ files_external:create Blabla ‘sfpt’ password::password -c host=X.X.X.X -c share=/X/ -c root=/X/ -c domain=workgroup -c user=X -c password=X
Replace : X with Yours
Have a nice day
No Comments