phase1: prune unused files from dl/
authorThibaut VARÈNE <hacks@slashdirt.org>
Wed, 26 Oct 2022 19:35:18 +0000 (21:35 +0200)
committerPetr Štetiar <ynezz@true.cz>
Mon, 15 May 2023 15:36:01 +0000 (17:36 +0200)
Remove files that haven't been accessed in >15 days from dl/

Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
phase1/master.cfg

index 4bd2f0db295ad7a19cfc0c45beba5e5cb8d830b6..46a9f703c2eaeafcb72536c58bc3a7a4d17a2548 100644 (file)
@@ -780,6 +780,15 @@ for target in targets:
                want_stdout = False,
        ))
 
+       # cleanup dl
+       factory.addStep(ShellCommand(
+               name = "dlprune",
+               description = "Pruning dl/",
+               descriptionDone = "dl/ pruned",
+               command = 'find dl/ -atime +15 -delete -print',
+               logEnviron = False,
+       ))
+
        # prepare tar
        factory.addStep(ShellCommand(
                name = "dltar",