Update README
This commit is contained in:
13
README.md
13
README.md
@ -26,7 +26,7 @@ make build
|
|||||||
|
|
||||||
1. **Create configuration files**:
|
1. **Create configuration files**:
|
||||||
|
|
||||||
**Device types** (`etc/00-device-types.yaml`):
|
**Device types** (`00-device-types.yaml`):
|
||||||
```yaml
|
```yaml
|
||||||
types:
|
types:
|
||||||
srlinux:
|
srlinux:
|
||||||
@ -37,10 +37,11 @@ make build
|
|||||||
centec:
|
centec:
|
||||||
commands:
|
commands:
|
||||||
- show version
|
- show version
|
||||||
|
- show transciever
|
||||||
- show running-config
|
- show running-config
|
||||||
```
|
```
|
||||||
|
|
||||||
**Device config** (`etc/config.yaml`):
|
**Device config** (`config.yaml`):
|
||||||
```yaml
|
```yaml
|
||||||
devices:
|
devices:
|
||||||
asw100:
|
asw100:
|
||||||
@ -55,13 +56,11 @@ make build
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Backup all devices (multiple YAML files are automatically merged)
|
# Backup all devices (multiple YAML files are automatically merged)
|
||||||
ipng-router-backup --yaml etc/00-device-types.yaml --yaml etc/config.yaml --output-dir /backup
|
ipng-router-backup --yaml 00-device-types.yaml --yaml config.yaml --output-dir /backup
|
||||||
|
|
||||||
# Or use wildcards
|
|
||||||
ipng-router-backup --yaml etc/*.yaml --output-dir /backup
|
|
||||||
|
|
||||||
# Backup specific devices
|
# Backup specific devices
|
||||||
ipng-router-backup --yaml etc/*.yaml --host asw100 --output-dir /backup
|
ipng-router-backup --yaml 00-device-types.yaml --yaml config.yaml --output-dir /backup \
|
||||||
|
--host asw100
|
||||||
```
|
```
|
||||||
|
|
||||||
3. **Check output**:
|
3. **Check output**:
|
||||||
|
Reference in New Issue
Block a user