Print additional infos about errors to std_out.

This commit is contained in:
2019-06-09 17:08:15 +02:00
parent 7013d8644f
commit ef5848f4ea
8 changed files with 105 additions and 14 deletions

View File

@@ -19,6 +19,8 @@
if $mount_netdir ; then
if [ $srcHost != "localhost" ] || $_via_ssh_tunnel ;then
print_error_stdout "Mounting network directories is only possible for localhost - yet:\n $(cat $err_Log)"
echolog ""
echolog "\t[ERROR] Mounting network directories is only possible for localhost - yet"
exit 1
else
@@ -31,6 +33,8 @@ if $mount_netdir ; then
sleep 5
if ! df | grep "$backup_dir" > /dev/null 2>&1 ;then
print_error_stdout "Cannot mount network directory to \"$backup_dir\":\n $(cat $err_Log)"
echolog ""
echolog "\t[ERROR] Cannot mount network directory to \"$backup_dir\""
exit 1
fi
@@ -49,6 +53,8 @@ backup_dir=$backup_dir $script_dir/dir_backup.sh
if $mount_netdir ; then
if [ $srcHost != "localhost" ];then
print_error_stdout "Mounting network directories is only possible for localhost - yet:\n $(cat $err_Log)"
echolog ""
echolog "\t[ERROR] Mounting network directories is only possible for localhost - yet"
exit 1
else