Recovering (“undeleting”) a file – Brocade Multi-Service IronWare Switching Configuration Guide (Supporting R05.6.00) User Manual
Page 105
Multi-Service IronWare Switching Configuration Guide
75
53-1003036-02
Verifying available flash space on the management module before an image is copied
3
The directory parameter specifies the directory in a file system that does not have the current
management focus.
The file-name parameter specifies the file that you want to delete.
For example, to delete all files with names that start with “test” from flash memory, if flash memory
has the current management focus, enter a command similar to the following.
Brocade# delete test*.*
For example, to delete all files on the flash card in slot 2, if flash memory has the current
management focus, you can enter one of the following commands.
Brocade# delete /slot2/
or
Brocade# delete slot2
Recovering (“undeleting”) a file
You can recover or undelete a file you have deleted from a flash card file system using the undelete
command.
NOTE
You can not recover or undelete a file from the flash memory file system. Therefore, the undelete
command does not apply to the flash memory file system.
The software will recover the file in the file system that has the current management focus (flash
memory by default). If you want to recover a file in a file system that does not have the current
management focus, you must switch the management focus to the desired file system using the cd
command. For more information about switching the management focus, refer to
.
For example, to undelete a file on the flash card in slot 2, if flash memory has the current
management focus, enter a command such as the following.
Brocade# cd slot2
Brocade# undelete
Undelete file ?RIMARY ? (enter y or n) :y
Input one character: P
File recovered successfully and named to PRIMARY
For each file that can be undeleted from the flash card in slot 2, the CLI displays the remaining
name entry in the file directory and prompts you for the first character of the file name. You can
enter any valid file name character. You do not need to enter the character that was used before in
the deleted file name.
Once you enter a character and the CLI undeletes the file, the CLI continues with the next file that
can be undeleted. For each file, specify “y” or “n”, and specify a first character for the files that you
select to undelete.
NOTE
When you delete a file from a flash card, the CLI leaves the file intact but removes the first letter in
the file name from the file directory. However, if you save file changes or new files that use part of
the space occupied by the deleted file, you cannot undelete the file. The undelete command lists
only the files that can be undeleted.