My question: I am running NextcloudPi for a few years on a RaspberryPi 3. I recently bought another Rpi4 and intending to use this for NextcloudPi going forward given its additional horsepower compared to Rpi3.
Is there any recommended way in upgrading to avoid a new installation? Considering also attached USB disks, where the data and backup is stored?
Or is it simple about using existing SD card and USB hard-disk (including doing a backup) and doing an update of the software?
After some further search, I updated the kernel (again), which installed the appropriate kernel for RPi4 incl. the 64bit experimental version via apt (and not manual as above):
Do u use the same power supply that you used for the Rpi 3? Afaik these may m0be too weak/incompatible with the Rpi 4 and could be the reason it does not boot
So finally Sunday and I had some time to do some further tests.
Power Supply: Yes, using the official power supply for Rpi4.
rpi-update: I ran that via a prepared Raspbian-SD successful. I can now get the RPi4 to start with the nextcloudpi image/SD card. Great, many thanks for that tip. Much appreciated.
I hit now the next barrier, which seems to be common, that eth0 does not come up at all on RPi4 after upgrading from elder versions… haven’t found a solution yet doing some very quick research, but looks like this is the next step for me.
Hi I’m in a similar position, though with less experience. I have recently set up and populated nextcloudpi on a Rpi3+hdd1 and would like to move it to a Rpi4+hdd2 (a different, larger disk). How about the following plan:
Connect an extra disk, hdd3 to the Rpi3.
1a. update the Rpi3+hdd1 nextcloudpi to the current version
Use nc-backup on Rpi3 to backup the configuration, database and data to hdd3
Shutdown the Rpi3, boot up Rpi4+hdd2 and give it the same IP address as the Rpi3 had.
Make a fresh, bare bones install of nextcloudpi on the Rpi4+hdd2
Reconnect hdd3 to the Rpi4.
5a. update the Rpi4+hdd2 nextcloudpi to the current version
Use nc-restore in the bare bones installation to trample over and replace the configuration, database and data on Rpi4+hdd2
Optionally, keep hdd3 mounted on the Rpi4 as a destination for future backups/snapshots of the configuration, database and data.
By way of preparation, I’ll play around with the bare-bones install on the Rpi4+hdd2 to make sure that backup/restore and snapshot work as I hope.
Ha. Failed at step 2. My attempt to use nc-backup on Rpi3+hdd1 produced error messages and nextcloud left itself in maintenance mode. Fortunately, I found the following hint on here:
sudo -u www-data php /var/www/nextcloud/occ maintenance:mode --off
and that apparently got nextcloud working normally again.
I felt more than a little uneasy at the thought that the Rpi3 system (which has 50GB of data loaded) might have been corrupted by the failed backup and so I will play some more with nc-backup on the Rp4 system before having another go on the Rpi3.