Code
systemctl stop kodi
mv /storage/.kodi /storage/.kodi-old
mkdir -p /storage/.kodi
cp -R /mnt/oldcard/STORAGE/.kodi/userdata /storage/.kodi/
systemctl start kodi
^ that will deliberately not import add-ons (which will need to be updated) but does get all their settings and any other userdata config so anything you've configured should restart using the pre-existing configuration. Databases will be updated on first restart, assuming they aren't corrupted (which is a possibility). If a file is corrupted and Kodi hangs you can "tail -f /storage/.kodi/temp/kodi.log" and see which DB file things hang on, then stop kodi, delete the offending DB file and then restart Kodi again and if there's an older/earlier DB file it will attempt to import that one instead. Art content like thumbs is best left to download again as the resulting cache is smaller and more efficient.