diff --git a/restic/.config/systemd/user/restic-backup.service b/restic/.config/systemd/user/restic-backup.service index 1df020e..957d695 100644 --- a/restic/.config/systemd/user/restic-backup.service +++ b/restic/.config/systemd/user/restic-backup.service @@ -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 \ No newline at end of file +WantedBy=multi-user.target diff --git a/restic/.config/systemd/user/restic-prune.service b/restic/.config/systemd/user/restic-prune.service index 211a44a..96c08ef 100644 --- a/restic/.config/systemd/user/restic-prune.service +++ b/restic/.config/systemd/user/restic-prune.service @@ -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 \ No newline at end of file +WantedBy=multi-user.target