cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
6726
Views
0
Helpful
3
Replies

Copy a file to the bootflash

DennisRoth
Level 1
Level 1

Is there a way to copy a file into bootflash that already exists without asking to overwrite it?

 

HOSTNAME# copy ftp://anonymous:anonymous@IP/FILENAME.TXT bootflash:FILENAME.TXT vrf VRFNAME
Warning: There is already a file existing with this name. Do you want to overwrite (y/n)?[n]

I would like to use some kind of /force flag or something like that.

1 Accepted Solution

Accepted Solutions

Joseph W. Doherty
Hall of Fame
Hall of Fame
Hmm, don't know if Cisco IOS, even later variant, offer such an option. If not, perhaps you can first try deleting a file of that name?

View solution in original post

3 Replies 3

Joseph W. Doherty
Hall of Fame
Hall of Fame
Hmm, don't know if Cisco IOS, even later variant, offer such an option. If not, perhaps you can first try deleting a file of that name?

That's what we are planning to do if there is no "force" option.

Hi there,

 

As Joseph said in the previous comments, the most practical way is to delete/erase the existing file prior copying the new one.