Subversion Repositories ALCASAR

Rev

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

Rev 3230 Rev 3265
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-archive.sh 3230 2024-11-06 23:38:15Z rexy $
2
# $Id: alcasar-archive.sh 3265 2025-04-09 21:22:46Z rexy $
3
 
3
 
4
# alcasar-archive.sh
4
# alcasar-archive.sh
5
# by Franck BOUIJOUX and REXY
5
# by Franck BOUIJOUX and REXY
6
# This script is distributed under the Gnu General Public License (GPL)
6
# This script is distributed under the Gnu General Public License (GPL)
7
 
7
 
Line 43... Line 43...
43
 
43
 
44
 
44
 
45
function cleanup() {
45
function cleanup() {
46
	# Nettoyage des fichiers archives
46
	# Nettoyage des fichiers archives
47
	cd $DIR_SAVE
47
	cd $DIR_SAVE
48
	find . \( -mtime +$EXPIRE_DAY \) -a \( -name '*.gz' -o -name '*.sql' -o -name '' -o -name 'gpg' \) -exec rm -f {} \;
48
	find . \( -mtime +$EXPIRE_DAY \) -a \( -name '*.gz' -o -name '*.sql' -o -name '' -o -name 'gpg' -o -name '*.pdf' \) -exec rm -f {} \;
49
} # end function cleanup
49
} # end function cleanup
50
 
50
 
51
 
51
 
52
function crypt() {
52
function crypt() {
53
	# Chiffrement des logs dans /var/Save/
53
	# Chiffrement des logs dans /var/Save/