S551LN-backup-configuration/borgbackup.service

13 lines
362 B
SYSTEMD
Raw Normal View History

2018-10-15 15:45:43 +00:00
[Unit]
Description=Borg backup
[Service]
Type=oneshot
Environment=BORG_HOSTNAME_IS_UNIQUE=yes
Nice=19
ExecStart=/usr/bin/borg create --list --stats --filter AME --exclude-from=${EXCLUDE_LIST} ::{now} /
ExecStartPost=/usr/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