various changes
This commit is contained in:
parent
0397127de1
commit
8f5e485d45
3 changed files with 18 additions and 1 deletions
|
@ -30,11 +30,11 @@ function backup() {
|
|||
--iexclude "tmp" \
|
||||
--exclude-if-present ".nobackup" \
|
||||
--hostname "$host" \
|
||||
--password-file "$passwd_file" \
|
||||
--repo "$repo" \
|
||||
--tag "$tag" \
|
||||
--verbose \
|
||||
`[[ -s $args ]] && echo "$args"` "$path" \
|
||||
--dry-run
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -75,6 +75,7 @@ function test_path() {
|
|||
|
||||
host="de01"
|
||||
repo="b2:zio-euc-servers"
|
||||
passwd_file=""
|
||||
pre_script=""
|
||||
post_script=""
|
||||
services=()
|
||||
|
@ -89,6 +90,12 @@ else
|
|||
[[ ! -z $(get_prop "$env_dir/$host.var" SERVICES) ]] && \
|
||||
IFS=';' read -ra services <<< "$(get_prop "$env_dir/$host.var" SERVICES)"
|
||||
fi
|
||||
|
||||
if [[ -f "$env_dir/passwd" ]]; then
|
||||
passwd_file="$env_dir/passwd"
|
||||
else
|
||||
say_warn "Password file ($passwd_file) not found."
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ ! -z $pre_script ]]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue