From 2cad7575d1b337dd36b7276fb1538955e66bed55 Mon Sep 17 00:00:00 2001 From: vincent Date: Sat, 25 Nov 2023 18:57:52 +0100 Subject: [PATCH] add batch to clen rutorrent forward folder --- nomad-job/batch-rutorrent.nomad | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 nomad-job/batch-rutorrent.nomad diff --git a/nomad-job/batch-rutorrent.nomad b/nomad-job/batch-rutorrent.nomad new file mode 100644 index 0000000..7c25696 --- /dev/null +++ b/nomad-job/batch-rutorrent.nomad @@ -0,0 +1,31 @@ +job "batch-rutorrent" { + datacenters = ["hetzner"] + priority=50 + type="batch" + meta { + forcedeploy="0" + } + periodic { + crons = ["0 0 * * *"] + prohibit_overlap = true + } + group "batch-rutorrent" { + task "cleanForwardFolder" { + driver= "docker" + config { + image = "alpine" + volumes = [ + "/mnt/hetzner/storagebox/file/forward:/file" + ] + command = "find" + args = [ + "/file", + "-empty", + "-type", + "d", + "-delete" + ] + } + } + } +}