various changes
parent
0397127de1
commit
8f5e485d45
|
@ -28,3 +28,12 @@
|
|||
/usr/local/sbin/*
|
||||
!/usr/local/sbin/update-rootfs
|
||||
!/usr/local/sbin/zio-backup
|
||||
|
||||
# /var/
|
||||
!/var/
|
||||
/var/*
|
||||
|
||||
# /var/zio-backup/
|
||||
!/var/zio-backup/
|
||||
/var/zio-backup/*
|
||||
!/var/zio-backup/passwd
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
9%62hqWZwgLWEJ4@k7gG3*o4Zt#%dBiA
|
Loading…
Reference in New Issue