mirror of
https://github.com/tiredofit/docker-db-backup.git
synced 2025-12-21 13:23:12 +01:00
restore - remove reference to DB_DUMP_TARGET and instead use DEFAULT_BACKUP_PATH
This commit is contained in:
@@ -29,7 +29,6 @@ bdgy="\e[100m" # Background Color Dark Gray
|
|||||||
blr="\e[101m" # Background Color Light Red
|
blr="\e[101m" # Background Color Light Red
|
||||||
boff="\e[49m" # Background Color Off
|
boff="\e[49m" # Background Color Off
|
||||||
|
|
||||||
bootstrap_variables
|
|
||||||
|
|
||||||
if [ -z "${1}" ] ; then
|
if [ -z "${1}" ] ; then
|
||||||
interactive_mode=true
|
interactive_mode=true
|
||||||
@@ -78,7 +77,7 @@ fi
|
|||||||
get_filename() {
|
get_filename() {
|
||||||
COLUMNS=12
|
COLUMNS=12
|
||||||
prompt="Please select a file to restore:"
|
prompt="Please select a file to restore:"
|
||||||
options=( $(find "${DB_DUMP_TARGET}" -type f -maxdepth 1 -not -name '*.md5' -not -name '*.sha1' -print0 | sort -z | xargs -0) )
|
options=( $(find "${DEFAULT_BACKUP_PATH}" -type f -maxdepth 2 -not -name '*.md5' -not -name '*.sha1' -print0 | sort -z | xargs -0) )
|
||||||
PS3="$prompt "
|
PS3="$prompt "
|
||||||
select opt in "${options[@]}" "Custom" "Quit" ; do
|
select opt in "${options[@]}" "Custom" "Quit" ; do
|
||||||
if (( REPLY == 2 + ${#options[@]} )) ; then
|
if (( REPLY == 2 + ${#options[@]} )) ; then
|
||||||
|
|||||||
Reference in New Issue
Block a user