Subversion Repositories ALCASAR

Rev

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

Rev 2829 Rev 2830
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-conf.sh 2829 2020-06-01 21:56:41Z rexy $
2
# $Id: alcasar-conf.sh 2830 2020-06-04 20:02:48Z 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 99... Line 99...
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 
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
104
		cp alcasar-conf.tar.gz /var/Save/conf_file/alcasar-conf-$new.tar.gz
105
		rm -rf $DIR_UPDATE
105
		rm -rf $DIR_UPDATE
106
		;;
106
		;;
107
 
107
 
108
	--load|-load)
108
	--load|-load)
109
		cd /var/tmp || { echo "Unable to find /var/tmp directory"; }
109
		cd /var/tmp || { echo "Unable to find /var/tmp directory"; }