Jasaida
asked on
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/di rect/ /home/my/
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1655) [generator=3.1.1]
Help!!!
i try to sync folder between two ubuntu server and say
sshpass -p password@ rsync ssh -avhre user@ip_server:/home/my/di
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1655) [generator=3.1.1]
Help!!!
sshpass -p 'sshpassword' rsync --progress -avz -e ssh test@remhost:~/something/ ~/bak/
please try this
please try this
ASKER
' ' 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?
and -q say:
Unexpected remote arg:
but the argument is user@ip:/folder/ ?
or what?
ASKER
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.
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
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
robocat:
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../
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../
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks it's working i just put --delete first
... rsync --delete -avhre ssh ....
... rsync --delete -avhre ssh ....
-q, --quiet
This way you should easily see which files failed and why.