Subversion Repositories ALCASAR

Rev

Details | Last modification | View Log

Rev Author Line No. Line
1 root 1
#!/bin/sh
64 franck 2
# $Id: alcasar-mondo.sh 518 2011-03-25 16:04:12Z stephane $
1 root 3
# by 3abtux (with debug helps by Michel GAUDET)
518 stephane 4
 
1 root 5
DIR_TMP="/var/log/mondo"
6
DIR_ISO="/var/Save/ISO"
7
date=`date +%F-%Hh%M`
8
HOSTNAME=`hostname -s`
9
ROOT="root"
10
ISOFile=$HOSTNAME-$date
11
EXCLUDE="$DIR_ISO $DIR_TMP /tmp /mnt /media" 
12
 
13
echo "Les répertoires exclus de l'image ISO sont :  $EXCLUDE "
14
echo "##################################################"
15
echo "# Création de l'archive ISO système d'Alcasar  ! #"
16
echo "##################################################"
17
echo ""
18
echo "--------------------------------------------------------"
19
echo "Les ISOs seront disponibles dans le répertoire suivant :"
20
echo "==-->   $DIR_ISO"
21
/bin/touch $DIR_ISO/creation-of-the-current-archive
22
mkdir $DIR_TMP
23
/bin/nice -n 19 /usr/sbin/mondoarchive -p $ISOFile -Oi -s 4300m -d $DIR_ISO -T $DIR_TMP -S $DIR_TMP -E "$EXCLUDE"
24
cd $DIR_ISO
25
for i in `ls *.iso` ;do
26
	/usr/bin/md5sum $i > $i.md5
27
done
28
rm -rf $DIR_TMP/mondo.scratch.* $DIR_TMP/tmp.mondo.* $DIR_TMP/.*.dat
29
rm -f $DIR_ISO/creation-of-the-current-archive
30
exit 0