fix menu
This commit is contained in:
8
backup
8
backup
@@ -71,10 +71,6 @@ for x in $SNAPPER_CONFIGS; do
|
||||
# shellcheck source=/dev/null
|
||||
source /etc/snapper/configs/$x
|
||||
|
||||
read -n 1 -p "Perform backup on '$x' configuration (y/n)? " do_backup
|
||||
echo
|
||||
|
||||
if [[ $do_backup == "y" ]]; then
|
||||
|
||||
old_number=$(snapper -c "$x" list -t single | awk '/'"$selected_uuid"'/ {print $1}')
|
||||
new_number=$(snapper -c "$x" create --print-number)
|
||||
@@ -82,6 +78,7 @@ for x in $SNAPPER_CONFIGS; do
|
||||
|
||||
new_snapshot=$SUBVOLUME/.snapshots/$new_number/snapshot
|
||||
new_info=$SUBVOLUME/.snapshots/$new_number/info.xml
|
||||
echo "At '$x' configuration"
|
||||
|
||||
if [[ -z "$old_number" ]]; then
|
||||
|
||||
@@ -144,9 +141,6 @@ for x in $SNAPPER_CONFIGS; do
|
||||
# Tag new snapshot as the latest
|
||||
snapper -v -c "$x" modify -d "$description" -u "$userdata" "$new_number"
|
||||
|
||||
fi
|
||||
|
||||
|
||||
done
|
||||
|
||||
date > "$HOME"/.lastbackup
|
||||
|
||||
Reference in New Issue
Block a user