Initial commit

This commit is contained in:
nd 2021-03-12 03:35:14 +01:00
commit 420be44f56
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9
11 changed files with 432 additions and 0 deletions

15
templates/backup-cronjob.j2 Executable file
View file

@ -0,0 +1,15 @@
#!/bin/bash
set -euo pipefail
(
set -euo pipefail
flock -x -w 10 200 || exit 1
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
echo started backup cronjob
ionice -c 3 -p$$
nice -n 19 backup-full
echo finished backup cronjob
) 200>/var/lock/backup-cronjob.lock | logger -t "backup-cronjob"