Subversion Repositories ALCASAR

Rev

Details | Last modification | View Log

Rev Author Line No. Line
1214 crox53 1
#!/bin/bash
2
 
1219 crox53 3
NOW=$(date +%G%m%d-%Hh%M)
1214 crox53 4
DIR_LOG="/var/log/nfsen/profiles-data/live/ipt_netflow"
5
DIR_SAVE="/var/Save/logs/firewall"
6
EXPIRE_DELAY=7
7
 
1219 crox53 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;
1214 crox53 10
 
11
exit 0