mirror of
https://github.com/tteck/Proxmox.git
synced 2024-12-25 00:18:59 +01:00
Update host-backup.sh
tweak
This commit is contained in:
parent
8c4d2a3711
commit
4535f31d3d
@ -18,7 +18,7 @@ EOF
|
|||||||
header_info
|
header_info
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
BACKUP_PATH=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "\nDefaults to root\ne.g. /mnt/backups/" 9 68 --title "Directory to backup to:" 3>&1 1>&2 2>&3)
|
BACKUP_PATH=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "\nDefaults to /root/\ne.g. /mnt/backups/" 11 68 --title "Directory to backup to:" 3>&1 1>&2 2>&3)
|
||||||
|
|
||||||
if [ -z "$BACKUP_PATH" ]; then
|
if [ -z "$BACKUP_PATH" ]; then
|
||||||
BACKUP_PATH="/root/"
|
BACKUP_PATH="/root/"
|
||||||
@ -26,7 +26,7 @@ start() {
|
|||||||
BACKUP_PATH="$BACKUP_PATH"
|
BACKUP_PATH="$BACKUP_PATH"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
DIR=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "\nDefaults to etc\ne.g. root, var/lib/pve-cluster etc." 9 68 --title "Directory to work in (No leading or trailing slashes):" 3>&1 1>&2 2>&3)
|
DIR=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "\nDefaults to etc\ne.g. root, var/lib/pve-cluster etc." 11 68 --title "Directory to work in (No leading or trailing slashes):" 3>&1 1>&2 2>&3)
|
||||||
|
|
||||||
if [ -z "$DIR" ]; then
|
if [ -z "$DIR" ]; then
|
||||||
DIR="etc"
|
DIR="etc"
|
||||||
|
Loading…
Reference in New Issue
Block a user