python-netbox-config-backup
Port variant v13
Summary NetBox Switch Configuration Backup Plugin (3.13)
Package version 2.1.2
Homepage https://github.com/dansheps/netbox-config-backup
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants v12
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 14 JAN 2025, 19:34:39 UTC
Port created 08 JAN 2023, 04:18:24 UTC
Subpackage Descriptions
single # Netbox Configuration Backup A configuration backup system using netbox and napalm to backup devices into a git repository # Features * Connects to any device that supports napalm and provides both a running configuration and startup configuration * Stores backups in a git repository * Runs as a scheduled task through Django RQ * Only displays backups with changes * Provides both configuration download and diffs for point-in-time backups # Future * Allow github repositories * Add job "discovery" based on specific criteria (napalm enabled, device role switch, has primary ip as an example) * Add RQ job to ensure all backups are queued * Allow manual queueing of job * Add API endpoint to trigger backup * Add signal(s) to trigger backup # Installation 1. Install from PyPI (`pip install netbox-config-backup`) 2. Edit netbox configuration: ```pyython PLUGINS = [ 'netbox_config_backup', # Other plugins here ] PLUGINS_CONFIG = { 'netbox_config_backup': { # Parent folder must exist and be writable by your RQ worker and readable by the WSGI process 'repository': '/path/to/git/repository', 'committer': 'User ', 'author': 'User ', # Freqency of backups in seconds, can be anywhere 0+ (Recommended is 1800 (30 minutes) or 3600 (1 hr) 'frequency': 3600 } } ``` 3. Migrate: `python3 netbox/manage.py migrate` 4. Create your first device backup ### Cleanup Old Version If you are coming from an older version, please remove the custom RQ worker as it is no longer required ## Logging To enable logging, add the following to your configuration.py under LOGGING: ```python 'netbox_config_backup': { 'handlers': ['enter_your_handlers_here'], 'level': 'desired_log_level', 'propagate': True, }, ```
Configuration Switches (platform-specific settings discarded)
PY312 OFF Build using Python 3.12 PY313 ON Build using Python 3.13
Package Dependencies by Type
Build (only) python313:dev:std
python-pip:single:v13
autoselect-python:single:std
Build and Runtime python313:primary:std
Runtime (only) python-netbox-napalm-plugin:single:v13
python-netmiko:single:v13
python-napalm:single:v13
python-uuid:single:v13
python-dulwich:single:v13
python-PyDriller:single:v13
python-deepdiff:single:v13
Download groups
main mirror://PYPIWHL/d9/bf/494b071f2e848dc294593a9b77c384910dad192095886196e5bea6fd5d8f
Distribution File Information
8bd169631a1abea8c3d7883df8b83be6a5eb30a5fb3d1ff37c3b6e0a6aa24157 57980 python-src/netbox_config_backup-2.1.2-py3-none-any.whl
Ports that require python-netbox-config-backup:v13
No other ports depend on this one.