It is more an idea than a question.
Before every update, I’m afraid that it could go wrong and that I have to spend the next few hours looking for a solution. Honestly, it hasn’t happened to me very often, but there are a few cases here in the forum and actually I’m more concerned with the certainty that I can safely import the next update.
Wouldn’t it be practical to have a way to clone a complete Nextcloud instance on the web space?
So copy all files into a parallel or subordinate directory and either create a new database (will be difficult for most hosts to automate) or insert the tables with a new prefix into the original database.
Then the update could be tested with this clone.
Of course, the config.php of the clone would have to be adjusted and it may not be necessary to copy the user files.
It would be important that the clone script runs via PHP and does not require SSH access so that it can also be used by users who only have a web space account.
How do you like this idea?
Is it worth creating such a script, or does it even make sense to program the whole thing as an app?
Are there technical reasons why this might not work?
My skills are not sufficient to program such a script well enough. If I should try it, I would be dependent on ideas and help.