add batch to clen rutorrent forward folder
This commit is contained in:
parent
9f5c738317
commit
2cad7575d1
31
nomad-job/batch-rutorrent.nomad
Normal file
31
nomad-job/batch-rutorrent.nomad
Normal file
@ -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"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user