-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Clarify apps need to be replicated during restores and migrations #8142
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
base: master
Are you sure you want to change the base?
Conversation
Added the advice to think about copying the apps folders since otherwise 2FA might be broken.
|
could you elaborate? What's special about 2FA in terms of backing up apps? |
|
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, |
|
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. |
|
Let's just add apps to the list of things to back up? |
|
Adding the apps folder to the list of things to backup sounds good to me. |
|
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? |
|
@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. |
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 |
|
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). |
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. |
Added the advice to think about copying the apps folders since otherwise 2FA might be broken.