What files and folders does a nextcloud installation manipulate?

I have a nextcloud installation on a server that is updated from a second, staging server. So I want to be able to push the nextcloud stuff including new versions without damaging the server. What files/folders do I need to protect? From what I can see,
config/CAN_INSTALL must not be copied
config/config.php must not be overwitten
apps/ bruteforcesettings must not be overwritten
Of course, the data directory and the mysql stuff must also not be overwritten.
Anything else?

the data folder, but you can keep this out of the nextcloud root folder.
The app folder is normally not required, you can delete and replace it with the new folder and the update procedure will get the new code. Also make sure to delete old code so you don’t mix old and new code.

1 Like