Rename "tracing session" -> "recording session"
[lttng-tools.git] / doc / man / lttng-save.1.txt
CommitLineData
b3903b3a
PP
1lttng-save(1)
2=============
aaae4813 3:revdate: 14 June 2021
b3903b3a
PP
4
5
6NAME
7----
aaae4813 8lttng-save - Save LTTng recording session configurations
b3903b3a
PP
9
10
11SYNOPSIS
12--------
13[verse]
a27f01c6
PP
14*lttng* ['linkgenoptions:(GENERAL OPTIONS)'] *save* [option:--force] [option:--output-path='DIR']
15 [option:--all | 'SESSION']
b3903b3a
PP
16
17
18DESCRIPTION
19-----------
188419c4 20The `lttng save` command saves to files the configurations of:
b3903b3a 21
188419c4 22With the 'SESSION' argument::
aaae4813 23 The recording session named 'SESSION'.
b3903b3a 24
188419c4 25Without the 'SESSION' argument::
aaae4813 26 Implicit option:--all option: *all* the recording sessions of the
a27f01c6
PP
27 connected session daemon for your Unix user, or for all users if
28 your Unix user is `root`, as listed in the output of `lttng list`
29 (see man:lttng-list(1)).
188419c4
PP
30+
31See the ``Session daemon connection'' section of man:lttng(1) to learn
32how a user application connects to a session daemon.
33
aaae4813 34See man:lttng-concepts(7) to learn more about recording sessions.
188419c4
PP
35
36Use the `save` command in conjunction with the man:lttng-load(1) command
aaae4813 37to save and restore the complete configurations of recording sessions.
188419c4 38
aaae4813 39The `save` command does :not: save tracing data, only the recording
188419c4
PP
40session parameters, including the channel and recording event rule
41configurations.
b3903b3a
PP
42
43The default output directory path is `$LTTNG_HOME/.lttng/sessions`
188419c4 44(`$LTTNG_HOME` defaults to `$HOME`). Override the default output
aaae4813 45directory path with the option:--output-path option. Each recording
188419c4 46session configuration file is named __SNAME__++.lttng++,
aaae4813 47where{nbsp}__SNAME__ is the original recording session name.
b3903b3a 48
aaae4813 49By default, the `save` command does :not: overwrite existing recording
188419c4 50session configuration files: the command fails. Allow the `save` command
aaae4813 51to overwrite existing recording session configuration files with the
188419c4 52option:--force option.
b3903b3a 53
7d259724 54See the ``<<examples,EXAMPLES>>'' section below for usage examples.
6d234d4e 55
b3903b3a 56
55e06994 57include::common-lttng-cmd-options-head.txt[]
b3903b3a
PP
58
59
60option:-a, option:--all::
aaae4813
PP
61 Save all the recording session configurations of your Unix user, or
62 of all users if your Unix user is `root`, as listed in the output of
63 man:lttng-list(1), instead of the current recording session or the
64 recording session named 'SESSION'.
b3903b3a
PP
65
66option:-f, option:--force::
aaae4813 67 Overwrite existing recording session configuration files when
b3903b3a
PP
68 saving.
69
188419c4 70option:-o 'DIR', option:--output-path='DIR'::
aaae4813 71 Save recording session configuration files to the directory 'DIR'
188419c4
PP
72 instead of `$LTTNG_HOME/.lttng/sessions` (`$LTTNG_HOME` defaults to
73 `$HOME`).
b3903b3a
PP
74
75
55e06994 76include::common-lttng-cmd-help-options.txt[]
b3903b3a
PP
77
78
55e06994
PP
79include::common-lttng-cmd-after-options.txt[]
80
81
6d234d4e
PP
82[[examples]]
83EXAMPLES
84--------
aaae4813 85.Save all the recording session configurations to the default output directory.
6d234d4e
PP
86====
87[role="term"]
88----
89$ lttng save
90----
91====
92
aaae4813 93.Save a specific recording session configuration to a specific output directory.
6d234d4e
PP
94====
95See the option:--output-path option.
96
97[role="term"]
98----
99$ lttng save my-session --output-path=/path/to/sessions
100----
101====
102
aaae4813 103.Allow LTTng to overwrite existing recording session configuration files when saving.
6d234d4e
PP
104====
105See the option:--force option.
106
107[role="term"]
108----
109$ lttng save --force
110----
111====
112
113
55e06994 114include::common-footer.txt[]
b3903b3a
PP
115
116
117SEE ALSO
118--------
188419c4 119man:lttng(1),
21b35b3a
PP
120man:lttng-load(1),
121man:lttng-concepts(7)
This page took 0.05276 seconds and 5 git commands to generate.