I’ve searching for similar topics, but I’m keeping some questions.
My current scenario is a OrangePi 4 with an external USB HD. Dietpi_userdata is in the external drive.
OrangePi is running some containers: filebrowser, npm, netalertx and portainer. I tried Immich but this SBC has not enough power for that and take a long time for the jobs.
So I want to change OrangePi by a miniPC, with the same external drive.
I want to do this with as less steps as possible, and as much safely as possible as well.
Then, I ask you for some help and advice about the migration.
I think that I must do:
Backup containers and volumes. Backup current dietpi_userdata and personal files, just in case.
Install Debian (without graphic environment) in miniPC
In the first boot, in dietpi-config:
A) Mount the external HD in the same path as current.
B) Select to move dietpi_userdata to the the path it has currently (and thus to the external HD)
Restore the containers backups.
Check that -hopefully- everything works fine.
In step 6, will Dietpi preserve the original contents in the dietpi_userdata folder?
Is there any missing steps I must take?
No the kernel for the OS is compiled for a different architecture of processor…they are not cross compatible…like for like compile of the OS…otherwise it won’t work…
You can build the miniPC, then rsync over the user_data from the ARM to the miniPC…migrate the userdata over
Well, it seems that I didn’t explain myself.
In step 1 I would backup only user data: dietpi_userdata
In step 2, I would install a new, fresh, amd64 Debian in the miniPC and later would run dietpi-installer. Also I could install the nativePC version of Dietpi, I don’t know which is the preferred way for a miniPC.
As you can see, anything to do with arm64
So the question is about the quickest and safest way to recovering the old personal and configuration files
Anyway, I think I would do a backup of dietpi-userdata and later a restore with dietpi-sync. It is a lot of more time consuming as there is 1 TB already in the external disk, but it seems to be the better way.
Generally it works, but do not run dietpi-installer after attaching the external drive, but before doing so:
Backup userdata and other non-arch data/configs.
Install fresh Debian and run dietpi-installer or flash our x86 image, as noted by Stephan.
Boot and finish first run setup without installing software yet.
Attach external drive and move userdata via dietpi-drive_manager. It won’t remove anything but just takes over what is there, in case merges what is on /mnt/dietpi_userdata already.
Install software as you like. It will migrate whichever data dirs it finds in /mnt/dietpi_userdata.