Rsync Creates A Directory With The Same Name Inside Of Destination Directory

Check Date

Works on 2018-01-22 19:11:49 +0800


Rsync creates one more directory “tests” inside of existing “tests”


If you don’t want another tests directory created, the correct command would be

rsync -avzp —del -e “ssh -p myport” user@hostname:/var/www/tests/ /var/www/tests Note the / at the end of user@hostname:/var/www/tests/.


Published 22 Jan 2019

Bring the answer to lost vistor
MagicRabbit on Twitter