Now it makes a tar.xz with “run” directory contents and remove them before running commands

This commit is contained in:
pezcurrel 2022-12-28 05:25:56 +01:00
parent 242b728f43
commit cf158ceb73

View file

@ -47,6 +47,10 @@ function logcmd {
echo "----------[ inizio esecuzione crawl.bash ]----------" >> $LOGF
tar cJf run-`date +%Y-%m-%d--%H.%M.%S`.tar.xz run/
rm run/*
logcmd "php mustool.php updstats" "mustool.updstats.log"
[ "$2" == "dopeers" ] && logcmd "php peerscrawl.php -e peerscrawl.exclude -E" "peerscrawl.log"