Add a >24h cleanup cronjob for tus uploads /cc @Acconut @arturi
This commit is contained in:
parent
19a6611a89
commit
785248765d
|
@ -146,9 +146,17 @@ setup {
|
||||||
fqdn = "master.tus.io"
|
fqdn = "master.tus.io"
|
||||||
}
|
}
|
||||||
tasks {
|
tasks {
|
||||||
file = "path=/mnt/tusd-data state=directory owner=www-data group=www-data mode=0755 recurse=yes"
|
file = "path=/mnt/tusd-data state=directory owner=www-data group=ubuntu mode=ug+rwX,o= recurse=yes"
|
||||||
name = "tusd | Create tusd data dir"
|
name = "tusd | Create tusd data dir"
|
||||||
}
|
}
|
||||||
|
tasks {
|
||||||
|
name = "tusd | Create purger crontab (clean up >24h (1400minutes) files)"
|
||||||
|
cron {
|
||||||
|
name = "purger"
|
||||||
|
special_time = "hourly"
|
||||||
|
job = "find /mnt/tusd-data -type f -mmin +1440 -print0 | xargs -n 200 -r -0 rm || true"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue