rose_prune
§
A framework for housekeeping a cycling suite.
It prunes files and directories generated by suite tasks. It is designed to work under rose task-run on the host that runs the suite daemon.
The application is normally configured in the rose_prune[prune]
section in the rose-app.conf
file.
All settings are expressed as a space delimited list of cycles,
normally as cycle points or
offsets relative to the current cycle.
For datetime cycling, the format
of a cycle point should be an ISO8601 datetime, and an
offset should be an ISO8601 duration. E.g. -P1DT6H
is 1 day
and 6 hours before the current cycle point.
The cycles of some settings also accept an optional argument followed by a colon. In these, the argument should be globs for matching items in the directory. If two or more globs are required, they should be separated by a space. In which case, either the argument should be quoted or the space should be escaped by a backslash.
Note
rose_prune
uses Bash extglob pattern matching which supports simple
(e.g. *
) and extended (e.g. !(foo)
) pattern matching.
For more information see the shopt
documentation for the version
of bash you have installed ($ man shopt
).