nextcloud / android

📱 Nextcloud Android app
https://play.google.com/store/apps/details?id=com.nextcloud.client
GNU General Public License v2.0
4.27k stars 1.77k forks source link

"Upload all now" option #667

Open jasonbayton opened 7 years ago

jasonbayton commented 7 years ago

Currently I can select the folders I want to be monitored but I can't make it check and upload files not currently in the corresponding server directory.

As a stop-gap for true two way sync it'd be nice to have an option in folder settings (where the directory, upload on WiFi only, etc are set) to scan and backup now any files not in the set remote directory.

This may be a good permanent solution for one way sync (which I assume will always be present as an option) also.

jasonbayton commented 7 years ago

@mario I can't assign on mobile by the looks of it. FYI.

mario commented 7 years ago

@jasonbayton again the issue with the date modified :( Unless you only want us to check by filename :-/

But I get your point.

jasonbayton commented 7 years ago

Date modified is going to be an issue for 2 way sync also isn't it?

jasonbayton commented 7 years ago

Why not check against both? Date in filename takes precedence as with all modern cameras and phones the date (in some form, identifiable through a regex query?) in the filename is the true date, while date modified can be changed.

Where date in the filename can't be detected, fall back to last modified.

Is that impractical to implement? Is this idea flawed?

jasonbayton commented 7 years ago

cc: @AndyScherzinger @tobiasKaminsky

OlivierS1 commented 7 years ago

I think a true two way sync shouldn't rely on timestamp of any kind, at least not completely. I think checksum of some sort is preferred, but requires more CPU processing. I believe checksum/hash is done on the Windows Desktop app to some level, but I don't think it can really be considered two way sync either as failled download are not automatically reprocessed.

jasonbayton commented 7 years ago

There are many ideas being floated around for 2 way sync at the moment across issues. Checksum was one of them but would be considered very slow currently.

But this is for "upload all now" rather than 2 way. :)