2023-04-15 18:10:59 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# ____ _ _
|
|
|
|
# / ___| _ __ __ _ _ __ ___| |__ ___ | |_
|
|
|
|
# \___ \| '_ \ / _` | '_ \/ __| '_ \ / _ \| __|
|
|
|
|
# ___) | | | | (_| | |_) \__ \ | | | (_) | |_
|
|
|
|
# |____/|_| |_|\__,_| .__/|___/_| |_|\___/ \__|
|
|
|
|
# |_|
|
|
|
|
#
|
|
|
|
# by Stephan Raabe (2023)
|
|
|
|
# -----------------------------------------------------
|
|
|
|
|
2023-11-25 16:06:26 +00:00
|
|
|
c=$(gum input --placeholder "Enter a comment for the snapshot...")
|
2023-04-15 18:10:59 +00:00
|
|
|
sudo timeshift --create --comments "$c"
|
|
|
|
sudo timeshift --list
|
|
|
|
sudo grub-mkconfig -o /boot/grub/grub.cfg
|
|
|
|
echo "DONE. Snapshot $c created!"
|