Background introduction:
During the daily operation of Community SONiC, we recommend you to backup the current configure before modifying or deleting any configuration.
Here we will introduce the way how to backup the configuration file in Community SONiC.
Configuration file location:
1) Main configuration file: /etc/sonic/config_db.json
2) Routing configuration file: /etc/sonic/frr/bgpd.conf (if you configure BGP or ISIS)
How to backup the configuration file:
1) sudo su
2) cd /etc/sonic
3) ls
4) cp config_db.json config_db.json.bak
If you have BGP or ISIS configuration, it also need to backup the routing configuration.
1) sudo su
2) cd /etc/sonic/frr
3) ls
4) cp bgpd.conf bgpd.conf.bak
How to restore the configuration:
If you need to restore the configuration, it can use the "config reload" to reload the backup configuration.
Comments
0 comments
Please sign in to leave a comment.