rsync on ubuntu

Jasaida used Ask the Experts™
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]

Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
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 MPDevOps Engineer
Distinguished Expert 2018

sshpass -p 'sshpassword' rsync --progress -avz -e ssh test@remhost:~/something/ ~/bak/

please try this


' ' 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?
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!


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 FavorFractional CTO
Distinguished Expert 2018
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.


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


Thanks it's working i just put --delete first
... rsync --delete -avhre ssh ....

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial