Now it makes a tar.xz with “run” directory contents and remove them before running commands
This commit is contained in:
parent
242b728f43
commit
cf158ceb73
1 changed files with 4 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue