AIX - rsync permission error

Can someone help with this error below?

rsync: Failed to exec /data/cv2data_mobile: Permission denied (13)
rsync error: error in IPC code (code 14) at pipe.c(86) [receiver=2.6.9]
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in IPC code (code 14) at io.c(453) [receiver=2.6.9]

I'm doing a basic rsync on a directory from a source server to the target. I can ssh to and from the source and target server, and tried to run my rsync over ssh, but that did not work either.
Who is Participating?
woolmilkporcConnect With a Mentor Commented:
By default, rsync does not transfer symbolic links, and the message is telling you that such links exist at the source but are skipped.

Should you want to transfer symbolic links there are several options:

"--links"   recreates links with the same target on the destination server. "-a" implies this.
"--copy-links"  copies the regular files referenced by the links, not the links themselves

There is also a distinction between "safe" and "unsafe" links. See the rsync docs:

Here is a summary:
-l, --links                 copy symlinks as symlinks
 -L, --copy-links            transform symlink into referent file/dir
     --copy-unsafe-links     only "unsafe" symlinks are transformed
     --safe-links            ignore symlinks that point outside the tree
     --munge-links           munge symlinks to make them safer
 -k, --copy-dirlinks         transform symlink to dir into referent dir
 -K, --keep-dirlinks         treat symlinked dir on receiver as dir
 -H, --hard-links            preserve hard links

could you guve us the exact command you used ?

woolmilkporcConnect With a Mentor Commented:
Seems you have a misplaced "-e" flag in your rsync command.

"-e" is used to identify the remote shell to be used, -like "-e /usr/bin/ssh".

Use the "-e"  option like above or omit it!
AIX25Author Commented:
Thank you woolmilkporc....I have omitted the -e switch. However, my rsync is skipping files that I need copied over.

skipping non-regular file "/example/file1"

What can I do to prevent this from happening?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.