8 lttng-save - Save LTTng tracing session configurations
14 *lttng* ['linkgenoptions:(GENERAL OPTIONS)'] *save* [option:--force] [option:--output-path='DIR'] ['SESSION']
19 The `lttng save` command saves to files the configurations of:
21 With the 'SESSION' argument::
22 The tracing session named 'SESSION'.
24 Without the 'SESSION' argument::
25 *All* the tracing sessions of the connected session daemon for your
26 Unix user, or for all users if your Unix user is `root`, as listed
27 in the output of `lttng list` (see man:lttng-list(1)).
29 See the ``Session daemon connection'' section of man:lttng(1) to learn
30 how a user application connects to a session daemon.
32 See man:lttng-concepts(7) to learn more about tracing sessions.
34 Use the `save` command in conjunction with the man:lttng-load(1) command
35 to save and restore the complete configurations of tracing sessions.
37 The `save` command does :not: save tracing data, only the tracing
38 session parameters, including the channel and recording event rule
41 The default output directory path is `$LTTNG_HOME/.lttng/sessions`
42 (`$LTTNG_HOME` defaults to `$HOME`). Override the default output
43 directory path with the option:--output-path option. Each tracing
44 session configuration file is named __SNAME__++.lttng++,
45 where{nbsp}__SNAME__ is the original tracing session name.
47 By default, the `save` command does :not: overwrite existing tracing
48 session configuration files: the command fails. Allow the `save` command
49 to overwrite existing tracing session configuration files with the
50 option:--force option.
53 include::common-cmd-options-head.txt[]
56 option:-a, option:--all::
57 Save all the tracing session configurations of your Unix user, or of
58 all users if your Unix user is `root`, as listed in the output of
59 man:lttng-list(1), instead of the current tracing session or the
60 tracing session named 'SESSION'.
62 option:-f, option:--force::
63 Overwrite existing tracing session configuration files when
66 option:-o 'DIR', option:--output-path='DIR'::
67 Save tracing session configuration files to the directory 'DIR'
68 instead of `$LTTNG_HOME/.lttng/sessions` (`$LTTNG_HOME` defaults to
72 include::common-cmd-help-options.txt[]
75 include::common-cmd-footer.txt[]
81 man:lttng-concepts(7),