mirror of
https://github.com/tteck/Proxmox.git
synced 2024-12-28 11:03:57 +02:00
Update host-backup.sh
tweak
This commit is contained in:
parent
9d96fae50b
commit
1e04051b67
@ -17,7 +17,7 @@ EOF
|
|||||||
}
|
}
|
||||||
header_info
|
header_info
|
||||||
while true; do
|
while true; do
|
||||||
read -p "This will Backup Selected Directories. Proceed (y/n)?" yn
|
read -p "This will backup specific files and directories within the 'etc' directory. Proceed (y/n)?" yn
|
||||||
case $yn in
|
case $yn in
|
||||||
[Yy]*) break ;;
|
[Yy]*) break ;;
|
||||||
[Nn]*) exit ;;
|
[Nn]*) exit ;;
|
||||||
@ -40,8 +40,8 @@ while read -r dir; do
|
|||||||
done < <(ls -d /etc/*)
|
done < <(ls -d /etc/*)
|
||||||
|
|
||||||
while [ -z "${HOST_BACKUP:+x}" ]; do
|
while [ -z "${HOST_BACKUP:+x}" ]; do
|
||||||
HOST_BACKUP=$(whiptail --title "Select Directories" --checklist \
|
HOST_BACKUP=$(whiptail --title "SELECTIONS" --checklist \
|
||||||
"\nSelect what directories to backup:\n" \
|
"\nSelect what files/directories to backup:\n" \
|
||||||
16 $(($MSG_MAX_LENGTH + 58)) 6 \
|
16 $(($MSG_MAX_LENGTH + 58)) 6 \
|
||||||
"${CTID_MENU[@]}" 3>&1 1>&2 2>&3) || exit
|
"${CTID_MENU[@]}" 3>&1 1>&2 2>&3) || exit
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user