[systemd-devel] How to completely clear journal?

David Strauss david at davidstrauss.net
Wed Oct 2 01:08:42 PDT 2013


Instead of doing your own compressed dump to flash, how about this:

 (1) Enable persistence.
 (2) When you want a backup, force rotation by sending the journal SIGUSR2 [1].
 (3) Copy away the rotated journal file and delete it.

This would allow getting entries in a way that's compressed and never
duplicated between files.

[1] http://www.freedesktop.org/software/systemd/man/systemd-journald.service


More information about the systemd-devel mailing list