Update the remaining manual pages for LTTng-tools 2.13
[lttng-tools.git] / doc / man / lttng-save.1.txt
CommitLineData
b3903b3a
PP
1lttng-save(1)
2=============
26f0c779 3:revdate: 3 May 2021
b3903b3a
PP
4
5
6NAME
7----
8lttng-save - Save LTTng tracing session configurations
9
10
11SYNOPSIS
12--------
13[verse]
26f0c779 14*lttng* ['linkgenoptions:(GENERAL OPTIONS)'] *save* [option:--force] [option:--output-path='DIR'] ['SESSION']
b3903b3a
PP
15
16
17DESCRIPTION
18-----------
26f0c779 19The `lttng save` command saves to files the configurations of:
b3903b3a 20
26f0c779
PP
21With the 'SESSION' argument::
22 The tracing session named 'SESSION'.
b3903b3a 23
26f0c779
PP
24Without 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)).
28+
29See the ``Session daemon connection'' section of man:lttng(1) to learn
30how a user application connects to a session daemon.
31
32See man:lttng-concepts(7) to learn more about tracing sessions.
33
34Use the `save` command in conjunction with the man:lttng-load(1) command
35to save and restore the complete configurations of tracing sessions.
36
37The `save` command does :not: save tracing data, only the tracing
38session parameters, including the channel and recording event rule
39configurations.
b3903b3a
PP
40
41The default output directory path is `$LTTNG_HOME/.lttng/sessions`
26f0c779
PP
42(`$LTTNG_HOME` defaults to `$HOME`). Override the default output
43directory path with the option:--output-path option. Each tracing
44session configuration file is named __SNAME__++.lttng++,
45where{nbsp}__SNAME__ is the original tracing session name.
b3903b3a 46
26f0c779
PP
47By default, the `save` command does :not: overwrite existing tracing
48session configuration files: the command fails. Allow the `save` command
49to overwrite existing tracing session configuration files with the
50option:--force option.
b3903b3a
PP
51
52
53include::common-cmd-options-head.txt[]
54
55
56option:-a, option:--all::
26f0c779
PP
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'.
b3903b3a
PP
61
62option:-f, option:--force::
63 Overwrite existing tracing session configuration files when
64 saving.
65
26f0c779
PP
66option:-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
69 `$HOME`).
b3903b3a
PP
70
71
72include::common-cmd-help-options.txt[]
73
74
75include::common-cmd-footer.txt[]
76
77
78SEE ALSO
79--------
26f0c779
PP
80man:lttng(1),
81man:lttng-concepts(7),
82man:lttng-load(1)
This page took 0.033915 seconds and 4 git commands to generate.