Rsync with space in the directory name

I was looking for a way to include a directory name with space using rsync. So I google it, found a brunch of suggestions, which turned out that NONE of them really works. As always, I ended up coming the solution on my own. Here is how I did it:

rsync -avr '[email protected]:/directory\ abc/' /directory\ abc/

That’s it. Enjoy!

Our sponsors:

Leave a Reply

Your email address will not be published. Required fields are marked *