add ordering

This commit is contained in:
2020-12-02 11:33:35 +01:00
parent 958439b8b6
commit edb1477b64
2 changed files with 6 additions and 2 deletions

View File

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

View File

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