Btrfs: Difference between revisions

imported>Onny
mNo edit summary
imported>Onny
Add section on transfer snapshot
Line 98: Line 98:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
sudo btrfs subvolume list /
sudo btrfs subvolume list /
</syntaxhighlight>
=== Transfer snapshot ===
Sending the snapshot <code>/mnt/@nixos_snapshot_202302</code> compressed to a remote host via ssh at <code>root@192.168.178.110</code> and saving it to a subvolume mounted or directory at <code>/mnt/target</code>
<syntaxhighlight lang="bash">
sudo btrfs send /mnt/@nixos_snapshot_202302 | zstd | ssh root@192.168.178.110 'zstd -d | btrfs receive '
</syntaxhighlight>
</syntaxhighlight>


[[Category: Configuration]]
[[Category: Configuration]]