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

add compression of logs

parent a969c1f1
No related branches found
No related tags found
1 merge request!325046 finetune restic params
......@@ -197,6 +197,11 @@ EOFbackupinfo
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 {} \;
echo
echo "INFO: $(date) - cleanup logs"
echo find "${DIR_LOGS}" -mtime +28 -delete -print
find "${DIR_LOGS}" -mtime +28 -delete -print
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment