My old RaspberryPi with a manual Nextcloud installation literally went up in flames so I buyed a new one (with active cooling!) and want to migrate all my data (users, files, contacts, calendars, apps…) to the new system running NextcloudPi.
I have a full backup of my old system.
What’s the best approach to do this? What do I need to migrate and in which way?
Of course I need my data folder. I guess I can just copy that to the new datafolder location (inside the ncdata folder or instead of it?
Probably also the Database from /var/lib/mysql/nextcloud? Or the whole mysql folder?
Do I need to copy the config.php from my old system?
If it makes things easier: I only have two active users, I could also recreate them with the same credentials.
Would that be a possibility to create them manually and just copy the data folder and re-scan the files?
Also I wouldn’t mind to manually reinstall apps etc. The most important things are files, calendars and contacts.
Any help is much appreciated! Thank you very much!
Old System
Nextcloud 29.0.5
Hardware: RaspberryPi 4 Model B
Operating system and version: Raspbian GNU/Linux 11, 32bit
Database MariaDB 10.5.12
New System
NextcloudPi latest version
Hardware: RaspberryPi 5
Operating system and version: Raspbian GNU/Linux 12, 64bit
Do you a favour and setup a new instance.
You are switching from 32bit to 64bit.
Gladfully you have a copy of personal data to import/copy so you and your 2 users should see it as a chance to start fresh.
Good advice. But what about the Contacts and Calendars? I can’t just drop these… Can I manually copy them from my old mysql/nextcloud folder into the new db?
Hope you haven’t used fde .
So if your backup deserves to be called as such, then you should try to get the old instance running on an older rpi (lend from a friend) to get the data from your database (exporting/importing as ics or vcf files).
You need the database credentials to get the data, so the running old instance would be nice.
Unfortunately my backup isn’t any good…
I can see all the files, they have realistic filesizes but I can’t open them, no matter if it’s a JPEG, a Textfile or a database file…
It looks like they all are corrupted somehow.
I used a backup tool under Windows to backup the full partitions and restored them with the same tool.
Is it possible that this is what happens if one tries to open an encrypted partition…?! Tbh I can’t remember if I used any encryption.
I don’t know, I never felt to need disk encryption, and would do on sbc only for learning and testing.
Seems the only chance you have get your backup running on a 32-bit os capable rpi. Maybe you find some entries in a password database, so you remember how you backed up your instance.