mirror of
https://github.com/fruworg/fruworg.github.io.git
synced 2025-06-26 04:53:59 +03:00
@ -7,25 +7,25 @@ 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-ip\>/bareos-webui/](http://localhost/bareos-webui/)
|
||||
```
|
||||
```shell
|
||||
bconsole
|
||||
configure add console name=<web-user> password=<web-pass> profile=webui-admin tlsenable=no
|
||||
configure add client name=<client-name> address=<client-ip> password=<client-pass>
|
||||
@ -34,7 +34,7 @@ exit
|
||||
```
|
||||
|
||||
### Бэкап определённой папки
|
||||
```
|
||||
```shell
|
||||
FileSet {
|
||||
Name = "<name>"
|
||||
Description = "<description>"
|
||||
@ -52,19 +52,19 @@ FileSet {
|
||||
## Конфигурация клиента
|
||||
|
||||
### Установка 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 <user>@<server-ip>:/etc/bareos/bareos-dir-export/client\
|
||||
/<client-name>/bareos-fd.d/director/bareos-dir.conf/etc/bareos/bareos-fd.d/director/
|
||||
```
|
||||
|
||||
### Включение сервиса
|
||||
```
|
||||
```shell
|
||||
systemctl enable --now bareos-filedaemon
|
||||
```
|
||||
|
Reference in New Issue
Block a user