Wireless Access

Reply
djr
Occasional Contributor II

SCP path specification format

Hi I am trying to SCP flash backups off my controllers to an SCP server (Cygwin).  I have done similar in the past and have it working from other unix based devices.  The issue is that the destination path contains spaces. 

 

The path is more complicated but for the sake of this, I just want to copy the file to:

C:\Controller Backups\Dated Configs\flashbackup.tar.gz

 

That would normally result in a scp target of:

"/cygdrive/c/Controller\ Backups/Dated\ Configs/flashbackup.tar.gz"

 

But I get an error during the copy:

Error copying file:
Data/flashbackup.tar.gz: No such file or directory

 

Can anyone help with the correct format to escape the spaces?


David Rickard
Highlighted

Re: SCP path specification format

I do not believe this is possible since the controllers do not support specifying a destination folder when using SCP. It will simply copy it to the root folder of the username in question. 

 

copy flash: flashbackup.tar.gz scp: <scphost> <username> <destfilename>

You can specify a destination folder when using FTP however.

 

 

(Aruba620) # copy flash: flashbackup.tar.gz ftp: 1.1.1.1 username ?
<remote-dir> Enter the remote directory if needed
<cr>

(Aruba620) # copy flash: flashbackup.tar.gz ftp: 1.1.1.1 username /path/path ?
<destfilename> Enter the destination file name
<cr>

(Aruba620) # copy flash: flashbackup.tar.gz ftp: 1.1.1.1 username /path/path filename

 


ACMP, ACSA, ACDX #985
If my post addresses your query, give kudos:)
djr
Occasional Contributor II

Re: SCP path specification format

OK I will see if I have FTP, or may create a user with the right home directory.

 

Thanks


David Rickard
Search Airheads
cancel
Showing results for 
Search instead for 
Did you mean: