Changeset 18669
- Timestamp:
- 11/02/16 03:32:52 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Transfer/BackupDatabase.sh
r17594 r18669 50 50 echo "writing create commands for database '"$dbname"' to "$command >> $logfile 2>&1 51 51 # commands to create db 52 if ! mysqldump --host=localhost --database $dbname -u dump --no-data >| $command 2>> $logfile52 if ! mysqldump --host=localhost --databases $dbname -u dump --no-data >| $command 2>> $logfile 53 53 then 54 54 printprocesslog "ERROR mysqldump failed for database '"$dbname"'" … … 60 60 echo "writing database '"$dbname"' to "$sqlfile >> $logfile 2>&1 61 61 # mysqldump of full DB 62 if ! mysqldump --host=localhost --database $dbname -u dump >| $sqlfile 2>> $logfile62 if ! mysqldump --host=localhost --databases $dbname -u dump >| $sqlfile 2>> $logfile 63 63 then 64 64 printprocesslog "ERROR mysqldump failed for database '"$dbname"'"
Note:
See TracChangeset
for help on using the changeset viewer.