OLD-SERVER = Nethserver 6.8 with LDAP and OwnCloud 7
NEW-SERVER = Nethserver 7.4 with LDAP and Nextcloud 12
Question I have is, how do I migrate or export/import several/all users from OLD-SERVER to NEW-SERVER?
Both are running slapd (OpenLDAP) and both are masters.
Can I restore a backup from OLD-SERVER to NEW-SERVER even though they are different versions?
I would be bummed if I had to do each user by hand or wipe and install 6.8 on NEW-SERVER to restore a backup and then upgrade everything.
I just did this, used rsync to copy the data and upgrade the new server. This will add in owncloud instance to the new server. Once the new server is up and running, add Nextcloud via the Software Center. After that you will be able to run the migration script
I then tried /usr/share/doc/$(rpm -q --queryformat "%{NAME}-%{VERSION}" nethserver-nextcloud)/owncloud-migrate , but the command appears to do nothing.
There should have been some kind of feedback from the script, check that you have /var/www/html/owncloud and that all of the original users and files are there.
To see which users are in nextcloud run this command:
su - apache -s /bin/bash -c "source /opt/rh/rh-php56/enable; cd /usr/share/nextcloud/; php occ user:list"
@cswain:
Your command only lists the two users listed in the NEW-SERVER dashboards “users and groups” tab.
None of the users from OLD-SERVER.
All the original users data from OLD-SERVER is on NEW-SERVER.
I have not resolved it yet.
I tried a clean Nethserver 7 install on the NEW-SERVER and restored the backup config and data from the Nethserver 6 (OLD-SERVER).
All the data and config restored successfully and OwnCloud was functioning on the NEW-SERVER.
I was still unable to get the user accounts migrated from OwnCloud to NextCloud.
I have since changed jobs and no longer have access to the systems.
Sorry I am unable to follow through to a solution for this thread.