Iâm trying to convert my nextcloud aio instance back into a standard installation. In my experiment, standard means - based on Debian, Docker and Portainer.
This works so far except for importing the users. The cloud admin is imported, but all other users are not, for reasons I donât understand.
What I did:
- Stop all Containers of Nextcloud AIO
- Copy database-dump.sql from /var/lib/docker/volumes/nextcloud_aio_database_dump/_data
- Adjust user in database: sed -i âs/oc_nextcloud/oc_admin/gâ database-dump.sql
- Copy database to running nextcloud portainer (new instance) - docker cp database-dump.sql :/database-dump.sql
- Login in to Database Container - docker exec -it /bin/bash
Delete & recreate Database, import dump:
PGPASSWORD=âxxxxxxxxxxxxxxxxxxxxxxxâ psql -h localhost -U oc_admin -c âDROP DATABASE ânextcloud_databaseâ;â -d postgres
PGPASSWORD=âxxxxxxxxxxxxxxxxxxxxxxxxâ psql -h localhost -U oc_admin -c âCREATE DATABASE ânextcloud_databaseâ;â -d postgres
Import Dump
PGPASSWORD=âxxxxxxxxxxxxxxxxxxxxxxxxxxxxâ psql -h localhost -U oc_admin -d nextcloud_database -f database-dump.sql
Restart Containers Nextcloud & Database
Login with admin on new nextcloud possible - but all users missing:
The number of existing users is displayed but the users themselves are missing