#!/bin/bash
disk_mount="192.168.1.2:/mnt/nfs_disk_daily"
folder_mount="/mnt/nfs_disk_daily"
log_file="/var/log/rsnapshot_daily.log"
var_limit="0"
LIMIT="5"
while [ ${var_limit} -lt ${LIMIT} ]
do
echo "loop ${var_limit} \n" >> ${log_file}
echo "sleep 5 sec \n" >> ${log_file}
sleep 5
echo "check mount \n" >> ${log_file}
sleep 5
/bin/mount -t nfs ${disk_mount} ${folder_mount}
if mount | grep ${disk_mount} > /dev/null; then
echo "mount ${folder_mount}" >> ${log_file}
/usr/bin/rsnapshot -c /etc/rsnapshot_daily.conf daily
exit 0
else
let check=${check}+1
echo "${folder_mount} not mount \n" >> ${log_file}
fi
var_limit=$[${var_limit}+1]
echo "--- next loop --- \n" >> ${log_file}
done
echo -e "Program stop with error. Please contact your system administrator or God." >> ${log_file}
exit 1
str1 = """text[{"requestId":"1570025055889434-3249353475-man1-4890","title":"село Александрия""address":"Россия, Республика Республика, район, село ","coordinates":[47.574769,42.318674]]}text"""
print(str1[4:-4])
Хотя я вот о проблемах eoip не слышал.