cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1505
Views
1
Helpful
6
Replies

SCP Entire Contents of FLASH on Cisco Device

jpanzica747
Level 1
Level 1

I would like to make backups of my cisco devices using SCP from a linux filesystem.  I am running the following command:

scp username@192.168.1.1:flash/ /dir/to/backup

...where 192.168.1.1 is the cisco device's IP. 

 

I get the following response to the command:

scp: flash/: No such file or directory

What is the correct way to reference the entire flash on the cisco device with the SCP command?

6 Replies 6

Hello,

 

typically, flash is followed by a ":", so try:

 

scp username@192.168.1.1:flash: /dir/to/backup

No, that did not work.

Hello,  

 

try a double backslash:


scp username@192.168.1.1:flash:// /dir/to/backup

 

Some routers use flash0, flash1, etc., make sure you are referencing the correct file system

I get the following error:

error: unexpected filename:

Hi Georg,

I tried the double slashes and it is not working.  I would think this is something commonly done to backup flash contents and cannot figure out correct syntax to do it.  Am I going about trying to backup flash contents with SCP and should be using another protocol?

jpanzica747
Level 1
Level 1

Anyone have any idea on how to make a recursive copy of the flash through SCP?  This seems like something that people would commonly do but cannot find any answers or solutions on how to do this.