S551LN-backup-configuration/backup.service

16 lines
597 B
SYSTEMD
Raw Normal View History

2018-10-15 15:45:43 +00:00
[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} /
2019-01-06 14:07:19 +00:00
ExecStartPost=/usr/local/bin/borg prune -v --list --keep-daily=7 --keep-weekly=4 --keep-monthly=10 --keep-within 2d --stats ::
2018-10-15 15:45:43 +00:00
[Install]
WantedBy=multi-user.target