Subversion Repositories ALCASAR

Rev

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

Rev 2826 Rev 2829
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-conf.sh 2826 2020-06-01 20:44:27Z rexy $
2
# $Id: alcasar-conf.sh 2829 2020-06-01 21:56:41Z rexy $
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 98... Line 98...
98
		fi
98
		fi
99
# archive file creation
99
# archive file creation
100
		cd /var/tmp || { echo "Unable to find /var/tmp directory"; }
100
		cd /var/tmp || { echo "Unable to find /var/tmp directory"; }
101
		tar -cf alcasar-conf.tar conf/
101
		tar -cf alcasar-conf.tar conf/
102
		gzip -f alcasar-conf.tar
102
		gzip -f alcasar-conf.tar
-
 
103
		new="$(date +%G%m%d-%Hh%M)"			# date & hour of files 
-
 
104
		cp alcasar-conf.tar.gz /var/SAVE/conf_file/alcasar-conf-$new.tar.gz
103
		rm -rf $DIR_UPDATE
105
		rm -rf $DIR_UPDATE
104
		;;
106
		;;
105
 
107
 
106
	--load|-load)
108
	--load|-load)
107
		cd /var/tmp || { echo "Unable to find /var/tmp directory"; }
109
		cd /var/tmp || { echo "Unable to find /var/tmp directory"; }