The Basics
- Nextcloud Server version (e.g., 29.x.x):
- 30.0.6
- Operating system and version (e.g., Ubuntu 24.04):
- TrueNas scale
- Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
- TrueNas App(Docker)
can sombody help me to migrate my nextcloud.
-
I have created a new nextcloud App in trunas scale. It is running.
-
i copied all user data to the Dataset "UserData"
-
created a directory Backups in the dataset "PostgresData" where i copied in my dump file.
-
moved into the Postgres container with
docker exec -it ix-nextcloud-postgres-1 bash
-
dropped existing database
psql -U nextcloud -d template1 -c "CREATE DATABASE \"nextcloud\";"
-
created now one
psql -U nextcloud -d template1 -c "CREATE DATABASE \"nextcloud\";"
-
restore from dump file
pg_restore -U nextcloud -d nextcloud nextcloud2025.sql
-
it was working a wile. then i looked it up
postgres@23234142195d:/$ psql -U nextcloud psql (17.3 (Debian 17.3-1.pgdg120+1)) nextcloud=# \c nextcloud You are now connected to database "nextcloud" as user "nextcloud". nextcloud=# \dt Did not find any relations.
- Seems that it have not worked. What do I need to do? And after it’s working, how do i add the user oc_admin as it is in the nc config.php to the database?