[Enterprise SONiC] Backup/Restore configure Follow
How to backup and restore the configure
Tested model & firmware version:
- Switch model name:
DCS203 (AS7326-56X)
- Edgecore SONiC version:
202006.4
202012.0 ~ 202012.4
202111.0 ~ 202111.3
Restriction
-
known issue: Wrong alias names in the default configuration with "AS7326-56X".(This issue is fixed in Edgecore-SONiC_20201229_070315_ec202006_101 and above)
admin@sonic:~$ show interfaces status
Interface Lanes Speed MTU FEC Alias Vlan Oper Admin Type Asym PFC
----------- --------------- ------- ----- ----- ------- ------ ------ ------- --------------- ----------
Ethernet0 3 25G 9100 none Eth5/3 routed down up N/A N/A
Ethernet1 2 25G 9100 none Eth5/2 routed down up N/A N/A
Ethernet2 4 25G 9100 none Eth5/4 routed down up N/A N/A
Ethernet3 8 25G 9100 none Eth6/4 routed down up N/A N/A
Ethernet4 7 25G 9100 none Eth6/3 routed down up N/A N/A
...
omitted
...
Relation article
How to backup configure
Method 1: Backup default configuration "config_db.json" .
Note. If you do the backup file after installed, it will help you to backup the factory default configuration file.
Method 2: Backup default configuration "config_db.json".
admin@sonic:~$ sudo config save config_db.json.bk
Existing files will be overwritten, continue? [y/N]: y
Running command: /usr/local/bin/sonic-cfggen -d --print-data > config_db.json.bk
After that, the backup configuration will generate in the home directory.
admin@sonic:~$ ls
config_db.json.bk
Recovery the configure by backup file
Step 1. If we want to reset the setting to backup file, replace current config_db.json by backup configuration file.
Step 2. config reload or power cycle the switch
Comments
0 comments
Please sign in to leave a comment.