rcx icon indicating copy to clipboard operation
rcx copied to clipboard

Trigger sync by local filesystem change

Open fabeit opened this issue 3 years ago • 5 comments

Pre-Submission checklist

  • [x ] There is no existing issue that already asks for this feature.
    If no, please add a +1, and maybe a comment if you have more to add.
  • [ ] The feature already exists in rclone (on your PC or in Termux)
  • [ ] I am prepared to help make this feature

What version of RCX are you using (About -> App version)?

1.11.4

What problem are you trying to solve?

Autosync when local folder is changed.

What should RCX be able to do differently with help this problem?

I would like to have a local directory mirrored to a remote directory, so when I make changes in the local directory there is an automatic sync to the remote.

At the moment it seems I have to go the remote and select sync and then select "sync local to remote". Also it doesn't seem with Gdrive that I can just sync the whole content of my Gdrive, I need to move all files within a top directory.

fabeit avatar Dec 28 '20 21:12 fabeit

Also it doesn't seem with Gdrive that I can just sync the whole content of my Gdrive, I need to move all files within a top directory.

I think that should work - to synchronise any remote/folder, you can navigate to that remote/folder, and then use the top level menu. If that does not work, open an additional issue.

when I make changes in the local directory there is an automatic sync to the remote.

-> changed title

  1. What should happen if there is no network connectivity?
  2. Do we need to monitor subdirectories for changes?
Implementation notes
  • Probably requires a ForegroundService + FileObserver => battery drain likely
  • Requires temporary/permanent failure detection => retry/disable trigger?

x0b avatar Dec 31 '20 10:12 x0b

@x0b It's likely that keeping a service running might drain battery. One option might be to have a global sync button, another option is to run the service only during some interval, like 10-15 minutes. If there's no connection nothing happens, and the sync timer is reset whenever there is a successful update. Just some ideas.

fabeit avatar Dec 31 '20 15:12 fabeit

One option might be to have a global sync button, another option is to run the service only during some interval, like 10-15 minutes. If there's no connection nothing happens, and the sync timer is reset whenever there is a successful update. Just some ideas.

This would be the proposal in issue 38.

alexanderadam avatar Apr 17 '21 08:04 alexanderadam

Can I add my support for this request. This would be such a useful feature when roaming where equipment failure or loss is an issue. At least I'd still have any recent photos and documents.

KodeToad avatar Jul 22 '22 03:07 KodeToad

+1

wokawoka avatar Mar 20 '23 16:03 wokawoka