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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


could you guve us the exact command you used ?

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?
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.