Subversion Repositories ALCASAR

Rev

Rev 1358 | Go to most recent revision | Details | Compare with Previous | 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)
1400 richard 4
DIR_LOG="/var/log/nfsen/profiles-data/live/alcasar_netflow"
1214 crox53 5
DIR_SAVE="/var/Save/logs/firewall"
6
EXPIRE_DELAY=7
7
 
1219 crox53 8
cd $DIR_LOG
1358 richard 9
find . -mtime 0 -mtime -$EXPIRE_DELAY -name 'nfcapd.[0-9]*' | xargs tar -czf $DIR_SAVE/traceability.log-$NOW.tar.gz;
1214 crox53 10
 
11
exit 0