Subversion Repositories ALCASAR

Rev

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

Rev 3061 Rev 3202
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-mysql.sh 3061 2022-08-16 11:12:08Z rexy $
2
# $Id: alcasar-mysql.sh 3202 2024-06-01 17:10:35Z rexy $
3
 
3
 
4
# alcasar-mysql.sh
4
# alcasar-mysql.sh
5
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
5
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
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 117... Line 117...
117
				mysql -u $DB_USER -p$DB_PASS < $2
117
				mysql -u $DB_USER -p$DB_PASS < $2
118
				stop_acct	
118
				stop_acct	
119
				;;
119
				;;
120
			esac
120
			esac
121
			migrationsPath="$DIR_BIN/alcasar-db-migrations"
121
			migrationsPath="$DIR_BIN/alcasar-db-migrations"
-
 
122
			"$migrationsPath/alcasar-migration_db-3.2.0.sh"
122
			"$migrationsPath/alcasar-migration-3.2.0_dbStructure.sh"
123
			"$migrationsPath/alcasar-migration_db-3.3.0.sh"
123
			"$migrationsPath/alcasar-migration-3.3.0_dbRadiusAttrs.sh"
124
			"$migrationsPath/alcasar-migration_db-3.3.1.sh"
124
			"$migrationsPath/alcasar-migration-3.3.1_dbRadiusAttrs.sh"
125
			"$migrationsPath/alcasar-migration_db-3.7.0.sh"
125
		fi
126
		fi
126
		;;
127
		;;
127
	-r | --raz | -raz)
128
	-r | --raz | -raz)
128
		mysqldump -u $DB_USER -p$DB_PASS --opt -BcQC  $DB_RADIUS > $rep_tr/$fichier
129
		mysqldump -u $DB_USER -p$DB_PASS --opt -BcQC  $DB_RADIUS > $rep_tr/$fichier
129
		gzip -f $rep_tr/$fichier
130
		gzip -f $rep_tr/$fichier