rcx icon indicating copy to clipboard operation
rcx copied to clipboard

[Feature Request] Scheduled sync

Open TTTPOB opened this issue 4 years ago • 27 comments

The reason why I need this feature is that I've scheduled some backup tasks on my phone but I want them to be synced to cloud.

TTTPOB avatar Jan 14 '20 14:01 TTTPOB

I would like to have that feature, too. It would also be usable as a camera upload function.

lllluke avatar Jan 17 '20 09:01 lllluke

I am currently implementing (#37) a way to start a specific sync via tasks. There will be a service which exposes the ability to start a task via an intent. However, i do not think that this app is going to provide the ability to set a time where a task should run (This is my opinion, it may be that the maintainer has a different opinion on that matter)

For now the pull request allows arbitrary apps to start a task, so tasker or some other similar app could help you achieve your goal

newhinton avatar Jan 22 '20 14:01 newhinton

However, i do not think that this app is going to provide the ability to set a time where a task should run (This is my opinion, it may be that the maintainer has a different opinion on that matter)

It actually sounds like a great idea. There might be technical challenges though since Android vendors like to kill background processes, which are probably required to run a task scheduler.

x0b avatar Jan 23 '20 12:01 x0b

@x0b That is quiet easily solved, i wrote multiple apps that use the Alarmmanager to schedule tasks (including an app that triggers an rclone task ;) )

I have found that this works quiet well and i use it for multiple things. If you want to try it out: https://git.felixnuesse.de/Felix/timed-intent-trigger/

newhinton avatar Jan 23 '20 12:01 newhinton

Yeah, I was probably more concerned by the prospect of an onslaught of issues from people where the phone kills the alarms. If it works, its fine.

x0b avatar Jan 23 '20 12:01 x0b

I am currently using RCX to backup phone data as well. Right now it is a very manual process. A way to automatically or schedule a backup would be a killer feature for me.

ioogithub avatar Oct 24 '20 19:10 ioogithub

Might be worth looking at the logic implemented in a Syncthing scanning feature:

There are two methods how Syncthing detects changes: By regular full scans and by notifications received from the filesystem (“watcher”).

https://docs.syncthing.net/users/syncing.html#scanning https://github.com/syncthing/syncthing-android/search?q=fileWatcher https://github.com/syncthing/syncthing/blob/31559e908be43778c00014f6f580999dc77019c8/lib/model/folder.go

dmgr avatar Nov 14 '20 14:11 dmgr

This issue should have not been closed, TTTPOB... My comment above is not a solution, but an inspiration.

dmgr avatar Nov 14 '20 14:11 dmgr

This issue should have not been closed, TTTPOB...

sorry for that, you are right, this is a public feature request now

TTTPOB avatar Nov 14 '20 14:11 TTTPOB

What about a 1x1 sync widget for a first fast implementation?

kojid0 avatar Jan 10 '22 08:01 kojid0

@kojid0 The sync feature is already done, it only needs reviewing. If you want to try it, i can upload an apk (or you build it yourself)

newhinton avatar Jan 10 '22 08:01 newhinton

Didn't saw that. That's awesome! Can you share an apk, please?

kojid0 avatar Jan 10 '22 09:01 kojid0

app-oss-arm64-v8a-debug.zip

Use at your own risk. I am using this now for more than two years, and it works great though

newhinton avatar Jan 10 '22 09:01 newhinton

Use at your own risk. I am using this now for more than two years, and it works great though

Thank you, will try it!

kojid0 avatar Jan 10 '22 09:01 kojid0

@kojid0 Please report any issues you have here: #84

newhinton avatar Jan 10 '22 09:01 newhinton

app-oss-arm64-v8a-debug.zip

Use at your own risk. I am using this now for more than two years, and it works great though

@newhinton I tried installing that APK but running into "App Not Installed" Error

Enabled "Install from unknown sources" Disabled "Google Play Protect" Running Android 11

Any idea what might be causing the error?

ms866 avatar Feb 06 '22 02:02 ms866

@ms866 You may have an arm7 phone, what brand&model do you have?

newhinton avatar Feb 10 '22 10:02 newhinton

@newhinton OnePlus8Pro Qualcomm Snapdragon 865  Kryo 585 CPU (64-bit) Adreno 650 GPU

ms866 avatar Feb 10 '22 14:02 ms866

@ms866 Hmm, that should work, its the appropriate architecture.

I have attached the universal-apk, you could try that.

However: That specific build is brand new hot out of the oven and there are some things broken in it ;) Nothing major though, im implementing a retry button.

Edit: Zip is missing because not uploading. Give me a sec Edit2: Okay github does not allow files above 25m app-oss-armeabi-v7a-debug.zip app-oss-arm64-v8a-debug.zip

I have now attached apks from that build, just not the universal one. Though i guess the v7a version will not work, you can try it anyway

newhinton avatar Feb 10 '22 14:02 newhinton

@newhinton I was just so pumped when I saw you mention the scheduling feature I could literally get rid of syncthing if so!

ms866 avatar Feb 10 '22 15:02 ms866

@ms866 and i am sure we will get it working! Worst case: we will set you up with android studio and run it manually!

newhinton avatar Feb 10 '22 15:02 newhinton

@newhinton Yeah 8a gave me the same error :/

ms866 avatar Feb 10 '22 15:02 ms866

both? Do you want to try setting it up yourself?

newhinton avatar Feb 10 '22 15:02 newhinton

@newhinton 7a gave me an error when extracting it to begin with I would have to wait till the weekend to set it up myself Thanks for all the help and patience Also let me know if this conversation is a bit too long to be had on this github issue. I'm more than happy to continue this elsewhere

ms866 avatar Feb 10 '22 15:02 ms866

any news on this?

wokawoka avatar Mar 20 '23 16:03 wokawoka

@wokawoka Please see https://github.com/newhinton/extRact

newhinton avatar Mar 20 '23 16:03 newhinton

@newhinton it looks great, thanks! I'm going to test it right now

wokawoka avatar Mar 20 '23 17:03 wokawoka