--- title: Установка Bareos на Astra Linux SE description: Инструкция по установке из репозитория Bareos date: 2023-01-27T16:08:00+05:00 tags: [linux, postgres, bareos, apache] --- ## Конфигурация Сервера ### Установка Bareos и PostgreSQL ```shell curl -s https://download.bareos.org/current/Debian_10/add_bareos_repositories.sh | bash apt update apt install postgresql bareos bareos-webui ``` ### Конфигурация БД ```shell dpkg-reconfigure bareos-database-common ``` ### Включение сервисов Bareos, PostgreSQL и Apache ```shell systemctl enable --now postgresql bareos-director bareos-filedaemon bareos-storage apache2 ``` ### Создание пользователя для Bareos-webui и конфига клиента Веб Bareos'а находится по адресу: `http:///bareos-webui/` ```shell bconsole configure add console name= password= profile=webui-admin tlsenable=no configure add client name= address= password= reload exit ``` ### Бэкап определённой папки В файл `/etc/bareos/bareos-dir.d/fileset/.conf` необходимо добавить настройку бэкапа определённой папки: ```sh FileSet { Name = "" Description = "" Include { Options { Signature = MD5 # calculate md5 checksum per file } File = "" } } ``` ## Конфигурация клиента ### Установка Bareos Filedaemon ```shell curl -s https://download.bareos.org/current/Debian_10/add_bareos_repositories.sh | bash apt update apt install bareos-filedaemon ``` ### Перенос конфига с сервера на клиент ```shell scp @:/etc/bareos/bareos-dir-export/client //bareos-fd.d/director/bareos-dir.conf/etc/bareos/bareos-fd.d/director/ ``` ### Включение сервиса ```shell systemctl enable --now bareos-filedaemon ```