Rename service files to borgbackup.{service,timer}

This commit is contained in:
2019-11-13 23:52:31 +01:00
parent 10b7d99e87
commit 8acc3ec2f3
3 changed files with 2 additions and 0 deletions

15
borgbackup.service Normal file
View File

@ -0,0 +1,15 @@
[Unit]
Description=Borg backup
[Service]
Type=oneshot
Environment=BORG_REPO=/mnt/data/thibaud/backups/S551LN/S551LN.borg/
Environment=BORG_HOSTNAME_IS_UNIQUE=yes
Environment=BORG_PASSPHRASE=***REMOVED***
Environment=BORG_KEY_FILE=/home/thibaud/.config/borg/keys/S551LN_borg.2
Nice=19
ExecStart=/usr/local/bin/borg create --list --stats --filter AME --exclude-from=/mnt/data/thibaud/backups/S551LN/exclude-list-S551LN.txt ::{now} /
ExecStartPost=/usr/local/bin/borg prune -v --list --keep-daily=7 --keep-weekly=4 --keep-monthly=10 --keep-within 2d --stats ::
[Install]
WantedBy=multi-user.target