7 lttng-save - Save LTTng tracing session configurations
13 *lttng* ['linkgenoptions:(GENERAL OPTIONS)'] *save* [option:--force] [option:--output-path='PATH'] ['SESSION']
18 The `lttng save` command saves the configurations of one or more
19 tracing sessions to files.
21 The `lttng save` command is used in conjunction with the
22 man:lttng-load(1) command to save and restore the complete
23 configurations of tracing sessions. This includes the enabled channels
24 and event rules, the context added to channels, the tracing activity,
25 and more. `lttng save` does not save tracing data, only the tracing
28 If 'SESSION' is omitted, all the existing tracing session configurations
29 are saved (equivalent to using the option:--all option). Otherwise,
30 'SESSION' is the name of an existing tracing session. `lttng list`
31 outputs all the existing tracing sessions (see man:lttng-list(1)).
33 The default output directory path is `$LTTNG_HOME/.lttng/sessions`
34 (`$LTTNG_HOME` defaults to `$HOME`). Each tracing session configuration
35 file is named `SESSION.lttng`, where `SESSION` is the original tracing
36 session name. The default output directory path can be overridden with
37 the option:--output-path option.
39 By default, existing tracing session configuration files are not
40 overwritten when saving; the command fails. The option:--force option
41 can be used to allow this.
44 include::common-cmd-options-head.txt[]
47 option:-a, option:--all::
48 Save all tracing session configurations (default).
50 option:-f, option:--force::
51 Overwrite existing tracing session configuration files when
54 option:-o 'PATH', option:--output-path='PATH'::
55 Set output directory path to 'PATH'.
58 include::common-cmd-help-options.txt[]
61 include::common-cmd-footer.txt[]