Update btrfs examples
This commit is contained in:
@@ -19,13 +19,24 @@ btrfs filesystem defragment -v -clzo /boot/*
|
|||||||
btrfs property set -f . ro false
|
btrfs property set -f . ro false
|
||||||
btrfs property set -f . ro true
|
btrfs property set -f . ro true
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Snapshot
|
||||||
|
|
||||||
#### Create shapshot
|
#### Create shapshot
|
||||||
```bash
|
```bash
|
||||||
btrfs subvolume snapshot xyz xyz-snapshot-path-name
|
btrfs subvolume snapshot xyz xyz-snapshot-path-name
|
||||||
|
|
||||||
|
# or
|
||||||
|
|
||||||
|
btrfs subvolume snapshot main main-`date +%Y-%m-%d`
|
||||||
```
|
```
|
||||||
#### Delete shapshot
|
#### Delete shapshot
|
||||||
```bash
|
```bash
|
||||||
btrfs subvolume delete xyz-snapshot-path-name
|
btrfs subvolume delete xyz-snapshot-path-name
|
||||||
|
|
||||||
|
# or
|
||||||
|
|
||||||
|
btrfs subvolume delete "`echo main-* | tr ' ' \\\\n | sort | head -n 1`"
|
||||||
```
|
```
|
||||||
|
|
||||||
# Ext4
|
# Ext4
|
||||||
|
Reference in New Issue
Block a user