Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 1218 → Rev 1219

/scripts/alcasar-netflow.sh
1,12 → 1,11
#!/bin/bash
 
NOW=$(date +%G%m%d)
DIR_SAVE="var/Save/logs/firwall/"
NOW=$(date +%G%m%d-%Hh%M)
DIR_LOG="/var/log/nfsen/profiles-data/live/ipt_netflow"
DIR_SAVE="/var/Save/logs/firewall"
EXPIRE_DELAY=7
 
cd $DIR_SAVE
find $DIR_LOG -mtime $EXPIRE_DELAY -name 'nfcapd.*' | xargs tar -czf tracability.log-$NOW.tar.gz;
cd $DIR_LOG
find . -mtime 0 -mtime -$EXPIRE_DELAY -name 'nfcapd.[0-9]*' | xargs tar -czf $DIR_SAVE/tracability.log-$NOW.tar.gz;
 
exit 0