User`s manual

376
DWS-1008 User’s Manual
D-Link Systems, Inc.
Managing System Files
Backing Up and Restoring the System
MSS has commands that enable you to easily backup and restore system and user les:
backup system [tftp:/ip-addr/]filename [all | critical]
restore system [tftp:/ip-addr/]filename [all | critical] [force]
The backup command creates an archive in Unix tape archive (tar) format.
The restore command unzips an archive created by the backup command and copies the
les from the archive onto the switch. If a le in the archive has a counterpart on the switch,
the archive version of the le replaces the le on the switch. The restore command does not
delete les that do not have counterparts in the archive. For example, the command does
not completely replace the user les area. Instead, les in the archive are added to the user
les area. A le in the user area is replaced only if the archive contains a le with the same
name.
You can create or unzip an archive located on a TFTP server or in the switch’s nonvolatile
storage. If you specify a TFTP server as part of the lename with the backup command, the
archive is copied directly to the TFTP server and not stored locally on the switch.
Both commands have options to specify the types of les you want to back up and restore:
critical - Backs up or restores system les, including the conguration le used when
booting, and certicate les. The size of an archive created by this option is generally
1MB or less. This is the default for the restore command.
all - Backs up or restores the same les as the critical option, and all les in the user
les area of nonvolatile storage. (The user les area contains the set of les listed
in the file section of dir command output.) Archive les created by the all option are
larger than les created by the critical option. The le size depends on the les in the
user area, and the le can be quite large if the user area contains image les. This is
the default for the backup command.
Note: If the archive’s les cannot t on the switch, the restore operation fails. D-Link
recommends deleting unneeded image les before creating or restoring an archive.
Use the critical option if you want to back up or restore only the system-critical les required
to operate and communicate with the switch. Use the all option if you also want to backup
conguration les, image les, and any other les stored in the user les area of nonvolatile
storage.
Neither option archives image les or any other les listed in the Boot section of dir command
output. The all option archives image les only if they are present in the user les area.
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.