Add parallelism

This commit is contained in:
Pim van Pelt
2025-07-07 01:08:42 +02:00
parent c6775736ac
commit 53c7bca43e
3 changed files with 87 additions and 17 deletions

View File

@ -35,6 +35,9 @@ SSH port number (default: 22)
.BR --host " \fIHOSTNAME\fR"
Specific host(s) or glob patterns to process (can be repeated, processes all if not specified)
.TP
.BR --parallel " \fINUMBER\fR"
Maximum number of devices to process in parallel (default: 10)
.TP
.BR --help
Show help message
.SH CONFIGURATION
@ -98,6 +101,11 @@ Process hosts matching patterns:
.EX
ipng-router-backup --yaml config.yaml --host "asw*" --host "*switch*"
.EE
.TP
Process devices in parallel:
.EX
ipng-router-backup --yaml config.yaml --parallel 20
.EE
.SH FILES
.TP
.I /etc/ipng-router-backup/config.yaml.example