S551LN-backup-configuration/borgbackup.service
Thibaud Gasser 39677bbc58 Manage variables via systemd override config (#4)
Use systemd override configuration to avoid putting sensitive informations in the service file (and so in the git repository).

- add a makefile to install and uinstall the service
- add some documentation to README.md

See #1
2019-11-13 23:13:08 +00:00

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