For some reason, mariadb-backup package got uninstalled without me noticing it
(i.e. the error raised by my nightly backup script).
Unfortunately, because of subsequent filesystem corruption on my master RAID,
I completely lost my owncloud database.
(My mariadb-backup based script produced empty backups on my backup RAID).
Now, can the database somehow (partly) be recovered from the files in /data?
I know I could lose a lot of information like versions, access rights, link shares etc.
Anyway, I would like to recover as much as possible automatically …
That’s IMHO completely useless. I might be wrong, but if you don’t have a backup of your db (sqldump), you have to reinstall. This will perform scanning of your existing files anyway.
Yes, at least for the initial (admin) user. For additional users it might fail, as their accounts do not exist yet. But here would manual scanning help, I guess.
You convinced me – I’ll give it a try … just backed up /var/lib/mysql* and did sudo apt install --reinstall mariadb-server-10.3 sudo apt install --reinstall mariadb-server-core-10.3
– both successful, mysql services now start again …
Now backing up /var/www/owncloud (this will take some time), then will do sudo apt install --reinstall owncloud-files
– fingers crossed …