load: introduce --override-name
[lttng-tools.git] / doc / man / lttng-load.1.txt
CommitLineData
44f5039e
PP
1lttng-load(1)
2=============
3
4
5NAME
6----
7lttng-load - Load LTTng tracing session configurations
8
9
10SYNOPSIS
11--------
12[verse]
fe559816 13*lttng* ['linkgenoptions:(GENERAL OPTIONS)'] *load* [option:--force] [option:--input-path='PATH']
e1f481f6 14 [option:--override-url='URL'] [option:--override-name='NAME'] ['SESSION']
44f5039e
PP
15
16
17DESCRIPTION
18-----------
19The `lttng load` command loads the configurations of one or more
20tracing sessions from files.
21
22The `lttng load` command is used in conjunction with the
7c1a4458 23man:lttng-save(1) command to save and restore the complete
44f5039e
PP
24configurations of tracing sessions. This includes the enabled channels
25and event rules, the context added to channels, the tracing activity,
26and more.
27
28Once one or more tracing session configurations are loaded, they appear
29exactly as they were saved from the user's point of view.
30
7a0f38c7
PP
31The following directories are searched, non-recursively, in this order
32for configuration files:
33
34. `$LTTNG_HOME/.lttng/sessions` (`$LTTNG_HOME` defaults to `$HOME`)
35. +{system_sessions_dir}+
36
37The input path can be overridden with the option:--input-path option.
38When this option is specified, the default directories are :not:
39searched for configuration files. When it's not specified, _both_
40default directories are searched for configuration files.
44f5039e 41
9014e3a8
PP
42If the input path is a *directory*, then:
43
44* If 'SESSION' is specified, the tracing session configuration named
45 'SESSION' is searched for in all the files of this directory and
46 loaded if found.
47* If 'SESSION' is not specified, the option:--all option is implicit:
48 all the tracing session configurations found in all the files in this
49 directory are loaded.
50
51If the input path is a *file*, then:
52
53* If 'SESSION' is specified, the tracing session configuration named
54 'SESSION' is searched for in this file and loaded if found.
55* If 'SESSION' is not specified, the option:--all option is implicit:
56 all the tracing session configurations found in this file are loaded.
57
fe559816
JR
58Aspects of the loaded configurations can be overridden at load time.
59
60option:--override-url::
61 Provides the equivalent of the option:--set-url option
62 of the (1)lttng-create command. The validity of the url override is
63 dependant on the type of session(s) to be loaded. Refer to (1)lttng-create for
64 the accepted URL format.
65
e1f481f6
JR
66option:--override-name::
67 Set the session name to NAME. This option is invalid in combination with
68 the --all option.
69
9014e3a8 70By default, existing tracing sessions are not overwritten when loading:
44f5039e
PP
71the command fails. The option:--force option can be used to allow this.
72
73
74include::common-cmd-options-head.txt[]
75
76
77option:-a, option:--all::
78 Load all tracing session configurations (default).
79
80option:-f, option:--force::
81 Overwrite existing tracing sessions when loading.
82
83option:-i, option:--input-path='PATH'::
7a0f38c7
PP
84 Load tracing session configurations from 'PATH', either a directory
85 or a file, instead of loading them from the default search
86 directories.
44f5039e 87
fe559816
JR
88option:-U, option:--override-url='URL'::
89 Load tracing session configurations and apply an url override
90 while loading. Applies to all sessions loaded.
44f5039e
PP
91
92include::common-cmd-help-options.txt[]
93
94
95include::common-cmd-footer.txt[]
96
97
98SEE ALSO
99--------
7c1a4458
PP
100man:lttng-save(1),
101man:lttng(1)
This page took 0.0271940000000001 seconds and 4 git commands to generate.