Revert "moved prune to backup"

This reverts commit b1926f1536.
This commit is contained in:
2020-11-25 16:33:45 +01:00
parent 855da9436b
commit 7420af2f1b
6 changed files with 35 additions and 11 deletions

View File

@@ -1,5 +1,5 @@
[Unit]
Description=restic backup
Description=borg backup
Before=restic-prune.service
[Service]

View File

@@ -0,0 +1,10 @@
[Unit]
Description=prune borg snapshots
After=restic-backup.service
[Service]
Type=oneshot
ExecStart=%h/.bin/restic_prune
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,10 @@
[Unit]
Description=prune restic snapshots
[Timer]
Persistent=true
OnCalendar=daily
Unit=restic-prune.service
[Install]
WantedBy=timers.target