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

add exit on sync or execute on sync #9526

Open
muzzol opened this issue May 3, 2024 · 0 comments
Open

add exit on sync or execute on sync #9526

muzzol opened this issue May 3, 2024 · 0 comments
Labels
enhancement New features or improvements of some kind, as opposed to a problem (bug) needs-triage New issues needed to be validated

Comments

@muzzol
Copy link

muzzol commented May 3, 2024

Feature description

Exit the program or execute script when all folders or specific one is fully synced.

My proposal is to add a global flag like --exit-on-sync
If no folder id is specified, all folders should be on Up to Date state to trigger the parameter.

With this parameter a simple script like this should work:

#!/bin/bash
syncthing --no-browser --exit-on-sync --folder-id=abcde-12345
poweroff

Alternatively a similar effect could be achieved with --execute-on-sync=my-script.sh

In any case, the goal is to have a very simple way to know when a folder is synced and give control back to the console and don't wait indefinitely.

Problem or use case

Users with different computers (home, studio, work) with a single folder but huge size, so that have to wait for hours or leave the computer on if they don't have physical access to it.

Alternatives or workarounds

There's a lot of different aproaches on the forums and issues but none is reliable because they use parsing files or programs.

@muzzol muzzol added enhancement New features or improvements of some kind, as opposed to a problem (bug) needs-triage New issues needed to be validated labels May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New features or improvements of some kind, as opposed to a problem (bug) needs-triage New issues needed to be validated
Projects
None yet
Development

No branches or pull requests

1 participant