Update btrfs examples

This commit is contained in:
root
2024-03-17 00:19:48 +03:00
parent 939d934976
commit e2b36dd829

View File

@@ -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