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