seadroid icon indicating copy to clipboard operation
seadroid copied to clipboard

Two-way autosync of any folder

Open kepi opened this issue 11 years ago • 51 comments
trafficstars

It will be huge benefit of Seafile android app if it can sync selected folders similar as it does on desktop.

Same future can be used to auto upload of camera photos but also for many other use cases (saved notes, scanned documents etc). But not only upload but syncing, so I just take 50 photos of same thing because I can't decide :) and I can simply delete those 49 unfocused at my computer and have them deleted also on phone.

As for UI, user should be able to just select any folder in Seafile and than select sync with folder on phone. Than he simply choose any folder on his android and syncing will start.

Setting for enabling only on Wifi should be present.

You can see same/similar functionality for dropbox in external app: https://play.google.com/store/apps/details?id=com.ttxapps.dropsync

kepi avatar Apr 26 '14 12:04 kepi

Hi, better to close all tickets on this subject : when selected a folder propose

  • two way sync (auto/manu)
  • one way upload sync (auto/manu)
  • one way download sync (auto/manu)

by this way, all cases for upload camera picture, documents sync and auto folder sync are covered.

guiguid avatar Apr 26 '14 15:04 guiguid

+1 assuming this would solve the issue have have to manually load each file (for example, in a folder full of a hundred notational velocity notes) so that each file can be created and other apps (say, the note editing app) can start tracking it.

Thanks for the awesome app!

patcon avatar Jul 15 '14 10:07 patcon

+1! As you can see from my reference (posted my request in the wrong place) there are many use cases for this. I think the "folder purpose" soludion by @guiguid looks like it covers pretty much anything.

tmerten avatar Oct 21 '14 09:10 tmerten

:+1:

dszymczuk avatar Feb 23 '15 07:02 dszymczuk

+1 for two-way-sync. With this functionality the android client would be more powerful than the desktop :+1:

schokonsti avatar Mar 02 '15 11:03 schokonsti

Does this function not exist already? Is the Seadroid app just an app for browsing files on the server and downloading them? What happens to individual files opened/downloaded in the app?

I am seriously asking, because the documentation doesn't seem to cover this use case (an incredibly useful one).

mrjovanovic avatar Mar 18 '15 01:03 mrjovanovic

Does this function not exist already?

To be simple, Seadroid App (latest version 1.5.1) doesn`t support two-way auto sync of any folders yet.

Is the Seadroid app just an app for browsing files on the server and downloading them?

Not really, Seadroid App is more powerful than that, e.g. camera photo auto upload

What happens to individual files opened/downloaded in the app?

If a file was downloaded, it will be added to a background observer queue, any modifications on the file will be auto uploaded (one way sync) to the server.

logan676 avatar Mar 18 '15 03:03 logan676

@Logan676 Thanks so much for the replies. Clears something up. :) I agree, sync in the same way as it exists in the desktop client would be extremely useful.

How would I go about adding this information to the wiki?

mrjovanovic avatar Mar 18 '15 03:03 mrjovanovic

What's the current state of this? Can I help in some way to make this feature happen?

moritzschaefer avatar Apr 08 '15 08:04 moritzschaefer

@moritzschaefer Currently, it supports one way sync of a single file, any modifications on the file will be auto uploaded to the cloud. Now we plan to support one way sync of any folder, any modifications under the folder will be auto uploaded.

It`s more than welcome if you can help us make it happen, no matter by submitting patches or functional prototypes or anything else relevant.

Steps to make this happen may looks like this

  1. add a "sync" menu to drop down menu of each folder
  2. monitor modifications specifically under the selected folder
  3. auto sync when detecting changes

Please let me know if you need any help.

logan676 avatar Apr 08 '15 09:04 logan676

I wonder if it might be possible to implement the full seafile HTTP sync protocol in Seadroid. That would solve many problems, including #301, #277 and #91.

  • One would have to keep the ".seafile-data" folder as small as possible. But at a first glance that might be doable.
  • Always syncing a full repository would not be an option, obviously. One would need to figure out a way to do downloads/merge/upload/... individual files or directories without having to checkout the whole repository. I don't know whether that's doable. Maybe using hidden sub-libraries?
  • There would have to be a clever sync scheduler, that only syncs files when necessary. (User opens a file, user refreshes a dirent, wifi+ a/c power available,...)

Maybe there are more roadblocks that I've missed. However if these turn out to be doable, using JNI it might even be possible to re-use some of the C code from the desktop client.

forouher avatar Apr 08 '15 11:04 forouher

This option is still not in there? Geez, that's disappointing. Should be the first feature it should have.

seafile has gotten so weirdly complex, it's not even clear to me what or when it syncs exactly.

jult avatar Apr 12 '16 18:04 jult

What is the status of this issue? It would be a great feature to have and making seadroid 100% usable.

raffh avatar May 29 '16 10:05 raffh

+1 for two-way-sync

serathius avatar Aug 07 '16 11:08 serathius

Would like this feature soooooo much, as well!

At least perhaps something like one-way-but-the-other-way-around... hence you could backup your whatsapp folder (always on internal Android memory in "Whatsapp" directory. For this example it is not even necessary to have it two way, but just like photoupload... simply upload everything that is in this folder every day/week/month... just to replace the google drive backup feature, which is not encrypting anything I guess.

infinity85 avatar Aug 26 '16 21:08 infinity85

any update on this?

LeonardoGentile avatar Sep 19 '16 10:09 LeonardoGentile

ping

LeonardoGentile avatar Jan 23 '17 14:01 LeonardoGentile

+1

ikcalB avatar Jan 31 '17 16:01 ikcalB

+1 too

infinity85 avatar Jan 31 '17 17:01 infinity85

+1 This feature would be awesome! I'd like to synchronize txt-notes for a very long time..

christianfl avatar Jan 31 '17 17:01 christianfl

Even a manual "sync" button for a certain directory would be at least A solution... But the demand is simply ignored :(

infinity85 avatar Jan 31 '17 17:01 infinity85

+1

f0086 avatar Feb 05 '17 14:02 f0086

+3

maybe for some people there is another way. If u enable the seafdav server, you can use apps like foldersync to sync in both ways. But this is very slow and sometimes a bit buggy.

Ralosso avatar Feb 18 '17 02:02 Ralosso

But FolderSync is no free software. So this is no alternative for me.

christianfl avatar Feb 18 '17 02:02 christianfl

+1 for two-way-sync like what pc client does.

ZEALi avatar Mar 08 '17 05:03 ZEALi

+1 I also need to synchronize .txt to be able to drop Google Drive

Raphi111 avatar Mar 15 '17 07:03 Raphi111

+1 for this

droidzone avatar Apr 19 '17 23:04 droidzone

sooo.... nothing? I just installed seafile and I'm really surprised that this is the intended behaviour

SkaveRat avatar May 22 '17 22:05 SkaveRat

What exactly is the problem not implementing this core feature? Is it just that there is no time for that or is the solution too complex to tackle?

f0086 avatar Jun 03 '17 18:06 f0086

I would love this feature... Any updates?

End-to-End-is-the-way avatar Jun 29 '17 13:06 End-to-End-is-the-way