EdgeSwitch & EdgeSwitch X - Backup and Restore the Configuration
Overview
Readers will leader how to backup and restore the configuration file of an EdgeSwitch (ES) or EdgeSwitch X (ES-X).
Table of Contents
- EdgeSwitch Configuration Files
- Backup and Restore using the Web UI
- Backup and Restore using UNMS
- Backup and Restore using the Command Line
- Related Articles
EdgeSwitch Configuration Files
The EdgeSwitch platform uses the following configuration files:
-
Running Config
The configuration that is currently active on the device. -
Startup/Boot Config
The configuration that is loaded when the EdgeSwitch boots up. -
Backup Config
Generated by using the backup functionality and can be used to restore the switch.
Backup and Restore using the Web UI
Using the Web UI to download and upload the configuration archive from the EdgeSwitch to a local computer.
1. Navigate to the Settings to download the backup archive.
Settings > System actions > Backup
2. Download the archive file by clicking on the Backup button.
3. The EdgeSwitch will prompt you to save the configuration archive to your computer.
If you wish to restore the device using the configuration archive, follow the steps below:
1. Navigate to the Settings to upload the previously downloaded configuration archive.
Settings > System actions > Restore
2. Upload the archive file by clicking on the Restore button.
3. The EdgeSwitch will prompt you to upload the configuration archive from your computer.
4. Reboot the device after the configuration has been successfully uploaded to the switch using the Reboot button.
Backup and Restore using UNMS
1. Navigate to the Devices and select the EdgeSwitch.
2. Navigate to the Backups section.
3. Manually create a new backup using the button.
If you wish to restore the device using UNMS, follow the steps below:
1. Navigate to the Devices and select the EdgeSwitch.
2. Navigate to the Backups section.
3. Click on the Restore button in the Actions menu for one of the manually or automatically created backup files.
4. The EdgeSwitch will automatically apply the backup configuration and does not need to be restarted.
Backup and Restore using the Command Line
It is also possible to backup and restore the configuration using the CLI and a TFTP server for example. Follow the steps below to backup the startup configuration file:
1. Enter privileged mode.
enable
2. Make sure that the running config is saved to the startup config.
write memory
3. Verify the contents of the startup configuration.
show startup-config
4. Transfer the startup configuration from the EdgeSwitch using either HTTP(S), TFTP or FTP.
copy nvram:startup-config tftp://192.168.1.10/backup-cfg
Mode........................................... TFTP
Set Server IP.................................. 192.168.1.10
Path........................................... ./
Filename....................................... backup-cfg
Data Type...................................... Text Configuration
Management access will be blocked for the duration of the transfer
Are you sure you want to start? (y/n) y
File transfer in progress. Management access will be blocked for the duration of the transfer. please wait...
File transfer operation completed successfully.
5. Verify the contents of the startup configuration by opening the backup-cfg
file using a text editor.
!Current Configuration:
!
hostname "EdgeSwitch"
vlan database
!
<...output shortened...>
If you wish to restore the device using the startup configuration file, follow the steps below:
1. Enter privileged mode.
enable
2. Transfer the startup configuration to the EdgeSwitch using either HTTP(S), TFTP or FTP.
copy tftp://192.168.1.10/backup-cfg nvram:startup-config
Mode........................................... TFTP
Set Server IP.................................. 192.168.1.10
Path........................................... ./
Filename....................................... backup-cfg
Data Type...................................... Text Configuration
Download configuration file. Configuration will be applied upon next reboot.
Management access will be blocked for the duration of the transfer
Are you sure you want to start? (y/n) y
File transfer in progress. Management access will be blocked for the duration of the transfer. please wait...
File transfer operation completed successfully.
3. Verify the contents of the startup configuration.
show startup-config
4. Reboot the device to load the new startup configuration.
reload
Related Articles
EdgeSwitch - How to Connect to Serial Console
EdgeRouter - Backup and Restore the Configuration
Intro to Networking - How to Establish a Connection Using SSH
EdgeSwitch & EdgeSwitch X - How to Sanitize the Configuration