How do I upgrade the Image without losing settings

Read my post here: https://dietpi.com/forum/t/need-help-before-update-to-dietpi-v6-x/1928/1
I hope this helps for the start.

The best practice is indeed to do a dietpi-backup, mount this to the new system and copy manual adjusted config lines, over into the new config files.