Well, I think it is working again. I found a config.php of an old snap installation. Look at this link, maybe it will work for you, too:
Cannot write into “apps” directory · Issue #1492 · nextcloud-snap/nextcloud-snap · GitHub
No, the backup should have been local.