Skip to content
Snippets Groups Projects
Commit 288ac3d6 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

save space: do not log transfer twice

parent 2a47da88
Branches
No related tags found
1 merge request!325046 finetune restic params
......@@ -179,7 +179,8 @@ EOFbackupinfo
cat "$STORAGEFILE" >>"$JOB_LOGFILE"
echo "INFO: $(date) - Sending data to storage... ${DIR_SELF}/transfer.sh $JOBDEF_TYPE" | tee -a "$JOB_LOGFILE"
touch "${JOB_DONEFILE}.02.STARTTRANSFER"
"${DIR_SELF}"/transfer.sh $JOBDEF_TYPE "$JOBDEF_AUTO" 2>&1 | tee -a "$JOB_LOGFILE"
# "${DIR_SELF}"/transfer.sh $JOBDEF_TYPE "$JOBDEF_AUTO" 2>&1 | tee -a "$JOB_LOGFILE"
"${DIR_SELF}"/transfer.sh $JOBDEF_TYPE "$JOBDEF_AUTO" 2>&1
rcTransfer=$?
else
......@@ -193,10 +194,6 @@ EOFbackupinfo
touch "${JOB_DONEFILE}.03.DONE"
echo
echo "log for this executed job is"
ls -l "$JOB_LOGFILE"
echo
echo "INFO: $(date) - compress older logs"
echo find "${DIR_LOGS}" -name "*.log" -mtime +2 -print -exec gzip {} \;
find "${DIR_LOGS}" -name "*.log" -mtime +2 -print -exec gzip {} \;
......@@ -209,6 +206,9 @@ EOFbackupinfo
echo STATUS $0 exit with final returncode rc=$rcBackup | tee -a "$JOB_LOGFILE"
echo
echo "log for this executed job is"
ls -l "$JOB_LOGFILE"
echo
else
echo "Nothing to do."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment