Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[0.10 and 0.11] Export configuration to a folder under /storage/emulated/0 #364

Closed
marcelpaulo opened this issue Apr 18, 2015 · 11 comments
Closed

Comments

@marcelpaulo
Copy link

Would it be neater to export the configuration files to a folder under /storage/emulated/0 instead of directly under it, as it's done now for both 0.10 and 0.11 branches ?

This is almost cosmetic, but I catch myself always doing this manually: exporting the configuration, then moving the 3 files:

cert.pem
config.xml
key.pem

to another folder (to be synced to my laptop using syncthing !).

@Nutomic
Copy link
Contributor

Nutomic commented Apr 18, 2015

I'm pretty undecided about this. What folder would you suggest?

@marcelpaulo
Copy link
Author

Don't know if there's a standard such as FSH for Android, but I've seen that there's already a:

/sdcard/Android/data/com.nutomic.syncthingandroid.debug/files

so would something like:

/sdcard/Android/data/com.nutomic.syncthingandroid/backup

fit in?

@Nutomic
Copy link
Contributor

Nutomic commented Apr 19, 2015

Two problems with that:

  • the folder is rather difficult to find if you don't know it
  • if you uninstall the app, that folder is deleted, possibly including your just backed-up keys and config

So I wouldn't use it.

@marcelpaulo
Copy link
Author

Agreed, it makes sense.

After I export my configuration, I move the 3 files to:

/storage/sdcard1/data/syncthing

and, of course, /storage/sdcard1/data is defined as a syncthing folder, so that it syncs with my laptop.

So, I'd suggest:

/storage/emulated/0/data/syncthing

Would this respect Android filesystem standards and solve the 2 problems you raised ?

@Nutomic
Copy link
Contributor

Nutomic commented Apr 20, 2015

I have a data folder on my sd card, but the only folder in there is from Titanium Backup, so not sure if it's a standard one. Do you know any documentation on this?

Also, this has the same problem of being difficult to find for new users (if they don't read the toast very carefully).

@marcelpaulo
Copy link
Author

Do you know any documentation on this?

I googled around but only stumbled across very generic articles, such as this. Very far from FHS.

I posted this question on AndroidForums, let's see if something comes out of it. Off topic perhaps, do you know of any good, solid forums for Android ?

this has the same problem of being difficult to find for new users

Not if it's documented. Whatever directory is chosen will be difficult to find if not documented. For that matter, the way it is done now, new users won't intuitively spot which files belong to syncthing's exported configuration.

@marcelpaulo
Copy link
Author

The discussion on the AndroidForums thread is stretching on. What I've read and tested so far confirms my vote for:

/storage/emulated/0/data/syncthing

or alternatively:

/storage/emulated/0/backups/syncthing

after I observed that apps such as ES File Manager keep their backups under /storage/emulated/0/backups.

@Nutomic
Copy link
Contributor

Nutomic commented Apr 20, 2015

xda-developers is quite popular, as is the Android Subreddit.

backups/ sounds like a good option actually, I'll implement that 👍

@marcelpaulo
Copy link
Author

Great, @Nutomic, happy that you changed this !

Thanks for the tips about Android forums: have already created accounts on both !

@Nutomic
Copy link
Contributor

Nutomic commented Apr 20, 2015

Maybe that gives you something else to do than opening issues :D

/s

@marcelpaulo
Copy link
Author

Serial issue opener :D

I better lay low for a while lest I be hunted down and caught !

Zillode pushed a commit to Zillode/syncthing-android that referenced this issue Apr 23, 2015
@syncthing syncthing locked and limited conversation to collaborators Nov 9, 2018
acolomb pushed a commit to acolomb/syncthing-android that referenced this issue Nov 12, 2023
* Dump 15 mins of log history

* Exclude OS stuff from log (fixes syncthing#364)

* Remove milliseconds from log

* Remove (whitespace_PID)

* Remove "beginning of main/system" from log
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants