Usage: If a file in the archive has a counterpart on the switch, the archive version of the file replaces the file on the switch. The restore command does not delete files that do not have counterparts in the archive. For example, the command does not completely replace the user files area. Instead, files in the archive are added to the user files area. A file in the user area is replaced only if the archive contains a file with the same name.

Note: If the archive’s files cannot fit on the switch, the restore operation fails. D-Link recommends deleting unneeded image files before creating or restoring an archive.

The backup command stores the MAC address of the switch in the archive. By default, the restore command works only if the MAC address in the archive matches the MAC address of the switch where the restore command is entered. The force option overrides this restriction and allows you to unpack one switch’s archive onto another switch.

Caution: Do not use the force option unless you are certain you want to replace the switch’s files with files from another switch. If you restore one switch’s system files onto another switch, you must generate new key pairs and certificates on the switch.

If the configuration running on the switch is different from the one in the archive or you renamed the configuration file, and you want to retain changes that were made after the archive was created, see the “Managing System Files” chapter of the D-Link Mobility System Software Configuration Guide.

Examples: The following command restores system-critical files on a switch, from archive sysa_bak:

DWS-1008#restore system tftp:/10.10.20.9/sysa_bak

success: received 11908 bytes in 0.150 seconds [ 79386 bytes/sec]

success: restore complete.

See Also:

• backup

rmdir

Removes a subdirectory from nonvolatile storage.

Syntax: rmdir [subdirname]

subdirname

Subdirectory name. Specify between 1 and 32 alphanumeric

 

characters, with no spaces.

Defaults: None.

 

Access: Enabled.

 

Usage: MSS does not allow the subdirectory to be removed unless it is empty. Delete all files from the subdirectory before attempting to remove it.

D-Link DWS-1008 CLI Manual

299

Page 302
Image 302
D-Link dws-1008 manual Rmdir, DWS-1008#restore system tftp/10.10.20.9/sysabak, Backup, Syntax rmdir subdirname