From 0decfe49000f7dd4c2819d74842e56bf15fc8c28 Mon Sep 17 00:00:00 2001 From: Lance Date: Wed, 25 Oct 2023 07:39:09 -0700 Subject: [PATCH] Update migration.md with info about synchronization Add information about synchronizing after migration. There maybe issues if the server has been offline for a while and a user reconnects clients for synchronization. Signed-off-by: Lance --- migration.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/migration.md b/migration.md index db40e281..0cac55ce 100644 --- a/migration.md +++ b/migration.md @@ -86,3 +86,15 @@ If not, feel free to restore the AIO instance from backup and start at step 8 ag ## Use the user_migration app A new way since the Nextcloud update to 24 is to use the new [user_migration app](https://apps.nextcloud.com/apps/user_migration#app-gallery). It allows to export the most important data on one instance and import it on a different Nextcloud instance. For that, you need to install and enable the user_migration app on your old instance, trigger the export for the user, create the user on the new instance, log in with that user and import the archive that was created during the export. This then needs to be done for each user that you want to migrate. + +# Synchronising with clients after migration +#### From https://docs.nextcloud.com/server/latest/admin_manual/maintenance/restore.html#synchronising-with-clients-after-data-recovery +By default the Nextcloud server is considered the authorative source for the data. If the data on the server and the client differs clients will default to fetching the data from the server. + +If the recovered backup is outdated the state of the clients may be more up to date than the state of the server. In this case also make sure to run the maintenance:data-fingerprint command afterwards. It changes the logic of the synchronisation algorithm to try an recover as much data as possible. Files missing on the server are therefore recovered from the clients and in case of different content the users will be asked. + +>[!Note] +>The usage of maintenance:data-fingerprint can cause conflict dialogues and difficulties deleting files on the client. Therefore it’s only recommended to prevent dataloss if the backup was outdated. + + +If you are running multiple application servers you will need to make sure the config files are synced between them so that the updated data-fingerprint is applied on all instances.