I am trying to push data from one server to another using rsync. I need to set the owner and permissions on the remote server. Here is my rsync:
rsync --chown=process:sambausers --chmod=D770,F770 -rptlvog /home/cloudserv/test.txt [email protected]:/Drive_D/docs/temp
All works, except the owner is not set - owner is set to cloudserv, which is the user rsync is sshing as. Can anyone tell me what I am misisng?
You are not root on the server, so you can't change the owner. You need to connect with [email protected]