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

[Feature Request] Scheduled sync #38

Open
TTTPOB opened this issue Jan 14, 2020 · 27 comments
Open

[Feature Request] Scheduled sync #38

TTTPOB opened this issue Jan 14, 2020 · 27 comments
Labels
✨ Enhancement New feature or request Help Wanted See https://x0b.github.io/dev/ to get started Priority: P3 Feature Requests and other enhancements 🗘 Synchronisation

Comments

@TTTPOB
Copy link

TTTPOB commented Jan 14, 2020

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.

@lllluke
Copy link

lllluke commented Jan 17, 2020

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

@newhinton
Copy link

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

@x0b
Copy link
Owner

x0b commented Jan 23, 2020

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 x0b added ✨ Enhancement New feature or request Help Wanted See https://x0b.github.io/dev/ to get started Priority: P3 Feature Requests and other enhancements labels Jan 23, 2020
@newhinton
Copy link

@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/

@x0b
Copy link
Owner

x0b commented Jan 23, 2020

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.

@ioogithub
Copy link

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.

@dmgr
Copy link

dmgr commented Nov 14, 2020

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

@TTTPOB TTTPOB closed this as completed Nov 14, 2020
@dmgr
Copy link

dmgr commented Nov 14, 2020

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

@TTTPOB
Copy link
Author

TTTPOB commented Nov 14, 2020

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

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

@kojid0
Copy link

kojid0 commented Jan 10, 2022

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

@newhinton
Copy link

newhinton commented Jan 10, 2022

@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)

@kojid0
Copy link

kojid0 commented Jan 10, 2022

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

@newhinton
Copy link

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

@kojid0
Copy link

kojid0 commented Jan 10, 2022

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!

@newhinton
Copy link

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

@ms866
Copy link

ms866 commented Feb 6, 2022

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?

@newhinton
Copy link

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

@ms866
Copy link

ms866 commented Feb 10, 2022

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

@newhinton
Copy link

newhinton commented Feb 10, 2022

@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

@ms866
Copy link

ms866 commented Feb 10, 2022

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

@newhinton
Copy link

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

@ms866
Copy link

ms866 commented Feb 10, 2022

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

@newhinton
Copy link

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

@ms866
Copy link

ms866 commented Feb 10, 2022

@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

@wokawoka
Copy link

any news on this?

@newhinton
Copy link

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

@wokawoka
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Enhancement New feature or request Help Wanted See https://x0b.github.io/dev/ to get started Priority: P3 Feature Requests and other enhancements 🗘 Synchronisation
Projects
None yet
Development

No branches or pull requests

9 participants