adding nextcloud-backup as systemd service
This commit is contained in:
parent
ed788f8b5f
commit
acf2b01189
|
@ -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"];
|
||||
|
|
Loading…
Reference in a new issue