package-crashfiles

Create a tar archive of crash files in /opt/crash called crashes-<date>.tar.gz. In addition to crash files, this command also creates output files created when you execute the package-logfiles command.

Syntax

package-crashfiles [name <file>.tar.gz] [newer-than <days>] <all>

Arguments

name—Specify the path and name of the saved file. Generally, the files should be saved to /opt. If the system’s hard drive has been formatted with partitions, /mnt may be used instead.

newer-than—Specify a time limit, in days, on the crash files to be compressed and saved. This option counts backwards, starting with the current day. Thus the option newer-than 5 would compress and save crash files for the past 5 days only.

all—Collects all formed crash files and available log files. Use this argument with caution as it may impact system performance.

Mode

Superuser