rsync on ubuntu

rsync error on ubuntu 16.04 server.
i try to sync folder between two ubuntu server and say
sshpass -p password@ rsync  ssh -avhre user@ip_server:/home/my/direct/ /home/my/
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1655) [generator=3.1.1]

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.

Try adding the quiet option to the rsync command, this will only show error messages instead of all files being transferred.

-q, --quiet  

This way you should easily see which files failed and why.
Prabhin MPEngineer-TechOPSCommented:
sshpass -p 'sshpassword' rsync --progress -avz -e ssh test@remhost:~/something/ ~/bak/

please try this
JasaidaAuthor Commented:
' ' round for password is not help i get the same error
and -q say:
Unexpected remote arg:
but the argument is user@ip:/folder/  ?
or what?
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

JasaidaAuthor Commented:
I  don't know, what happend, bit it's working now. i recreate ssh key's.
Which option i should use for full sync?
i mean when i remove a file from source is still in target.  
i create a file "a" in source it's comming in target then i remove a a file ia still in target after sync.
--delete will delete files on the target
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
The message some files/attrs were not transferred normally appears when one of the following is true.

1) rsync version mismatches on systems, where one rsync is super old.

2) File system mismatches on two systems, which can relate to either ACLs or XATTRs as rsync sometimes gets confused about reporting the precisely correct error.

Try switching to only using options rsync -av first + see if you get a clean run.
JasaidaAuthor Commented:
delete option is not working.
can i use with other option or need to use separately .
i say :
sshpass -p "password" sync -ahvre --delete sh  user@server:/folder/../  /folder../
try this order

... rsync --delete -av -e ssh  ...

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
JasaidaAuthor Commented:
Thanks it's working i just put --delete first
... rsync --delete -avhre ssh ....
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

From novice to tech pro — start learning today.