Subversion Repositories ALCASAR

Rev

Rev 1214 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1214 Rev 1217
1
#!/bin/bash
1
#!/bin/bash
2
 
2
 
3
NOW=$(date +%G%m%d)
3
NOW=$(date +%G%m%d)
4
DIR_SAVE="var/Save/logs/firwall/"
4
DIR_SAVE="var/Save/logs/firwall/"
5
DIR_LOG="/var/log/nfsen/profiles-data/live/ipt_netflow"
5
DIR_LOG="/var/log/nfsen/profiles-data/live/ipt_netflow"
6
DIR_SAVE="/var/Save/logs/firewall"
6
DIR_SAVE="/var/Save/logs/firewall"
7
EXPIRE_DELAY=7
7
EXPIRE_DELAY=7
8
 
8
 
9
cd $DIR_SAVE
9
cd $DIR_SAVE
10
find $DIR_LOG -mtime +$EXPIRE_DELAY -name 'nfcapd.*' | xargs tar -czf tracability.log-$NOW.tar.gz;
10
find $DIR_LOG -mtime $EXPIRE_DELAY -name 'nfcapd.*' | xargs tar -czf tracability.log-$NOW.tar.gz;
11
 
11
 
12
exit 0
12
exit 0
13
 
13