Greetings all,
I use rsync over ssh to back-up to a remote server. In irregular intervals the backup progress stalls, and the remote side reports:
However, when I check, judging by
I do not have root privileges at the remote side; however, I can ask to run specific commands if they could help to analyse the network problem. No irregularity appear on the client side.
Alternatively, is there a way to (1) detect that the ssh pipe is broken, so that rsync can be can killed and restarted, or (2) have the ssh pipe breaking automatically kill rsync so that this event could be detected and rsync restarted by the script?
Kindest regards,
M
I use rsync over ssh to back-up to a remote server. In irregular intervals the backup progress stalls, and the remote side reports:
Code:
packet_write_wait: Connection to XXX.XXX.XXX.XXX port XXXX: Broken pipe
top
and the exit status code, the rsync still runs. Consequently, my script that is watching for the rsync exit status code to report success or to restart rsync never executes.I do not have root privileges at the remote side; however, I can ask to run specific commands if they could help to analyse the network problem. No irregularity appear on the client side.
Alternatively, is there a way to (1) detect that the ssh pipe is broken, so that rsync can be can killed and restarted, or (2) have the ssh pipe breaking automatically kill rsync so that this event could be detected and rsync restarted by the script?
Kindest regards,
M