Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| services:backrest [2024/03/22 14:02] – created willy | services:backrest [2024/08/06 13:14] (current) – willy | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| Backrest comes to help and provides a nice web GUI to do all that, plus can be used instead of cron to performo periodical backups. | Backrest comes to help and provides a nice web GUI to do all that, plus can be used instead of cron to performo periodical backups. | ||
| - | Unfortunately | + | Backrest |
| - | * Don' | + | |
| - | * Cannot work with proxy authentication. On this, it's so broken that you **must** | + | |
| - | Both issues are annoying, but not blocking. | + | Overall the UI is nice and efficient, and Backrest can be a good addition to your management web tools. |
| ===== Installation ===== | ===== Installation ===== | ||
| Line 35: | Line 33: | ||
| It's really simple to run Backrest behing NGINX: | It's really simple to run Backrest behing NGINX: | ||
| <file - backrest.conf> | <file - backrest.conf> | ||
| - | location / { | + | location |
| proxy_pass http:// | proxy_pass http:// | ||
| - | | + | |
| + | proxy_set_header Upgrade $http_upgrade; | ||
| + | proxy_set_header Host $host; | ||
| + | proxy_set_header Authorization "" | ||
| } | } | ||
| </ | </ | ||
| - | currently PAM auth cannot be used and Backest doesn' | ||
| ===== Startup and running ===== | ===== Startup and running ===== | ||
| - | Create the usual **/opt/backrest/ | + | Since i prefer OpenRC, let's create |
| - | <fine - backrest.sh> | + | <file - / |
| - | #!/bin/bash | + | #!/sbin/openrc-run |
| - | / | + | # Copyright 1999-2021 Gentoo Authors |
| - | </ | + | # Distributed under the terms of the GNU General Public License v2 |
| - | and autostart script **/etc/loca.d/21-backrest.start**: | + | description=" |
| - | <file - 21-backrest.start> | + | pidfile=" |
| - | #!/bin/bash | + | command_background=true |
| - | start-stop-daemon | + | command=" |
| + | command_args=" | ||
| + | |||
| + | depend() { | ||
| + | need net | ||
| + | } | ||
| </ | </ | ||
| - | make both executable | + | Now just make it executable |
| + | <code bash> | ||
| + | chmod +x / | ||
| + | rc-update add backrest default | ||
| + | </ | ||
| + | |||
| + | That's it! | ||
| + | |||
| + | (you need backrest to run as root to ensure all files can be backupped) | ||
| + | |||
| + | ===== Upgrades ===== | ||
| + | |||
| + | Just download latest release binary and unzip replacing the older one. | ||
| + | |||
| + | Be advised when upgrading from pre 1.0 to above 1.0 releases, that you **must** run 1,0 once and set the instance_id. | ||