Backup switch configs
Project description
This is a django application to backup switch configs
It can download the config from the switch using SFTP or SCP, or it can login to the switch CLI and execute a command to upload the config.
The configs are saved in a git repository
Supported backup methods:
- Telnet and SSH CLI upload:
Cisco
- SCP fetch:
Cisco
- SFTP fetch:
HPE Aruba
Extreme Networks
Some switches need config changes to enable SFTP or SCP:
- HPE Aruba (SFTP):
ip ssh filetransfer
- Cisco (SCP):
ip scp server enable
Gitlist is required to show configs on web:
Quick start
Add “config_backup” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'config_backup', ]
Run python manage.py migrate to create the config_backup models.
Install Gitlist
Create a root folder for the repository folder and add it to Gitlists config
Create the repository folder
Add the repository folder to settings.py with the key BACKUP_PATH
Set BACKUP_URL to the path for CLI backup for Cisco (Optional)
In django admin console add common and/or switch specific username, password and backup type
Run python manage.py config_backup [switch name] to backup the config from a switch
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django_switch_config_backup-1.1.tar.gz
.
File metadata
- Download URL: django_switch_config_backup-1.1.tar.gz
- Upload date:
- Size: 24.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30e42e583f74e886d13e4141b849e234f86919dee141728cd5b5c5414cc04a77 |
|
MD5 | b505f7d516730e52af41ebf335e5c404 |
|
BLAKE2b-256 | 4ab295cbe59e346fa72fb562c95d7f5ef1070ed3ce762f769d5727e19d054dd4 |
File details
Details for the file django_switch_config_backup-1.1-py3-none-any.whl
.
File metadata
- Download URL: django_switch_config_backup-1.1-py3-none-any.whl
- Upload date:
- Size: 31.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c37aa3ab9e6ad1b17b754391c198f96f0d97b609d0dc8df0ffa02d432ffcaa07 |
|
MD5 | ef97dffef8b359e26e26951985b6cf7b |
|
BLAKE2b-256 | 37453fefc0621766b29c992bd942dc82f2da3e92f091738fbd6ff000498bca3e |