Simmons Consulting, the Website of Toby Simmons

SCP with spaces in the name


Note to self: When you want to copy files recursively to a destination with spaces in the name using SCP, the syntax is (assuming you want to copy the contents of the current directory to a remote location):

  1. scp -p -r ./* user@destinationserver:"/Path/That/Has/Some\ Spaces\ In\ It/"

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>