table of contents
BTRFS-SEND(8) | Btrfs Manual | BTRFS-SEND(8) |
NAME¶
btrfs-send - generate a stream of changes between two subvolumes
SYNOPSIS¶
btrfs send [-ve] [-p <parent>] [-c <clone-src>] [-f <outfile>] <subvol> [<subvol>...]
DESCRIPTION¶
This command will generate a stream of instructions that describe changes between two subvolumes. The stream can be consumed by the btrfs receive command to replicate the sent subvolume on a different filesystem. The command operates in two modes: full and incremental.
All subvolumes involved in one send command must be read-only (ie. the read-only snapshots and this status cannot be changed if there’s a running send operation that uses the subvolume).
In the full mode, the entire subvolume data and metadata will end up in the stream.
In the incremental mode (options -p and -c), there can be one or more parent subvolumes that will establish the base for determining the changes. The final stream will be smaller compared to the full mode.
It is allowed to omit the -p <parent> option when -c <clone-src> options are given, in which case btrfs send will determine a suitable parent among the clone sources itself.
You must not specify clone sources unless you guarantee that these snapshots are exactly in the same state on both sides, the sender and the receiver.
Options
-e
-p <parent>
-c <clone-src>
-f <outfile>
--no-data
The output stream does not contain any file data and thus cannot be used to transfer changes. This mode is faster and useful to show the differences in metadata.
-v|--verbose
-q|--quiet
EXIT STATUS¶
btrfs send returns a zero exit status if it succeeds. Non zero is returned in case of failure.
AVAILABILITY¶
btrfs is part of btrfs-progs. Please refer to the btrfs wiki http://btrfs.wiki.kernel.org for further details.
SEE ALSO¶
08/03/2017 | Btrfs v4.9.1 |