Subversion Repositories ALCASAR

Rev

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

Rev 1358 Rev 1400
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
 
2
 
3
NOW=$(date +%G%m%d-%Hh%M)
3
NOW=$(date +%G%m%d-%Hh%M)
4
DIR_LOG="/var/log/nfsen/profiles-data/live/ipt_netflow"
4
DIR_LOG="/var/log/nfsen/profiles-data/live/alcasar_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/traceability.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;