Nextcloud version: 29.0.4~ynh2
Operating system and version: Yunohost 11.2.14
Apache or nginx version: 2.4.25
PHP version: 8.3
The issue I’m are facing:
App update in nextcloud 28 went bad.
Upgrade to nextcloud 29 went really bad.
No backup made of Nextcloud.
Well there’s the automated pre-update backup,
but the app update caused Nextcloud to go into permanent maintenance mode.
Fully reinstalled nextcloud and I’m now trying to save what I can.
It’s a private server so it’s almost no one but myself is on it.
One other person is using talk with me.
I’m able to get my cloud files back manually by copy pasting
/home/app/nextcloud/data/ from
I wonder if it’s possible to do the same with
contacts, calendar, deck, notes and talk.
You can copy the user files e.g. /home/app/nextcloud/data/<username>/files in the new file structure and Nextcloud can re-scan it with: sudo -u www-data php /path/to/nextcloud occ files:scan --all documentation
That is not possible because all the data of that is in the Nextcloud database e.g. MariaDB.
It depends what you mean by “Fully reinstalled nextcloud”. If you still have the disk, VM, whatever your pervious installation was on, you could still try to repair the old installation. Also the database of your old installation would then still be there.
If you only kept the datafolder and deleted the old VM, or reinstalled the whole OS on the same disk as your previous installation, or if you dropped the old database before reinstalling Nextcloud, those things are gone for good.
Not having a backup makes a bad situation worse. There is nothing anyone can do if you don’t backup your data. A good backup strategy will enable data recovery in the case of disaster. So depending on your backup frequency and how often you practice restoring your backup, you’ll have a good chance of system recovery within a couple of hours with limited data loss.
did you by any chance enable automatic calendar and contacts backup in your Android-client? if so, there’s a chance you’ll find contact exports in .Contacts-Backup and calendar export in .Calendar-Backup directory respectively in .../nextcloud/data somewhere.
NOTE: these are hidden dot-files, so be sure to unhide dot-files to discover these directories…
I still have the SD card of the previous installation.
I’ll try and find the bak file of the database.
I found a db.sql file of 281 MB, perhaps that’s my database.
Depending on what “Upgrade to nextcloud 29 went really bad.” means, you could maybe also try again to upgrade the existing installation on that SD-card… Maybe it didn’t went as bad as it seems…
Looks like it, but I have to say I’m absolutely no database expert, so I can’t really help you with step-by-step instructions on how to migrate the database over. If I were in that situation, I would have to trial and error and googeling me through.
But maybe this and this will help, at least to understand how it works in principle, as it describes how to migrate a working instance from one server to another, respectevily how to backup and restore a working instance.