User migration
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.
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.
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.
@Olen were you able to figure this out?
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
@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.
I just gave up and recreated my decks manually.
@ne0YT
see here: https://github.com/nextcloud/deck/issues/3506#issuecomment-2416265703
interested in hearing back if it worked for you
@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.
yeah the file obviously needs to be accessible from within snap then it works :) also tested with AIO
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.
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.
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.