Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| services:backrest [2024/04/02 14:23] – willy | services:backrest [2024/08/06 13:14] (current) – willy | ||
|---|---|---|---|
| Line 45: | Line 45: | ||
| ===== Startup and running ===== | ===== Startup and running ===== | ||
| - | Check my [[gentoo: | + | Since i prefer OpenRC, let's create backrest init script: |
| - | <code bash> | + | <file - /etc/init.d/ |
| - | cd /etc/local.d | + | # |
| - | ln -s _servicer.sh 10-backrest-root-service.start | + | # Copyright 1999-2021 Gentoo Authors |
| - | ln -s _servicer.sh 10-backrest-root-service.stop | + | # Distributed under the terms of the GNU General Public License v2 |
| - | </ | + | |
| - | And the associated service support file **/opt/backrest/ | + | description=" |
| - | <file - service_backrest_start> | + | pidfile=" |
| - | COMMAND="/ | + | command_background=true |
| - | ARGUMENTS=(-bind-address 127.0.0.1: | + | command="/ |
| + | command_args="-bind-address 127.0.0.1: | ||
| + | |||
| + | depend() { | ||
| + | need net | ||
| + | } | ||
| </ | </ | ||
| - | And symlink | + | Now just make it executable and assign |
| <code bash> | <code bash> | ||
| - | ln -s /opt/backrest/ | + | chmod +x /etc/init.d/backrest |
| + | rc-update add backrest default | ||
| </ | </ | ||
| - | since it will be looked for in there. | + | |
| + | That' | ||
| (you need backrest to run as root to ensure all files can be backupped) | (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. | ||