I want to exclude folders which are already on a remote server (i.e.
test/xyz) and I want to run
rsync from my source server where I have
test1/xyz folder so I don't want to overwrite
xyz folder on remote side.
Also I want to update the files if there any files deleted/added on source server that will be deleted/added on the remote server, but excluding the
I have tried below command to exclude the remote directory but it copies excluded directory and files on remote directory.
rsync -ave ssh --exclude=remotedirectory root@IPADDRESS:remotepath --delete sourcepath
Any ideas, please?