https://github.com/andybowskill/networkbackup
A command line tool to backup your network devices into a backup text file.
https://github.com/andybowskill/networkbackup
go golang network-automation network-programming
Last synced: 9 months ago
JSON representation
A command line tool to backup your network devices into a backup text file.
- Host: GitHub
- URL: https://github.com/andybowskill/networkbackup
- Owner: AndyBowskill
- License: mit
- Created: 2022-10-24T10:45:03.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-21T13:43:40.000Z (over 3 years ago)
- Last Synced: 2025-01-12T07:13:35.412Z (over 1 year ago)
- Topics: go, golang, network-automation, network-programming
- Language: Go
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Network Backup
[](https://github.com/andybowskill/networkbackup/actions/workflows/go.yml)
[](https://goreportcard.com/report/github.com/andybowskill/networkbackup)
A command line tool to backup your network devices into a backup text file.
### Install
```
$ go install github.com/AndyBowskill/networkbackup@latest
```
### Example
An example ```networkbackup.yaml``` file in your home directory:
```
networkdevices:
- type: cisco
username: johnsmith
password: password123
ipv4: '192.168.0.2:22'
- type: cisco
username: admin
password: pass456
ipv4: '192.168.0.1:22'
```
At the moment:
1. Your networkbackup.yaml file should be in your home directory.
1. For example, on a macOS is ```Root``` > ```Users``` > ```johnsmith``` directory.
1. The backup file will be in your networkbackup directory after the tool has been run.
1. For example, on a macOS is ```Root``` > ```Users``` > ```johnsmith``` > ```networkbackup``` > ```cisco-2022-November-7-15-55```. The tool checks if the ```networkbackup``` directory is there. If not, the tool creates the directory automatically and place the backup file(s) inside.
1. The tool only deals with Cisco devices. Other vendors are not implemented yet. If you are interested in this tool, please contribute!