Feature to restore Syncthing on a re-installed device

When I import the previously exported Syncthing settings to a re-installed device - in this case an Android phone with a new custom ROM - .stfolder and .stignore (Option to restore ignore patterns) are missing.

Therefore I ask for a feature to restore the Syncthing configuration on a re-installed device to prevent errors:

  • create .stfolder
  • create .stignore

What did you use to back up and restore the Syncthing app on Android? The built-in backup mechanism doesn’t back database up, only config, keys, and certificates.

The exported data with the built-in backup also contains a folder “index-v0.14.0.db”.

Are you using the official app?

Just to confirm, I’m talking about the “Export Configuration” option that you can find in the app settings.

I’ve just tested it, and the only files exported are:

cert.pem
config.xml
https-cert.pem
https-key.pem
key.pem

I use Syncthing Fork. I thought it uses the same export dialog.

I haven’t tested the export function on the Fork, but there are quite a few differences between the two, so I wouldn’t be surprised if the behaviour differed here as well.

The official app doesn’t export database, which is the safe way to go, as without any database present, Syncthing will simply download everything from scratch without assuming that the folder has been emptied.

1 Like

Thank you! Then I will create an issue at the Fork’s repo and edit my OP.

No problem. The part about not backing .stignore up is still valid. It would be nice to have those exported as well, however I wouldn’t hold my breath for this to be implemented unless a volunteer steps up and does all the work.