7e91564f37cfb557c65a0ab01c846f1649b6c709
IPNG Router Backup
SSH-based network device configuration backup tool with support for multiple device types and flexible authentication methods.
Features
- Multi-device backup: Configure multiple routers in YAML
- Device type templates: Reusable command sets per device type
- Flexible authentication: SSH agent, key files, or password
- Selective execution: Backup specific devices with
--host
flags - Professional CLI: Standard flags, version info, and help
Quick Start
Installation
# Install Debian package
sudo dpkg -i ipng-router-backup_X.Y.Z_amd64.deb
# Or build from source
make build
Basic Usage
- Create configuration file (
config.yaml
):
types:
srlinux:
commands:
- show version
- show platform linecard
- info flat from running
devices:
asw100:
user: admin
type: srlinux
asw120:
user: admin
type: srlinux
- Run backup:
# Backup all devices
ipng-router-backup --config config.yaml --output-dir /backup
# Backup specific devices
ipng-router-backup --config config.yaml --host asw100 --output-dir /backup
- Check output:
ls /backup/
# asw100 asw120
cat /backup/asw100
# ## COMMAND: show version
# Hostname : asw100
# Software Version : v25.3.2
# ...
Authentication
The tool automatically tries authentication methods in this order:
- SSH Agent (if
SSH_AUTH_SOCK
is set) - SSH Key File (
--key-file
or default locations) - Password (
--password
flag)
Documentation
- Detailed Documentation - Complete feature guide, configuration reference, and examples
- Manual Page - Unix manual page
- Changelog - Version history and changes
Description
Languages
Go
95.2%
Makefile
4.8%