1
0
Fork 0
mirror of https://github.com/inexcode/backup-facility synced 2024-11-22 06:11:26 +00:00
backup-facility/pixelfed/pixelfed-backup.service
2020-01-17 17:43:50 +03:00

9 lines
417 B
Desktop File

[Unit]
Description=Pixelfed data backup service
[Service]
User=pixelfed
Group=restic
Type=oneshot
ExecStart=/bin/bash /home/pixelfed/backup.sh
ExecStartPost=/usr/bin/restic forget -r /backups/pixelfed/database --group-by "paths,tags" --keep-daily $RETENTION_DAYS --keep-weekly $RETENTION_WEEKS --keep-monthly $RETENTION_MONTHS --keep-yearly $RETENTION_YEARS
EnvironmentFile=/home/pixelfed/.config/pixelfed-backup.conf