Skip to content

Latest commit

 

History

History
63 lines (44 loc) · 3.41 KB

README.md

File metadata and controls

63 lines (44 loc) · 3.41 KB

Remote backup tools for Dell Enterprise SONiC

Contributions welcome License GitHub issues

Built and maintained by Gerald PAQUIS and Contributors


This Repo contains a Python script for backup remotly a config file and store it on a scp/ftp server by using REST-API

Contents

🚀 Description and Objective

The script allow to backup config_db.json from Dell Enterprise SONiC.
This script is for purpose test only and explain howto massively backup config file to a remote server.

📋 Requirements

  • Python 3.8.10 version minimum
  • a SCP/FTP server hosting the config file

🏁 Usage and Configuration

The script support only backup to a remote SCP/FTP server, don't support local deployment or import config file.
See Roadmap for more details and next feature.

Runing the script and options:

Options Value Description Mandatory
--method http or https Remote web servers Yes
--switch_ip IPV4 IP address of the DES management interface
--sonic_username type string Login used to access to the DES
--sonic_password type string Password used to access to the DES
--remote_server IPV4 IP address of the remote Server
--remote_login type string Login used to access to the remote server
--remote_password type string Password used to access to the remote server
--remote_path type string Remote directory name

python3 BackupConfig_restapi.py --method scp --switch_ip 192.168.1.100 --sonic_username admin --sonic_password YourPaSsWoRd --remote_server 192.168.1.238 --remote_login dell --remote_password DellDell123 --remote_path /home/dell

it's also possible to use the 'backup_list.conf'[https://github.com/gpaquis/SONiC_BackupConfig_RESTAPI/blob/main/src/backup_list.conf] file to backup multiple DES in one line

Options Value Description Mandatory
--method http or https Remote web servers Yes
--bulk type string config file name

python3 BackupConfig_restapi.py --bulk backup_list.conf --method scp

📅 Roadmap

NONE

👏 How to Contribute

We welcome contributions to the project.