Steps to clone/sync a phone(sailfishOS) with another or with storage

guys … I made the repositories and packages part and the Apps grid with Folders etc! It is not automated yet (or a ready script), I did the following (try it at your own risk):

  1. Main Device: export list of repositories: ssu lr | awk '{ print $2,$4}' > repos - awk to have a list with repository name and then the link, as ssu ar wants
  2. Main Device: export list of packages: rpm -qa --queryformat "%{NAME} " > packages in main device (space between } and " is important!)
  3. Copy the above generated file packages to the Second Device
  4. Secondary Device: add repositories using “ssu ar NAME and URL” - I added manually ssu ar in the list from step 1.
  5. Secondary Device: run pkcon refresh (it will take a while)
  6. Secondary Device: pkcon install `cat packages` -y
  7. Secondary Device: after pkcon finnish you should see all installed apps in apps grid
  8. Copy the contents of directory /home/defaultuser/.config/lipstick from the Main Device to the same directory on Secondary Device
  9. Secondary Device: Go to Settings → Utilities → Home screen Restart

That’s it! Now you should be able to see the Apps organized as the Main device!

What is missing from the apps:
Any app that wasn’t installed using repositories but rpm (it could be easy to install them if they exist in a standard directory ex. Downloads/rpm)
A home made “App” that runs a shell script
Bookmarks from browser
Android apps ( Even if I had android support on secondary device I don’t know how this could be done and sync the settings of the apps )
Any Apps settings since I didn’t sync yet anything from .local and .config .