From 82d90061d9b5eaad69a44daf7cfe02c261ceb535 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 17 Mar 2024 00:25:02 +0300 Subject: [PATCH] Update btrfs --- docs/linux/filesystems.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/docs/linux/filesystems.md b/docs/linux/filesystems.md index ead6dec..3dbec96 100644 --- a/docs/linux/filesystems.md +++ b/docs/linux/filesystems.md @@ -5,20 +5,22 @@ #### Create shapshot ```bash btrfs subvolume snapshot xyz xyz-snapshot-path-name - -# or - +``` +or +```bash btrfs subvolume snapshot main "main-`date +%Y-%m-%d`" ``` #### Delete shapshot ```bash btrfs subvolume delete xyz-snapshot-path-name - -# or - +``` +or +```bash btrfs subvolume delete "`echo main-* | tr ' ' \\\\n | sort | head -n 1`" ``` +### Common + #### Resize ```bash btrfs filesystem resize max /mnt/dmp/