mirror of
https://github.com/edv-pi/pbs-client-docker.git
synced 2025-04-20 07:52:56 +02:00
Merge pull request #11 from Aterfax/Correct-faulty-variable-check
Correct faulty variable check.
This commit is contained in:
commit
2fc4c03adb
@ -116,7 +116,7 @@ read -rp "Are these details correct? Press Enter to continue or Ctrl+C to cancel
|
|||||||
#proxmox-backup-client restore host/elsa/2019-12-03T09:35:01Z root.pxar /target/path/
|
#proxmox-backup-client restore host/elsa/2019-12-03T09:35:01Z root.pxar /target/path/
|
||||||
# We need to build this command in case namespaces are in use.
|
# We need to build this command in case namespaces are in use.
|
||||||
RESTORECMD="proxmox-backup-client restore ${selected_backup_type}/${selected_backup_id}/${selected_backup_time} ${selected_file} ${restore_path}"
|
RESTORECMD="proxmox-backup-client restore ${selected_backup_type}/${selected_backup_id}/${selected_backup_time} ${selected_file} ${restore_path}"
|
||||||
if [ -n "$RESTORECMD" ]; then
|
if [ -n "$PBS_DATASTORE_NS" ]; then
|
||||||
RESTORECMD+=" --ns ${PBS_DATASTORE_NS}"
|
RESTORECMD+=" --ns ${PBS_DATASTORE_NS}"
|
||||||
fi
|
fi
|
||||||
echo -e "\nRestore command:"
|
echo -e "\nRestore command:"
|
||||||
|
Loading…
Reference in New Issue
Block a user