Subversion Repositories ALCASAR

Rev

Rev 1219 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1219 Rev 1358
Line 4... Line 4...
4
DIR_LOG="/var/log/nfsen/profiles-data/live/ipt_netflow"
4
DIR_LOG="/var/log/nfsen/profiles-data/live/ipt_netflow"
5
DIR_SAVE="/var/Save/logs/firewall"
5
DIR_SAVE="/var/Save/logs/firewall"
6
EXPIRE_DELAY=7
6
EXPIRE_DELAY=7
7
 
7
 
8
cd $DIR_LOG
8
cd $DIR_LOG
9
find . -mtime 0 -mtime -$EXPIRE_DELAY -name 'nfcapd.[0-9]*' | xargs tar -czf $DIR_SAVE/tracability.log-$NOW.tar.gz;
9
find . -mtime 0 -mtime -$EXPIRE_DELAY -name 'nfcapd.[0-9]*' | xargs tar -czf $DIR_SAVE/traceability.log-$NOW.tar.gz;
10
 
10
 
11
exit 0
11
exit 0