rsync create a target directory on a server over an ssh tunnel?

Managed to solve it. The command inside –rsync-path must be wrapped in another level of quotes:

rsync -av -e "ssh -A [email protected] ssh" --rsync-path "'mkdir -p /home/user/new/new && rsync'" ./file.txt  [email protected]:/home/user

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top