Service for /mnt/storage
This commit is contained in:
parent
3305ec4e56
commit
5c71c057de
@ -0,0 +1,7 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Restic storage backup
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=restic backup --verbose --tag systemd-storage.timer $BACKUP_EXCLUDES $BACKUP_PATHS
|
||||||
|
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
|
Loading…
Reference in New Issue
Block a user