Maybe it isn’t the right subforum, feel free to move, I did it with my Fairphone 5 but I presume it applies to /e/os in general.
It’s like Android The messages directory of the Android Fairphone 5? - #5 by jebez - Fairphone 5 - Fairphone Community Forum .
Root /e/os How to root /e/OS
Copy paste to a non-root directory e.g. in the internal storage:
Messages:
adb shell su -c cp /data/user/0/com.android.providers.telephony/databases/mmssms.db /storage/emulated/0/Download
Notes (by the app):
adb shell su -c cp /data/user/0/foundation.e.notes/databases/OWNCLOUD_NOTES /storage/emulated/0/Download
SD card instead e.g.: /storage/843625bd-08b4-44f0-83ba-1b4a00aa1dca/Download .
You can copy paste to the PC.