Revert "restic isn't usable for me yet"

This reverts commit 28ad0db799.
This commit is contained in:
2020-11-11 14:17:19 +01:00
parent 412b52726f
commit 5173e5f33b
7 changed files with 108 additions and 0 deletions

View File

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

View File

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

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