From dd05a4ded7d02d3d5598e3f1eb79a53e5c41ff5b Mon Sep 17 00:00:00 2001 From: Alex Kelly Date: Sat, 21 Jan 2023 09:45:58 -0500 Subject: [PATCH] fix: correct backup running at every reboot --- etc/systemd/system/restic-backup.service | 3 --- etc/systemd/system/restic-backup.timer | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/etc/systemd/system/restic-backup.service b/etc/systemd/system/restic-backup.service index 63b4c61..2c8b20d 100644 --- a/etc/systemd/system/restic-backup.service +++ b/etc/systemd/system/restic-backup.service @@ -6,6 +6,3 @@ Wants=restic_backup.timer Type=oneshot ExecStart=/etc/restic/backup.sh SyslogIdentifier=restic_backup - -[Install] -WantedBy=multi-user.target diff --git a/etc/systemd/system/restic-backup.timer b/etc/systemd/system/restic-backup.timer index f135371..67f2d83 100644 --- a/etc/systemd/system/restic-backup.timer +++ b/etc/systemd/system/restic-backup.timer @@ -5,6 +5,7 @@ Requires=restic-backup.service [Timer] Unit=restic-backup.service OnCalendar=*-*-* 22:40:00 +Persistent=yes [Install] WantedBy=timers.target