Btrfs: Difference between revisions

Pigs (talk | contribs)
Fix section headers, update swap file section to let nixos handle swap file creating
Transfer snapshot: Add --compressed-data trick
Tags: Mobile edit Mobile web edit
Line 220: Line 220:
sudo btrfs send /snapshots/nixos_snapshot_202302 | zstd | ssh root@192.168.178.110 'zstd -d | btrfs receive /mnt/nixos'
sudo btrfs send /snapshots/nixos_snapshot_202302 | zstd | ssh root@192.168.178.110 'zstd -d | btrfs receive /mnt/nixos'
</syntaxhighlight>
</syntaxhighlight>
If both the sender and receiver side have Btrfs with the same compression algorithm and level, you can instead use <code>send --compressed-data</code> to avoid decompressing and recompressing the data.


= Tips and tricks =
= Tips and tricks =