S551LN-backup-configuration/borgbackup.service

13 lines
378 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} /
2021-02-18 18:37:04 +00:00
ExecStartPost=/usr/bin/borg prune -v --list --keep-within=2d --keep-daily=7 --keep-weekly=4 --keep-monthly=10 --keep-yearly=3 --stats ::
2018-10-15 15:45:43 +00:00
[Install]
WantedBy=multi-user.target