Revert "remove shell"

This reverts commit 65914f8895.
This commit is contained in:
root
2023-09-24 18:58:33 +03:00
parent 65914f8895
commit c793b55750
26 changed files with 132 additions and 132 deletions

View File

@ -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
```