User Tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
services:backrest [2024/04/02 13:55] willyservices: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 - /etc/init.d/backrest> 
 +#!/sbin/openrc-run 
 +# Copyright 1999-2021 Gentoo Authors 
 +# Distributed under the terms of the GNU General Public License v2 
 + 
 +description="restic WEB GUI interface" 
 +pidfile="/run/backrest.pid" 
 +command_background=true 
 +command="/opt/backrest/backrest" 
 +command_args="-bind-address 127.0.0.1:9898 -restic-cmd /usr/bin/restic -config-file /opt/backrest/config.json -data-dir /opt/backrest/" 
 + 
 +depend() { 
 +        need net 
 +
 +</file> 
 + 
 +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 default
-ln -s _servicer.sh 10-backrest-root-service.stop+
 </code> </code>
  
-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.
  

This website uses technical cookies only. No information is shared with anybody or used in any way but provide the website in your browser.

More information