hyprland-dotfiles/scripts/snapshot.sh

17 lines
580 B
Bash
Raw Normal View History

2023-02-20 11:42:39 +00:00
#!/bin/bash
2023-03-09 08:25:31 +00:00
# ____ _ _
# / ___| _ __ __ _ _ __ ___| |__ ___ | |_
# \___ \| '_ \ / _` | '_ \/ __| '_ \ / _ \| __|
# ___) | | | | (_| | |_) \__ \ | | | (_) | |_
# |____/|_| |_|\__,_| .__/|___/_| |_|\___/ \__|
# |_|
#
# by Stephan Raabe (2023)
# -----------------------------------------------------
2023-02-20 11:42:39 +00:00
read -p "Enter a comment for the snapshot: " c
sudo timeshift --create --comments "$c"
sudo timeshift --list
sudo grub-mkconfig -o /boot/grub/grub.cfg
echo "DONE. Snapshot $c created!"