6 btrfs-send - generate a stream of changes between two subvolume snapshots
10 *btrfs send* [-ve] [-p <parent>] [-c <clone-src>] [-f <outfile>] <subvol> [<subvol>...]
15 This command will generate a stream of instructions that describe changes
16 between two subvolume snapshots. The stream can be consumed by the *btrfs
17 receive* command to replicate the sent snapshot on a different filesystem.
18 The command operates in two modes: full and incremental.
20 All snapshots involved in one send command must be read-only, and this status
21 cannot be changed as long as there's a running send operation that uses the
24 In the full mode, the entire snapshot data and metadata will end up in the
27 In the incremental mode (options '-p' and '-c'), previously sent snapshots that
28 are available on both the sending and receiving side can be used to reduce the
29 amount of information that has to be sent to reconstruct the sent snapshot on a
32 The '-p <parent>' option can be omitted when '-c <clone-src>' options are
33 given, in which case *btrfs send* will determine a suitable parent from among
36 You must not specify clone sources unless you guarantee that these snapshots
37 are exactly in the same state on both sides--both for the sender and the
43 if sending multiple subvolumes at once, use the new format and omit the
44 'end cmd' marker in the stream separating the subvolumes
46 send an incremental stream from 'parent' to 'subvol'
48 use this snapshot as a clone source for an incremental send (multiple allowed)
50 output is normally written to standard output so it can be, for example, piped
51 to btrfs receive. Use this option to write it to a file instead.
53 send in 'NO_FILE_DATA' mode
55 The output stream does not contain any file
56 data and thus cannot be used to transfer changes. This mode is faster and
57 is useful to show the differences in metadata.
60 enable verbose output, print generated commands in a readable form, (each
61 occurrence of this option increases the verbosity level)
63 suppress all messages except errors
67 *btrfs send* returns a zero exit status if it succeeds. Non zero is
68 returned in case of failure.
72 *btrfs* is part of btrfs-progs.
73 Please refer to the btrfs wiki http://btrfs.wiki.kernel.org for