How can I configure rsync to create target directory on remote server?
If you have more than the last leaf directory to be created, you can either run a separate ssh … mkdir -p first, or use the –rsync-path trick as explained here : rsync -a –rsync-path=”mkdir -p /tmp/x/y/z/ && rsync” $source user@remote:/tmp/x/y/z/ Or use the –relative option as suggested by Tony. In that case, you only … Read more