Made additional changes to allow the import to work and do the right
[eq/.git] / bin / backup_phpgw_db
1 #!/bin/bash
2
3 MNTPNT="/backup"
4 MOUNTIT=1
5 DSTDIR="/backup/mysql/"
6 DBNAME=phpgroupware
7 DBUSER=phpgroupware
8 DBPASS=phpgroupware
9
10 [ $MOUNTIT == 1 ] && mount -w -o remount $MNTPNT 
11 /usr/bin/mysqldump --databases $DBNAME -u $DBUSER --password=$DBPASS -c > $DSTDIR/mysql_phpgw_backup.sql
12 ls -l $DSTDIR/mysql_phpgw_backup.sql
13 [ $MOUNTIT == 1 ] && mount -r -o remount $MNTPNT
14