Subversion Repositories ALCASAR

Rev

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

Rev 642 Rev 672
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/bash
2
# $Id: alcasar-log-clean.sh 642 2011-06-21 20:26:37Z franck $
2
# $Id: alcasar-log-clean.sh 672 2011-07-08 15:34:22Z richard $
-
 
3
 
-
 
4
# alcasar-log-clean.sh
-
 
5
# by Franck BOUIJOUX
-
 
6
# This script is distributed under the Gnu General Public License (GPL)
-
 
7
 
3
# script de nettoyage des archives supérieures à 1 an ( 365 jours)
8
# nettoyage des archives supérieures à 1 an (365 jours)
-
 
9
# delete backup files older than one year (365 days)
-
 
10
 
4
DATE=`date +%F`
11
DATE=`date +%F`
5
REP="/var/log/squid/ /var/log/httpd/ /var/log/firewall/ /var/Save/base/ /var/Save/logs/firewall/ /var/Save/logs/squid/ /var/Save/logs/httpd/"
12
REP="/var/log/squid/ /var/log/httpd/ /var/log/firewall/ /var/Save/base/ /var/Save/logs/firewall/ /var/Save/logs/squid/ /var/Save/logs/httpd/"
6
delay=365
13
delay=365
7
 
14
 
8
for i in $REP
15
for i in $REP