Why do I get an error, "rsync: mkdir "/kiwi/site_ojk/data" failed: No such file or directory" on RHEL?

Solution Verified - Updated -

Issue

  • When run the rsync script data manually it hit mkdir error. ssh is working fine with remote server.
[root@localhost]# rsync -avz /kiwi/site_ojk/data/ -e ssh root@<remote-host>:/kiwi/site_ojk/data
sending incremental file list
rsync: mkdir "/kiwi/site_ojk/data" failed: No such file or directory (2)
rsync error: error in file IO (code 11) at main.c(576) [receiver=3.0.6]
rsync: connection unexpectedly closed (9 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=3.0.6]

Environment

  • Red Hat Enterprise Linux (RHEL) 6.5

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

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content