From acf2b0118933cc87c82d599ecff05f991d54c4ce Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Mon, 6 Feb 2023 21:35:53 -0600 Subject: [PATCH] adding nextcloud-backup as systemd service --- system/shen/configuration.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/system/shen/configuration.nix b/system/shen/configuration.nix index 2329ae6..5bd8a09 100644 --- a/system/shen/configuration.nix +++ b/system/shen/configuration.nix @@ -247,6 +247,13 @@ ExecStart = "${pkgs.docker}/bin/docker exec -u www-data -d nextcloud-app-1 php occ preview:pre-generate"; }; }; + nextcloud-backup = { + enable = true; + serviceConfig = { + Type = "oneshot"; + ExecStart = "/home/chris/scripts/nextcloud/backup.sh"; + }; + }; photoprism-index = { enable = true; serviceConfig = { @@ -276,6 +283,15 @@ }; wantedBy = [ "timers.target" ]; }; + nextcloud-backup = { + enable = true; + partOf = ["nextcloud-backup.service"]; + timerConfig = { + OnCalendar = "*-*-* 00:00:30"; + Unit = "nextcloud-backup.service"; + }; + wantedBy = [ "timers.target" ]; + }; photoprism-index = { enable = true; partOf = ["photoprism-index.service"];