Update btrfs
This commit is contained in:
@@ -5,20 +5,22 @@
|
|||||||
#### Create shapshot
|
#### Create shapshot
|
||||||
```bash
|
```bash
|
||||||
btrfs subvolume snapshot xyz xyz-snapshot-path-name
|
btrfs subvolume snapshot xyz xyz-snapshot-path-name
|
||||||
|
```
|
||||||
# or
|
or
|
||||||
|
```bash
|
||||||
btrfs subvolume snapshot main "main-`date +%Y-%m-%d`"
|
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
|
or
|
||||||
|
```bash
|
||||||
btrfs subvolume delete "`echo main-* | tr ' ' \\\\n | sort | head -n 1`"
|
btrfs subvolume delete "`echo main-* | tr ' ' \\\\n | sort | head -n 1`"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Common
|
||||||
|
|
||||||
#### Resize
|
#### Resize
|
||||||
```bash
|
```bash
|
||||||
btrfs filesystem resize max /mnt/dmp/
|
btrfs filesystem resize max /mnt/dmp/
|
||||||
|
Reference in New Issue
Block a user