borg-backup.service.j2 453 Bytes
Newer Older
1
2
[Unit]
Description=Borg backup
3
4
5
6
7

{% if inventory_hostname == "gitlab.archlinux.org" %}
# The ordering relation defined below is important for the GitLab backups
# because the offsite backup reuses the tarballs from this service's run.
{% endif %}
8
Wants=borg-backup-offsite.service
9
10
11
12
13
14
Before=borg-backup-offsite.service

[Service]
Type=oneshot
Restart=on-failure
RestartSec=5m
15
{% include 'borg-backup-cpu-quota.j2' %}
16
ExecStart=/usr/local/bin/borg-backup.sh