Change SMB shares (e.g. server name, path elements) without creating new storage / losing existing shares
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 36.9k
- Forks
- 5.2k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 713
Description
Hello,
we are using a lot of SMB External shares in out Nextcloud.
The Problem is, if you change the Servername or anything of the Path of the share, all Nextcloudshares that was createt for folders of that smb share, will not work!
That is a bit of a Problem, having hundreds of Nextcloud shares and to have to migrate the SMB Server (or any other external share source)
It would be awesome, if you could alter the process of renaming an existing external share to an real Updating process and not yust creating an new entry.
It is possible.
At the moment for making it work, you have to change the external store to the path you want in the nextcloud WebInterface.
A new entry will be than createt in the oc_storrage.
And all Shares stop working.
If you now log in to the database and delete the new createt line and than alter the path of the old one to the new one, the share will work again with the new serverpath of the external share.
Bit it can be that it is not the only part you need to change.
I gues the oc_filecache could also be needed to get some update
It would really help a lot to alter the Server for external shares.
Kind Regards
Gunther
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how the WebInterface updates external SMB shares and how entries are created in oc_storage. Check whether oc_filecache is also involved. Done means changing the server or path preserves existing Nextcloud shares without creating a replacement storage entry or requiring manual database edits.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend, databases
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100