add: read args & parse config

This commit is contained in:
2025-06-05 23:53:17 +03:00
parent 327e0a55e9
commit 4a81ed04a0
4 changed files with 173 additions and 0 deletions

31
config/sample.yaml Normal file
View File

@@ -0,0 +1,31 @@
# Пример конфигурационного файла для PGanec
servers:
- name: "PostgreSQL в k3s"
host: "postrges.local"
port: 5432
user: "postgres"
password: "****" # Здесь должен быть ваш пароль
- name: "PostgreSQL в Synology DS1522+ (Docker)"
host: "ds1522.local"
port: 5432
user: "postgres"
password: "****" # Здесь должен быть ваш пароль
- name: "Резервный сервер PostgreSQL"
host: "192.168.1.200"
port: 5432
user: "postgres"
password: "****" # Здесь должен быть ваш пароль
targets:
- mountpoint: "/mnt/backups"
label: "nas01"
type: "nfs"
- mountpoint: "/mnt/usb"
label: "usb-disk"
type: "ext4"