#!/bin/bash sudo btrfs subvolume snapshot / /.snapshots/root-$(date +%F) sudo btrfs subvolume snapshot /home /.snapshots/home-$(date +%F)