]> git.somenet.org - root/pub/somesible.git/blob - roles/base/backup/files/default/backup.service
[roles/base/tor] install tor with hidden sshd service, possibly copy private key
[root/pub/somesible.git] / roles / base / backup / files / default / backup.service
1 #
2 ################################################
3 ### Managed by someone's ansible provisioner ###
4 ################################################
5 # Part of: https://git.somenet.org/root/pub/somesible.git
6 # 2017-2024 by someone <someone@somenet.org>
7 #
8
9 [Unit]
10 Description=Run backup
11 ConditionPathIsDirectory=/bkp/local
12 OnFailure=unit-status-mail@%n.service
13
14 [Service]
15 Type=oneshot
16 UMask=0077
17 Nice=5
18 IOSchedulingClass=best-effort
19 IOSchedulingPriority=6
20 ExecStart=/bin/bash -c 'set -o pipefail; /bkp/local/backup.sh 2>&1 | tee /tmp/backup.service.log.all | egrep -v "^[^x] /" | tee /bkp/local/backup.service.log'
21 WorkingDirectory=/bkp/local