configs/arch-config/.config/systemd/user/restic-backup-storage.service

9 lines
515 B
SYSTEMD
Raw Normal View History

2021-02-22 21:37:37 +01:00
[Unit]
Description=Restic storage backup
After=restic-backup-home.service
2021-02-22 21:37:37 +01:00
[Service]
Type=oneshot
2021-05-29 17:19:42 +02:00
ExecStart=restic -r $RESTIC_REPOSITORY unlock; restic backup --verbose --tag systemd-storage.timer $BACKUP_EXCLUDES $BACKUP_PATHS --limit-upload=2048
2021-02-22 21:37:37 +01:00
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