S551LN-backup-configuration/borgbackup.service

13 lines
378 B
Desktop File

[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-within=2d --keep-daily=7 --keep-weekly=4 --keep-monthly=10 --keep-yearly=3 --stats ::
[Install]
WantedBy=multi-user.target