btrfs send
Transfer data (subvolume/snapshot) from one filesystem to another in a streamable format. Note:
sendrequires the snapshot be read-only. See also:btrfs-subvolume,btrfs-property. More information: https://btrfs.readthedocs.io/en/latest/Send-receive.html.
- Send a subvolume snapshot to a file instead of
stdout:
sudo btrfs send -f
- Restore a subvolume snapshot from a file instead of
stdin:
sudo btrfs receive -f
- Send a subvolume snapshot stream and pipe it to a receiving destination:
sudo btrfs send | sudo btrfs receive
- Send an incremental update (differences between parent and new snapshot) to a file:
sudo btrfs send -p -f
- Send an incremental update stream and pipe it to a receiving destination:
sudo btrfs send -p | sudo btrfs receive
- Send a subvolume snapshot over SSH (the receiving
sudomust be configured for passwordless execution):
sudo btrfs send | ssh @ "sudo btrfs receive "
- Dump stream metadata from a file without modifying the filesystem:
sudo btrfs receive --dump -f
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
