|
26 | 26 |
|
27 | 27 | [38;5;246;03m# Show quota:[39;00m |
28 | 28 | [38;5;252msudo[39m[38;5;252m [39m[38;5;252mbtrfs[39m[38;5;252m [39m[38;5;252mqgroup[39m[38;5;252m [39m[38;5;252mshow[39m[38;5;252m [39m[38;5;252mpath/to/subvolume[39m |
| 29 | + |
| 30 | +[48;5;8m[24m tldr:btrfs-filesystem [24m[0m |
| 31 | +[38;5;246;03m# Defragment a directory recursively (does not cross subvolume boundaries):[39;00m |
| 32 | +[38;5;252msudo[39m[38;5;252m [39m[38;5;252mbtrfs[39m[38;5;252m [39m[38;5;252mfilesystem[39m[38;5;252m [39m[38;5;252mdefragment[39m[38;5;252m [39m[38;5;252m-v[39m[38;5;252m [39m[38;5;252m-r[39m[38;5;252m [39m[38;5;252mpath/to/directory[39m |
| 33 | + |
| 34 | +[48;5;8m[24m tldr:btrfs-subvolume [24m[0m |
| 35 | +[38;5;246;03m# btrfs subvolume[39;00m |
| 36 | +[38;5;246;03m# Manage btrfs subvolumes and snapshots.[39;00m |
| 37 | +[38;5;246;03m# More information: <https://btrfs.wiki.kernel.org/index.php/Manpage/btrfs-subvolume>.[39;00m |
| 38 | + |
| 39 | +[38;5;246;03m# Create a new empty subvolume:[39;00m |
| 40 | +[38;5;252msudo[39m[38;5;252m [39m[38;5;252mbtrfs[39m[38;5;252m [39m[38;5;252msubvolume[39m[38;5;252m [39m[38;5;252mcreate[39m[38;5;252m [39m[38;5;252mpath/to/new_subvolume[39m |
| 41 | + |
| 42 | +[38;5;246;03m# List all subvolumes and snapshots in the specified filesystem:[39;00m |
| 43 | +[38;5;252msudo[39m[38;5;252m [39m[38;5;252mbtrfs[39m[38;5;252m [39m[38;5;252msubvolume[39m[38;5;252m [39m[38;5;252mlist[39m[38;5;252m [39m[38;5;252mpath/to/btrfs_filesystem[39m |
| 44 | + |
| 45 | +[38;5;246;03m# Delete a subvolume:[39;00m |
| 46 | +[38;5;252msudo[39m[38;5;252m [39m[38;5;252mbtrfs[39m[38;5;252m [39m[38;5;252msubvolume[39m[38;5;252m [39m[38;5;252mdelete[39m[38;5;252m [39m[38;5;252mpath/to/subvolume[39m |
| 47 | + |
| 48 | +[38;5;246;03m# Create a read-only snapshot of an existing subvolume:[39;00m |
| 49 | +[38;5;252msudo[39m[38;5;252m [39m[38;5;252mbtrfs[39m[38;5;252m [39m[38;5;252msubvolume[39m[38;5;252m [39m[38;5;252msnapshot[39m[38;5;252m [39m[38;5;252m-r[39m[38;5;252m [39m[38;5;252mpath/to/source_subvolume[39m[38;5;252m [39m[38;5;252mpath/to/target[39m |
| 50 | + |
| 51 | +[38;5;246;03m# Create a read-write snapshot of an existing subvolume:[39;00m |
| 52 | +[38;5;252msudo[39m[38;5;252m [39m[38;5;252mbtrfs[39m[38;5;252m [39m[38;5;252msubvolume[39m[38;5;252m [39m[38;5;252msnapshot[39m[38;5;252m [39m[38;5;252mpath/to/source_subvolume[39m[38;5;252m [39m[38;5;252mpath/to/target[39m |
| 53 | + |
| 54 | +[38;5;246;03m# Show detailed information about a subvolume:[39;00m |
| 55 | +[38;5;252msudo[39m[38;5;252m [39m[38;5;252mbtrfs[39m[38;5;252m [39m[38;5;252msubvolume[39m[38;5;252m [39m[38;5;252mshow[39m[38;5;252m [39m[38;5;252mpath/to/subvolume[39m |
0 commit comments