Migrating files and app-data from backup of old broken install

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • Nextcloud Hub 9 (30.0.6)
  • Operating system and version (e.g., Ubuntu 24.04):
    • Yunohost 12.0.11
  • PHP version (e.g, 8.3):
    • 8.3
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Yunohost app
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

I was running nextcloud 28 on yunohost pre bookworm. I have most/all of data on a raid and the rest of root on an SSD.

In November the SSD failed and I was too busy to get it up and running until the previous week.

So I’m in a situation with all of my data and maybe the database files accessible, and a new running instance of yunbohost and nextcloud 30. I have logged in and everything seems good. No other users have regained access yet so I have a rather large “maintenance window”.

I have read the documentation on migrating and restoring backups, but it doesn’t mention what to do if the “old” system is several major versions older than current.

It is not important to me to get everything as it was, I’ll remake shares and so on. But I would like to get the contacts, calendars, todos, and so on back.

I’m a little bit afraid of borking this as, so any and help is greatly appreciated. :smile: :pray: :sun_with_face:

I have read the documentation on migrating and restoring backups, but it doesn’t mention what to do if the “old” system is several major versions older than current.

The versions need to match. If you have access to the old environment (sounds like it), the easiest way to confirm the version there is to check the version listed in the config/config.php and/or run occ status (if functional).

It is not important to me to get everything as it was, I’ll remake shares and so on. But I would like to get the contacts, calendars, todos, and so on back.

All of the listed items (including shares for that matter) stored in the database. So getting them back will depend on your ability to recover the database or restore from a backup.

1 Like

If the database is accessible, you should be able to restore contacts, calendars and todos with calcardbackup.
Check out the section Does this also work with a broken ownCloud/Nextcloud instance? in the README of the repo at codeberg.

1 Like