How can I backup and restore android when switching mobiles and changing ROM? - eviltoast

Hi I am looking for an easy way to backup parts of my mobile like some apps and folders to my pc and restore it after changing rom or to another mobile. I am using nobara linux and android 13. Need some open source linux solutions that can be done in few clicks or commands. Assuming they would be using adb commands but can use fdroid apps if it can work without rooting as well. My current mobile is rooted but not sure if I will be rooting it again with another rom.

If that isn’t available could just make a script to use certain commands. Need to backup the following stuff,

  1. F-droid and it’s installed apps I do have fdroidcl installed but haven’t figured out the commands for it yet

  2. Aurora and it’s installed apps No idea how to do that

  3. Aegis Auth I do have auto backup on so do I only take those files?

  4. Bitwarden It is saved in cloud so can do it manually if it’s messy

  5. Few other apps if possible Not sure if taking a copy of certain data folders would work and no idea how many of them are there. Does it work for Aegis and Bitwarden as well? Both would be encrypted but if the key is my password then should be fine I suppose.

Still not that knowledgeable in these things so would be nice if the instructions are easy to understand.