This commit is contained in:
2022-06-13 21:14:29 -05:00
parent 002be2124e
commit 1ca6b05517
2 changed files with 10 additions and 8 deletions

View File

@@ -4,7 +4,6 @@ source /opt/idssys/defaults/colors.inc
source /opt/idssys/defaults/default.inc
source /opt/idssys/pibackup/settings.inc
MountPoint="/mnt/veeam-backups"
BackupDir="${MountPoint}/${hostname}"
logfile=/opt/idssys/pibackup/logfile

17
run.sh
View File

@@ -5,11 +5,6 @@ source /opt/idssys/defaults/default.inc
source /opt/idssys/pibackup/settings.inc
if [[ "${noheader}" != *" ${1} "* ]] && [[ "${noheader}" != *" ${2} "* ]]; then
# if [ "${1}" = "gui" ]; then
# DISP_HEADER
# fi
# if [ "${1}" != "guiX" ]; then
if curl -s --head --request GET https://git.schroedercity.com | grep "HTTP/2 200" > /dev/null; then
if [ "${2}" != "q" ]; then
echo -en "${idsCL[LightCyan]}Checking for updates...${idsCL[Default]}"
@@ -54,6 +49,14 @@ if [[ "${noheader}" != *" ${1} "* ]] && [[ "${noheader}" != *" ${2} "* ]]; then
fi
fi
/opt/idssys/pibackup/pibackup.sh ${1} ${2}
if [ ! -f ${MountPoint}/mounted ]; then
mount.cifs ${ServerName} ${MountPoint} -o user=${UserName},password=${Password}
sleep 10
fi
if [ -f ${MountPoint}/mounted ]; then
/opt/idssys/pibackup/pibackup.sh ${1} ${2}
else
echo "Backup folder is not mounted (${MountPoint})"
exit 1
fi
exit 0