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

seaf-cli: sync complete status, then shutdown #1983

Open
Jip-Hop opened this issue Nov 6, 2017 · 1 comment
Open

seaf-cli: sync complete status, then shutdown #1983

Jip-Hop opened this issue Nov 6, 2017 · 1 comment

Comments

@Jip-Hop
Copy link

Jip-Hop commented Nov 6, 2017

I'd like to shutdown the computer after Seafile is done syncing the libraries.
There doen't seem to be an easy/reliable way to check if the seaf-cli client has completed syncing.
seaf-cli status outputs the following:

Seafile sync status:
# Name	Status	Progress
A	downloading	x/x, xKB/s

# Name	Status
B Status	synchronized

In this case I'd have to parse the output and check if synchronized appears two times. Then I can shutdown the computer. But this is rather messy and depends on the amount of libraries synced.

Adding a new argument like this seaf-cli synchronized would solve my problem. It could output true if all libraries are synced or false if still synchronising.

@Rettiwer
Copy link

Also add cli to the windows client, because now I only have two options:
a) to modify client,
b) run virtualbox linux emulator with that seaf-cli client and share folder with windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants