-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User migration (foundation) #30397
Comments
@AndyScherzinger would this include any file metadata or would this simply be a clone of a user's directory structure and files? |
Good point – as per @AndyScherzinger’s remark on the bottom we don’t / can’t migrate any sharing data, but there is additional metadata. Here’s a list
|
@jancborchardt list is complete as far as I can tell 👌 Versions, favorite state, tags, and maybe comments good for MVP then? |
Sounds great, yep! :) (And good point on bringing it up cause indeed even for an MVP that would be useful cause otherwise people might as well just Select all → Download. :D) |
What about user metadata? (account name, personal information, email, settings, password…) |
Should this go in core/ or in an application?
Does that mean it should go inside |
Personal info, emails and settings would be very nice indeed. It would be a pain to set all of that again, and that’s always one of the issues when setting up a new laptop if that’s not automatic. Account name not sure if it makes sense, we could put it in there, but maybe people will have a different name on the other instance, in which case we should just ignore it? And passwords might be better not to export and handle? Is of course convenient, but then we would need to encrypt? cc @AndyScherzinger what do you think? |
I suppose export might be used for backup in some cases, where username is important. Having the username in the export does not mean it has to be imported as is, but it may be used as a default value in the import UI or something.
Yeah I would not be shocked if passwords are not exported at all. I was just mentionnig them to be complete. |
Well, if the use case is migration (which it is for this issue) then a use is moved from one server to another. So the password would need to stay the same. But we could of course leave that out in the first phase and add the password part at a later stage. |
In my humble opinion, if I have access to two user accounts located in two different servers I could want to migrate all the content of one account to the other. So to migrate MrWhite@cloud.nextcloud.com to MrBrown@mynewcloud.com I must have the two passwords to start the process; that should be enough. |
So with nextcloud/user_migration#5 current state I have occ export and import commands able to export and import a user basic information. Here is the output for an export, delete, import of the same user alice from a test setup:
Here are the differences in the output of commands user:info and user:settings between before/after migration:
So core settings are lost, which I will be able to fix thanks to #30739 , last login is reseted (which seems expected?), and for some reason storage is different which might indicate a problem in files migration. Regarding flexibility nextcloud/user_migration#11 is adding the base for implementing exporters/importers in each application to handle their data. Files migration should be refactored to use this system as well. |
How to use GitHub
Is your feature request related to a problem? Please describe.
Enable users or admins to migrate a user and their data from one server/instance to another
Describe the solution you'd like
A way to export and import a user - as the user themself via webUI as well as being an admin via occ
This issue only covers the the step that are needed to layout its foundation and is limited to the user's files:
Base
Extra packages (ordered by priority)
Remarks:
The text was updated successfully, but these errors were encountered: