deck icon indicating copy to clipboard operation
deck copied to clipboard

User migration

Open juliusknorr opened this issue 3 years ago • 6 comments

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.

juliusknorr avatar May 16 '22 07:05 juliusknorr

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.

Olen avatar Nov 10 '22 10:11 Olen

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.

politas avatar Dec 14 '22 08:12 politas

@Olen were you able to figure this out?

ne0YT avatar Oct 18 '24 10:10 ne0YT

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

Olen avatar Oct 18 '24 11:10 Olen

@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.

ne0YT avatar Oct 18 '24 11:10 ne0YT

I just gave up and recreated my decks manually.

politas avatar Oct 18 '24 20:10 politas

@ne0YT

see here: https://github.com/nextcloud/deck/issues/3506#issuecomment-2416265703

interested in hearing back if it worked for you

paskalito avatar Oct 20 '24 20:10 paskalito

@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 avatar Oct 21 '24 09:10 ne0YT

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

ne0YT avatar Oct 22 '24 19:10 ne0YT

That would be really great. I had to change my instance from one service provider to another. Unfortunately, my deck data was lost in the process. Support for exporting via the User Migration App would be really great.

Markoise avatar Jan 21 '25 15:01 Markoise

Migrating data from one Nextcloud instance to another instance (not to mention portable exports) as well as from one user to another is always an issue, at least potentially. I may be wrong, but my general impression is that this is given surprisingly little consideration in Nextcloud apps.

RainerKlute avatar Jan 21 '25 16:01 RainerKlute

Migrating data from one Nextcloud instance to another instance (not to mention portable exports) as well as from one user to another is always an issue, at least potentially. I may be wrong, but my general impression is that this is given surprisingly little consideration in Nextcloud apps.

Yes, that's a very big problem for anyone who doesn't have or can't run their own server. So most apps for such users are not for serious use. Unless the stored data is not important.

Markoise avatar Jan 21 '25 16:01 Markoise