`rsync` is failing when executed from cron

Solution Verified - Updated -

Issue

  • Getting below error when executing rsync from cron as a user.
rsync: connection unexpectedly closed (0 bytes received so far) [receiver] 
rsync error: unexplained error (code 255) at io.c(600) [receiver=3.0.6]
  • rsync is working fine from command line. However getting error when executed from a cron.

Environment

  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In