How to upgrade from dietpi v6.8 running RPi (armv7l) to dietpi on rock64 ?

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
ido2
Posts: 3
Joined: Fri Jun 14, 2019 1:48 pm

How to upgrade from dietpi v6.8 running RPi (armv7l) to dietpi on rock64 ?

Post by ido2 » Fri Jun 14, 2019 1:50 pm

I have installed a fresh copy of dietpi on the rock64.
What now? - How do I transfer installed applications and configuration to rock64?

Thanks,

User avatar
MichaIng
Site Admin
Posts: 1882
Joined: Sat Nov 18, 2017 5:21 pm

Re: How to upgrade from dietpi v6.8 running RPi (armv7l) to dietpi on rock64 ?

Post by MichaIng » Fri Jun 14, 2019 3:11 pm

@ido2
/mnt/dietpi_userdata + /var/www + /root + /home/dietpi + (in case you have an own user) /home/username should be transferred first.
In case there are software binaries in /mnt/dietpi_userdata/software_name, you need to remove them mostly, just keeping the configuration files, since the binaries must be overwritten/recompiled.
Afterwards (re)install the chosen software titles via dietpi-software. It will migrate most of the settings and software.

Then you might want to transfer some more settings files from /etc or other locations. But this must be done individually only for those software titles/packages where you really miss custom configs. Generally it is recommended to do fresh installs and reapply configurations to assure compatibility in case of newer versions and stuff.

Keep the old SDcard/drive with from the old SBC/machine for a while, so you can always review and in case recover own configurations.

Do you have MariaDB installed and in case ownCloud or Nextcloud? We have a migration script to transfer these savely to a new machine.
In case of MariaDB you need to create a mysqldump, remove /mnt/dietpi_userdata/mysql and after having it freshly installed on the new machine, import the database dump. For ownCloud/Nextcloud this is integrated into the migration script.

ido2
Posts: 3
Joined: Fri Jun 14, 2019 1:48 pm

Re: How to upgrade from dietpi v6.8 running RPi (armv7l) to dietpi on rock64 ?

Post by ido2 » Mon Jun 24, 2019 6:09 pm

I don't use MariaDB or Nextcloud.

What about Dietpi configuration (not only the software which is installed)?
- Where is that stored ; how to move to new device?

User avatar
MichaIng
Site Admin
Posts: 1882
Joined: Sat Nov 18, 2017 5:21 pm

Re: How to upgrade from dietpi v6.8 running RPi (armv7l) to dietpi on rock64 ?

Post by MichaIng » Fri Jun 28, 2019 1:15 pm

@ido2
Ah yeah you might want to transfer /boot/dietpi.txt and the dot files /boot/dietpi/.dietpi-<something> (before booting up the new device the first time!).

But note that many system configurations must be re-applied, even that they are in dietpi.txt for reference. Some of those are applied on first boot indeed (AUTO_SETUP_...) some have a direct effect (boot wait for network, logging, ...) but many require some system settings edit, that depends on the board as well and that need to be re-applied from dietpi-config.

Generally /etc/ is the most common system config directory, but you cannot just copy that, it's much too device specific. I would only recommend to review changes you manually made to specific files, so you can manually add them to the new device as well. But for everything you did not manually edit, stay with the new defaults from system/software installs and as said dietpi-config.

ido2
Posts: 3
Joined: Fri Jun 14, 2019 1:48 pm

Re: How to upgrade from dietpi v6.8 running RPi (armv7l) to dietpi on rock64 ?

Post by ido2 » Fri Jun 28, 2019 2:04 pm

I ended up doing diff -r on /etc and /Dietpi and manually review changes.
It was difficult to diff the applications installed by apt-get though.

User avatar
MichaIng
Site Admin
Posts: 1882
Joined: Sat Nov 18, 2017 5:21 pm

Re: How to upgrade from dietpi v6.8 running RPi (armv7l) to dietpi on rock64 ?

Post by MichaIng » Sun Jun 30, 2019 4:25 pm

ido2 wrote:
Fri Jun 28, 2019 2:04 pm
diff -r on /etc and /Dietpi
Good method actually. However I bet the output is enormous? Sometimes less is more ;).

Post Reply