I have a question about to the migration of data to a new nextcloud installation. I have a one node google’s Ganeti cluster with multiple VM’s, nextcloud and the backup VM’s are the only VM’s with external data storage. The Ganeti master (host) and all VM’s run Ubutuntu 16.04.
- For nextcloud I have a raid 5 attached over nfs from the host (Ganeti) to the guest (nextcloud) with 2TB of data
- I am using samba 4 AD to manage user’s accounts
- the user’s folder in the data directory is the UUID of the users
Now I want to move from Ubuntu to debian for the Ganeti master (host) as well as for the VM’s (guests). That means I have to delete every thing, keep the existing raid and reinstall host and guests.
So when setting up a new samba 4 AD and create the users again, they will have a different UUID. My current samba version is 4.3.11-Ubuntu, so I cannot run the backup samba-tool domain backup offline --targetdir=/backup-dir
Is there any way to migrate the data of the existing accounts to the new accounts with the new UUID? Or maybe remapping the existing UUID to the CN?
I found out that UUID's of the users which are the home directories of them are stored in mysql data base.
I already asked this question in nextcloud community but no answer yet.
Thanks in advanced