Move data folder to my second hdd


I have installed nextcloud on ubuntu 22.04.3
Works fine but i need to move data folder to another location

What i have done:
I have copy my data folder from my old nextcloud to my second hard disk
I have put maintenance mode to true
I have run the chown with the new path
I have change the path in the config file
Then i have maintenance mode to false
When i trying to connect i get this error

Your data directory is invalid. Ensure there is a file called “.ocdata” in the root of the data directory

What file is that? (.ocdata)

Maybe i have to do something more?


I hope this can help you :slight_smile:

Thank you for your answer
I have read some threads with the same problem but its confusing for me
I am not use to play with linux commands
I can try a step by step tutorial if it’s any available