1BTRFS-SEND(8)                    Btrfs Manual                    BTRFS-SEND(8)
2
3
4

NAME

6       btrfs-send - generate a stream of changes between two subvolume
7       snapshots
8

SYNOPSIS

10       btrfs send [-ve] [-p <parent>] [-c <clone-src>] [-f <outfile>] <subvol>
11       [<subvol>...]
12

DESCRIPTION

14       This command will generate a stream of instructions that describe
15       changes between two subvolume snapshots. The stream can be consumed by
16       the btrfs receive command to replicate the sent snapshot on a different
17       filesystem. The command operates in two modes: full and incremental.
18
19       All snapshots involved in one send command must be read-only, and this
20       status cannot be changed as long as there’s a running send operation
21       that uses the snapshot.
22
23       In the full mode, the entire snapshot data and metadata will end up in
24       the stream.
25
26       In the incremental mode (options -p and -c), previously sent snapshots
27       that are available on both the sending and receiving side can be used
28       to reduce the amount of information that has to be sent to reconstruct
29       the sent snapshot on a different filesystem.
30
31       The -p <parent> option can be omitted when -c <clone-src> options are
32       given, in which case btrfs send will determine a suitable parent from
33       among the clone sources.
34
35       You must not specify clone sources unless you guarantee that these
36       snapshots are exactly in the same state on both sides—both for the
37       sender and the receiver.
38
39       Options
40
41       -e
42           if sending multiple subvolumes at once, use the new format and omit
43           the end cmd marker in the stream separating the subvolumes
44
45       -p <parent>
46           send an incremental stream from parent to subvol
47
48       -c <clone-src>
49           use this snapshot as a clone source for an incremental send
50           (multiple allowed)
51
52       -f <outfile>
53           output is normally written to standard output so it can be, for
54           example, piped to btrfs receive. Use this option to write it to a
55           file instead.
56
57       --no-data
58           send in NO_FILE_DATA mode
59
60           The output stream does not contain any file data and thus cannot be
61           used to transfer changes. This mode is faster and is useful to show
62           the differences in metadata.
63
64       -v|--verbose
65           enable verbose output, print generated commands in a readable form,
66           (each occurrence of this option increases the verbosity level)
67
68       -q|--quiet
69           suppress all messages except errors
70

EXIT STATUS

72       btrfs send returns a zero exit status if it succeeds. Non zero is
73       returned in case of failure.
74

AVAILABILITY

76       btrfs is part of btrfs-progs. Please refer to the btrfs wiki
77       http://btrfs.wiki.kernel.org for further details.
78

SEE ALSO

80       mkfs.btrfs(8), btrfs-receive(8)
81
82
83
84Btrfs v5.6                        04/05/2020                     BTRFS-SEND(8)
Impressum