btrfs-subvolume

Manage btrfs subvolumes and snapshots.

TLDR

Create a new empty subvolume

$ sudo btrfs subvolume create [path/to/new_subvolume]
copy

List all subvolumes and snapshots in the specified filesystem

$ sudo btrfs subvolume list [path/to/btrfs_filesystem]
copy

Delete a subvolume

$ sudo btrfs subvolume delete [path/to/subvolume]
copy

Create a read-only snapshot of an existing subvolume

$ sudo btrfs subvolume snapshot -r [path/to/source_subvolume] [path/to/target]
copy

Create a read-write snapshot of an existing subvolume

$ sudo btrfs subvolume snapshot [path/to/source_subvolume] [path/to/target]
copy

Show detailed information about a subvolume

$ sudo btrfs subvolume show [path/to/subvolume]
copy

Copied to clipboard
Earn up to $40 for learning about crypto currencies