You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
backup-facility/Pixelfed/pixelfed-backup.service

9 lines
417 B

[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