Thibaud Gasser
39677bbc58
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
13 lines
362 B
Desktop File
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
|