Without nc-restore, You would miss users, so unless you have only 1 or two users, and recreate them manually.
Nc-restore will do that for you, when restoring the database, after which it will run nc-scan also.
The database will be rebuild/checked by nc-scan.
A (Linux) mointpoint is usually created at /media or /mnt, as in my example above
It is where external drives are connected to the system.
After my first successful restoring of a backup I have learned a lot and edited this wiki as well. Iām now 90% sure that this should work as it is now.
If you have a Pi 4 with the armhf (32bit) image consider testing this āhow-toā and give feedback. The worst that can happen is that you need to restore the full backup.
Well, I had some time to try my tutorial. (I did it in my own test envirement, ethernet directly to my Mac, so I donāt have internet and also can not use the web pannel for some reasonā¦)
Anyway, I succeeded, and changed the 32bit image on the SD card with the arm64 image, restored settings, users and apps with nc-import-ncp & nc-restore (dataless backup).
As mentioned by @OliverV nc-scan is done automatically, so no need for that. I also did not do a nc-fix-permissions, but it canāt hurt if you do.
I have not tested for more than a few minutes, but all seems to work fine.
As an argument to use this method, restoring a full backup of 420 GB took about 10h. Following this tutorial with the same setup, took roughly 30min (19min of it to do the nc-scan).
Only there is one strange error when it was finished.
First of all, thank you for your tutorial
after restoring my ncp-config_XXXXXXXX.tar
I have no access to my nextcloudpi (https://192.168.1.***:4443/) page or ssh access
Can you help me to find the solution please
Note: I have followed all the steps in the tutorial
Running nc-import-ncp
Running nc-automount
automount enabled
Running SSH
New password: Retype new password: No password has been supplied.
New password: Password change has been aborted.
passwd: Authentication token manipulation error
passwd: password unchanged
file not found
Running unattended-upgrades
Unattended upgrades active: yes (autoreboot true)
Running nc-webui
Site ncp disabled.
To activate the new configuration, you need to run:
systemctl reload apache2
ncp-web disabled
Running nc-previews-auto
Automatic preview generation enabled
Running nc-httpsonly
Forcing HTTPS On
Running nc-notify-updates
update web notifications enabled
Running nc-backup-auto
automatic backups enabled
configuration restored
Sorry for not reacting, Iām back online after a long time.
so, you still donāt have access to the ncp web panel?
can you make sure that the web panel is enabled in the ncp-config settings (command line)sudo ncp-config
itās somewhere in the settings, not sure where exactly.
sorry for the very long time to respond. I never had to do that, so I cant give you a solid answer. So do your own research before doing this.
I donāt know your setup, but if you have al NC data on a separate disk, not the OS disk, you can probably just flash the 64bit OS of your choice to the host,
setup docker,
install NCP in a Docker container and mounting the NC data volume from your separate data disk.
Restoring the NCP configurations via nc-import-ncp broke the whole installation two times (maybe my ncp-config_XXXXXXXX.tar was corrupted), so the third time I just used the wizard and the menus in the web interface (admin panel) (https://nextcloudpi.local:4443) and made the modifications I needed. Took me less than twenty minutes.