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 true
|
||||
```
|
||||
|
||||
### Snapshot
|
||||
|
||||
#### Create shapshot
|
||||
```bash
|
||||
btrfs subvolume snapshot xyz xyz-snapshot-path-name
|
||||
|
||||
# or
|
||||
|
||||
btrfs subvolume snapshot main main-`date +%Y-%m-%d`
|
||||
```
|
||||
#### Delete shapshot
|
||||
```bash
|
||||
btrfs subvolume delete xyz-snapshot-path-name
|
||||
|
||||
# or
|
||||
|
||||
btrfs subvolume delete "`echo main-* | tr ' ' \\\\n | sort | head -n 1`"
|
||||
```
|
||||
|
||||
# Ext4
|
||||
|
Reference in New Issue
Block a user