net-backup/app/config/config-template.ini

41 lines
1.5 KiB
INI
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Конфиг для отправки оповещений через телеграм
[tg]
# False \ True - включение\отключение отправки оповещения в телеграм
send: False
# Конфиг гит репозитория
[git]
# False \ True - включение\отключение отправки файлов в удалённый репозиторий
push: True
# Пользователь в локальном гите
user: net-bcp
mail: net-bcp@example.com
# Настройки для удалённого репозитория
# Пока только https
protocol: https
# url
remote: gitlab.example.com.ru/secure/backup-network-device.git
# ветка
branch: main
[bcp]
# Файл со списком устройств. Должен лежать в папке config
file = dev_list.txt
# Регулярное выражение по которому будет парситься список устройств
pattern = (?P<name>\S+) (?P<ip>\d+\.\d+\.\d+\.\d+) (?P<vendor>\S+) (?P<model>\S+)
# Во сколько будет делаться бэкап
start_at = 18:59
[net_dev]
# Порт на который подключаться по ssh
ssh_port = 22
[log]
# Уровень логов в консоль
console_lvl: 20
# Уровень логов в файл
file_lvl: 30
# Формат даты в логе
date_format: %Y-%m-%d %H:%M:%S
# Формат лога
format= [%(asctime)s.%(msecs)03d] %(module)-25s:%(lineno)4d | %(funcName)-20s| %(levelname)-8s | %(message)s