Discussion:
[unison-users] Feature request
tt ff ttff.900@hotmail.de [unison-users]
2018-02-04 19:11:48 UTC
Permalink
Dear Unison-Developerteam,

I use Unison on a daily basis and it is a great software. But there is
one thing I would like to mention, that would be great if you included
it into the software: when I synchronize files and Unison looses the
connection with the Server, it could retry establishing a connection on
a basis of first let's say 10 seconds, then maybe 30 seconds and so on
instead of waiting for the user to reconnect.

Sincerely,
Thomas Thaler
Isaac Witmer isaaclw@gmail.com [unison-users]
2018-02-04 22:16:14 UTC
Permalink
This post might be inappropriate. Click to display it.
Benoît-Pierre DEMAINE benoit@demaine.info [unison-users]
2018-02-04 19:52:00 UTC
Permalink
No, Unison should not do that, or even handle it. ssh, scp, telnet, cp ...
don't handle this, for good reasons. I have seen this only in wget and
curl; and it's always boring me (I always dig the documentation to disable
this).

Unison immediately exits with an appropriate error message; it's your job
to catch the return value, and restart the job if you want to. This is
trivial to handle in a shell script, whatever your system is. All systems
now have shell scripting (even Windows, since Longhorm; at last, 30y after
every one else).

The return value indicates if something went wrong, what went wrong, how.
You can also write your wrapper to record the output of unison in a
logfile (or a variable), and then, parse the output to know how things
went wrong.

It's really trivial to do, even on a very large scale. I now monitor the
date of last sync, and receive an SMS if one system fails for more than 36h.
Post by tt ff ***@hotmail.de [unison-users]
Dear Unison-Developerteam,
I use Unison on a daily basis and it is a great software. But there is
one thing I would like to mention, that would be great if you included
it into the software: when I synchronize files and Unison looses the
connection with the Server, it could retry establishing a connection on
a basis of first let's say 10 seconds, then maybe 30 seconds and so on
instead of waiting for the user to reconnect.
Sincerely,
Thomas Thaler
--
Post by tt ff ***@hotmail.de [unison-users]
o_/ DEMAINE Benoît-Pierre (aka DoubleHP) http://benoit.demaine.info/
If computing were an exact science, IT engineers would'nt have work \_o<

"So all that's left, Is the proof that love's not only blind but deaf."
(FAKE TALES OF SAN FRANCISCO, Arctic Monkeys)
Continue reading on narkive:
Loading...