diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-11-03 23:08:33 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-11-03 23:08:33 +0100 |
commit | dbd2a83fbf051fc51bdca3aa7536c78479488c5b (patch) | |
tree | 6514add1da5ccf64179b8094ed497fb5ee043115 /man | |
parent | a6e841b454e076ecbab6abc0bceb85ed06fd5c70 (diff) | |
download | systemd-dbd2a83fbf051fc51bdca3aa7536c78479488c5b.tar.gz |
journalctl: add new --vacuum-size= and --vacuum-time= commands to clean up journal files based on a size/time limit
This is equivalent to the effect of SystemMaxUse= and RetentionSec=,
however can be invoked directly instead of implicitly.
Diffstat (limited to 'man')
-rw-r--r-- | man/journalctl.xml | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/man/journalctl.xml b/man/journalctl.xml index 0ed3ca3bc8..0703bf9fb6 100644 --- a/man/journalctl.xml +++ b/man/journalctl.xml @@ -761,8 +761,37 @@ <term><option>--disk-usage</option></term> <listitem><para>Shows the current disk - usage of all - journal files.</para></listitem> + usage of all journal files. This shows + the sum of the disk usage of all + archived and active journal + files.</para></listitem> + </varlistentry> + + <varlistentry> + <term><option>--vacuum-size=</option></term> + <term><option>--vacuum-time=</option></term> + + <listitem><para>Removes archived + journal files until the disk space + they use falls below the specified + size (specified with the usual K, M, + G, T suffixes), or all journal files + contain no data older than the + specified timespan (specified with the + usual s, min, h, days, months, weeks, + years suffixes). Note that running + <option>--vacuum-size=</option> has + only indirect effect on the output + shown by <option>--disk-usage</option> + as the latter includes active journal + files, while the former only operates + on archived journal + files. <option>--vacuum-size=</option> + and <option>--vacuum-time=</option> + may be combined in a single invocation + to enforce both a size and time limit + on the archived journal + files.</para></listitem> </varlistentry> <varlistentry> |