Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
services:backrest [2024/08/06 12:52] – 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 |
- | </code> | + | |
+ | description=" | ||
+ | pidfile="/ | ||
+ | command_background=true | ||
+ | command="/ | ||
+ | command_args=" | ||
- | And the associated service support file **/ | + | depend() { |
- | <file - service_backrest_start> | + | need net |
- | COMMAND="/ | + | } |
- | ARGUMENTS=(-bind-address 127.0.0.1: | + | |
</ | </ | ||
- | 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 ===== | ===== Upgrades ===== |