External Storage to Root Directory

Hey Nextcloud,

I want to change the nextcloud root-directory to my external storage.

I try to export the config of the external_storage with:
sudo -u www-data php occ files_external:export > list.txt

After that I manipulate the list.txt
sudo nano list.txt

Finally I imported the list back to nextcloud with:
sudo -u www-data php occ files_external:import list

The result was good, after the login theexternal_storage directory was my root-directory.
The Problem is… when i visit the adminpage, my manipulated config were overwritten. :confused:

Sry for my bad english.
Greets
Pisoko


[
{
“mount_id”: 1,
“mount_point”: “/EXTERNAL”,
“storage”: “\OCA\Files_External\Lib\Storage\OwnCloud”,
“authentication_type”: “password::logincredentials”,
“configuration”: {
“host”: “**.de",
“root”: “”,
“secure”: true,
“user”: “alber”,
“password”: "

},
“options”: {
“encrypt”: true,
“previews”: true,
“enable_sharing”: false,
“filesystem_check_changes”: 1,
“encoding_compatibility”: false
},
“applicable_users”: [
“alber”
],
“applicable_groups”: []
}
]

to

[
{
“mount_id”: 1,
“mount_point”: “/”,
“storage”: “\OCA\Files_External\Lib\Storage\OwnCloud”,
“authentication_type”: “password::logincredentials”,
“configuration”: {
“host”: “**.de",
“root”: “”,
“secure”: true,
“user”: “alber”,
“password”: "

},
“options”: {
“encrypt”: true,
“previews”: true,
“enable_sharing”: false,
“filesystem_check_changes”: 1,
“encoding_compatibility”: false
},
“applicable_users”: [
“alber”
],
“applicable_groups”: []
}
]

@icewind can perhaps help you

has anyone figured this out? this is something that i’ve been looking for a long time, and googled the hell out of this…sounds like this would be a common feature, to be able to auto save photos and videos to a external hard drive directory of choice. Can this be done???