a week ago
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?
Solved! Go to Solution.
a week ago - last edited a week ago
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: 22.214.171.124 username ? <remote-dir> Enter the remote directory if needed <cr> (Aruba620) # copy flash: flashbackup.tar.gz ftp: 126.96.36.199 username /path/path ? <destfilename> Enter the destination file name <cr> (Aruba620) # copy flash: flashbackup.tar.gz ftp: 188.8.131.52 username /path/path filename
ACMP, ACSA, ACDX #985
If my post addresses your query, give kudos:)