2021-02-21 21:13:00 +01:00
|
|
|
[Unit]
|
|
|
|
Description=Restic home backup
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
2021-02-22 21:37:12 +01:00
|
|
|
ExecStart=restic backup --verbose --tag systemd-home.timer $BACKUP_EXCLUDES $BACKUP_PATHS
|
|
|
|
ExecStartPost=restic forget --verbose --tag systemd-home.timer --group-by "paths,tags" --keep-daily $RETENTION_DAYS --keep-weekly $RETENTION_WEEKS --keep-monthly $RETENTION_MONTHS --keep-yearly $RETENTION_YEARS
|
2021-02-21 21:13:00 +01:00
|
|
|
EnvironmentFile=%h/.restic/restic-backup-home.conf
|