Skip to content
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 #3828

Open
juliusknorr opened this issue May 16, 2022 · 9 comments
Open

User migration #3828

juliusknorr opened this issue May 16, 2022 · 9 comments

Comments

@juliusknorr
Copy link
Member

With 24 we have a server API to handle user migration which deck should also support by implementing https://docs.nextcloud.com/server/stable/developer_manual/digging_deeper/user_migration.html

We already have a way to dump json exports of boards which could be reused, but it might be missing some data:

  • Comments
  • Activity
  • File shares

Especially with file shares it might be a topic for further discussion on how to handle those on user migration. The files might not be owned by the board owner and therefore would not be migrated. Also sharing migration is currently not implemented for files in general.

@Olen
Copy link

Olen commented Nov 10, 2022

What is needed to get this running? Is there anything I can do?
We already have both export and import of deck data (unfortunately the import script can't import the data that the export script generates...) so it should be possible to reuse a lot of that code.
But I don't want to duplicate any work if someone is already working on this.

@politas
Copy link

politas commented Dec 14, 2022

Is there a pair of descriptions of the import and export formats that could be used to write a conversion script? I've just moved all my other data over to a new Nextcloud server, and I really want to get my decks transferred.

@ne0YT
Copy link

ne0YT commented Oct 18, 2024

@Olen were you able to figure this out?

@Olen
Copy link

Olen commented Oct 18, 2024

I don't remember exactly what I did. I think I made an export, and then modified it manually to create a valid import file, and then imported it.
Or did I simply take a database dump, adjust some values, and push it to the new db?
It's not somethng I do on a regular basis, so for the one time, I just made something that worked there and then

@ne0YT
Copy link

ne0YT commented Oct 18, 2024

@politas @juliusknorr
maybe you can tell me how it works?
exporting works smh but importing I can't do. it always tells me config file not found.
there are multiple docs but none of them work.

and the user migration addon also doesn't include it. at least not as a separate option to choose like calendar.

@politas
Copy link

politas commented Oct 18, 2024

I just gave up and recreated my decks manually.

@paskalito
Copy link
Contributor

@ne0YT

see here: #3506 (comment)

interested in hearing back if it worked for you

@ne0YT
Copy link

ne0YT commented Oct 21, 2024

@paskalito it doesn't work for me on the snap package.
it always tells me "config file not found", no matter if I use --config or if i pass it when it asks for it using the full path or ./thefile.json etc.
this might be a snap specific thing, idk.

@ne0YT
Copy link

ne0YT commented Oct 22, 2024

yeah the file obviously needs to be accessible from within snap then it works :) also tested with AIO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🧭 Planning evaluation (don't pick)
Development

No branches or pull requests

5 participants