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 13:55] – willy | services:backrest [2024/08/06 13:14] (current) – willy | ||
|---|---|---|---|
| Line 45: | Line 45: | ||
| ===== Startup and running ===== | ===== Startup and running ===== | ||
| - | Check my [[gentoo:locald|Custom User Services]] page and do the following symlinks: | + | Since i prefer OpenRC, let's create backrest init script: |
| + | <file - / | ||
| + | # | ||
| + | # Copyright 1999-2021 Gentoo Authors | ||
| + | # Distributed under the terms of the GNU General Public License v2 | ||
| + | |||
| + | description=" | ||
| + | pidfile="/ | ||
| + | command_background=true | ||
| + | command="/ | ||
| + | command_args=" | ||
| + | |||
| + | depend() { | ||
| + | need net | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | Now just make it executable and assign to a runlevel: | ||
| <code bash> | <code bash> | ||
| - | cd /etc/local.d | + | chmod +x /etc/init.d/backrest |
| - | ln -s _servicer.sh 10-backrest-root-service.start | + | rc-update add backrest |
| - | ln -s _servicer.sh 10-backrest-root-service.stop | + | |
| </ | </ | ||
| - | and run the start one. | + | That's it! |
| (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. | ||