HOST_BACKUP=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "SELECTIONS" --checklist \
"\nSelect what files/directories to backup:\n"\
16$(($MSG_MAX_LENGTH+58))6\
"${CTID_MENU[@]}" 3>&1 1>&2 2>&3)|| exit
DIR=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "\nDefaults to etc\ne.g. root, var/lib/pve-cluster etc."968 --title "Directory to work in (No leading or trailing slashes):" 3>&1 1>&2 2>&3)
echo -e "This will create a backup in\e[1;33m $BACKUP_PATH \e[0mfor these files and directories\e[1;33m ${selected_directories_string% } \e[0m"
read -p "Press ENTER to continue..."
header_info
tar -czf "$BACKUP_PATH$BACKUP_FILE-$(date +%Y_%m_%d).tar.gz" --absolute-names ${selected_directories_string% }
echo -e "\nFinished"
}
echo -e "\nFinished"
if(whiptail --backtitle "Proxmox VE Helper Scripts" --title "Proxmox VE Host Backup" --yesno "This will create backups for particular files and directories located within a designated directory. Proceed?"10 88);then
start
fi
echo -e "\e[1;33m \nA backup is rendered ineffective when it remains stored on the host.\n \e[0m"