Uh oh!
There was an error while loading. Please reload this page.
Clarify apps need to be replicated during restores and migrations - #8142
Clarify apps need to be replicated during restores and migrations#8142thomasthe1st wants to merge 1 commit into
Conversation
Added the advice to think about copying the apps folders since otherwise 2FA might be broken.
ChristophWurst
commented
Mar 24, 2022
could you elaborate? What's special about 2FA in terms of backing up apps? |
thomasthe1st
commented
Mar 24, 2022
Hi Christoph, after migrating to a new server I was not able to login anymore. The codes did not work and the 2FA app (twofactor_totp) was not enabled. Therefore nextcloud did not ask for the codes but directly asked for backup codes. The backup codes however did not work as well. Therefore I thought it might be worth adding this to the documentation, |
ChristophWurst
commented
Apr 5, 2022
Thanks. The problem you're describing could be critical for any type of app. You are also in trouble if you forget to back up your authentication apps, file system apps and so on. |
ChristophWurst
commented
Apr 5, 2022
Let's just add apps to the list of things to back up? |
thomasthe1st
commented
Apr 6, 2022
Adding the apps folder to the list of things to backup sounds good to me. |
tflidd
commented
May 29, 2022
There are apps that are storing information to the data folder! And in the developer documentation, it says there is a controller to handle this (not said, where data is stored though ...): It was done on purpose to separate code from data. You should ask the developers of these apps to fix their apps! @ChristophWurst Shouldn't you know that? |
ChristophWurst
commented
May 30, 2022
@tflidd I'm afraid I don't understand. Those apps write to app data, right? App data is part of the data directory. This will be backed up. @thomasthe1st issue was that if you restore only data to a vanilla installation of Nextcloud, any additional apps will be missing until you install them again. Critical apps will render the installation unusable, however. So the idea is to back up data and app code. |
tflidd
commented
May 30, 2022
Yes. So everything critical is stored in the data folder and you don't need to keep copies of the code as well. Or does this mean the |
ChristophWurst
commented
May 30, 2022
If we go by example, what if your installation relies on user_saml for authentication. After disaster you restore data from backup but take the code from a Nextcloud base installation. That means the user_saml app isn't there and you can't run your Nextcloud to install the app. I think that was the point of backing up data and code (including apps). |
joshtrichards
commented
Sep 3, 2025
Whether the The other option might to mention in both the Restoring and Migrating chapters that the replacement environment should have the same apps installed (one way or another). I guess that isn't noted strongly anywhere. |
skjnldsv
commented
Apr 23, 2026
As there is no feedback since a while I will close this ticket. Thanks for the interest in Nextcloud and the effort put into this! 🙇 |
Added the advice to think about copying the apps folders since otherwise 2FA might be broken.