Unlock repo every time

This commit is contained in:
RealStickman 2021-05-29 17:19:42 +02:00
parent d69d829263
commit f4bd8572ae
2 changed files with 2 additions and 2 deletions

View File

@ -2,6 +2,6 @@
Description=Restic home backup
[Service]
Type=oneshot
ExecStart=restic backup --verbose --tag systemd-home.timer $BACKUP_EXCLUDES $BACKUP_PATHS --limit-upload=2048
ExecStart=restic -r $RESTIC_REPOSITORY unlock; restic backup --verbose --tag systemd-home.timer $BACKUP_EXCLUDES $BACKUP_PATHS --limit-upload=2048
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
EnvironmentFile=%h/.restic/restic-backup-home.conf

View File

@ -3,6 +3,6 @@ Description=Restic storage backup
After=restic-backup-home.service
[Service]
Type=oneshot
ExecStart=restic backup --verbose --tag systemd-storage.timer $BACKUP_EXCLUDES $BACKUP_PATHS --limit-upload=2048
ExecStart=restic -r $RESTIC_REPOSITORY unlock; restic backup --verbose --tag systemd-storage.timer $BACKUP_EXCLUDES $BACKUP_PATHS --limit-upload=2048
ExecStartPost=restic forget --verbose --tag systemd-storage.timer --group-by "paths,tags" --keep-daily $RETENTION_DAYS --keep-weekly $RETENTION_WEEKS --keep-monthly $RETENTION_MONTHS --keep-yearly $RETENTION_YEARS
EnvironmentFile=%h/.restic/restic-backup-storage.conf