Subversion Repositories ALCASAR

Rev

Rev 1769 | Rev 1795 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1769 Rev 1777
Line 1... Line 1...
1
#/bin/bash
1
#/bin/bash
2
# $Id: alcasar-conf.sh 1769 2016-01-17 20:39:23Z richard $
2
# $Id: alcasar-conf.sh 1777 2016-01-19 21:19:18Z richard $
3
 
3
 
4
# alcasar-conf.sh
4
# alcasar-conf.sh
5
# by REXY
5
# by 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 68... Line 68...
68
	--create|-create)	
68
	--create|-create)	
69
		[ -d $DIR_UPDATE ] && rm -rf $DIR_UPDATE
69
		[ -d $DIR_UPDATE ] && rm -rf $DIR_UPDATE
70
		mkdir $DIR_UPDATE
70
		mkdir $DIR_UPDATE
71
# backup the users database
71
# backup the users database
72
		$DIR_SBIN/alcasar-mysql.sh -dump
72
		$DIR_SBIN/alcasar-mysql.sh -dump
73
		cp /var/Save/base/`ls /var/Save/base|tail -1` $DIR_UPDATE
73
		cp /var/Save/base/`ls -1t /var/Save/base|head -1` $DIR_UPDATE
74
# backup the logo
74
# backup the logo
75
		cp -f $DIR_WEB/images/organisme.png $DIR_UPDATE
75
		cp -f $DIR_WEB/images/organisme.png $DIR_UPDATE
76
# backup Dansguardian files
76
# backup Dansguardian files
77
		cp -f /etc/dansguardian/lists/exceptioniplist $DIR_UPDATE
77
		cp -f /etc/dansguardian/lists/exceptioniplist $DIR_UPDATE
78
		cp -f /etc/dansguardian/lists/urlregexplist $DIR_UPDATE
78
		cp -f /etc/dansguardian/lists/urlregexplist $DIR_UPDATE