Changeset 200 for bin/backup_db.sh
- Timestamp:
- Apr 27, 2009, 9:46:37 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
bin/backup_db.sh
r199 r200 8 8 cd /tmp/backup 9 9 10 DB_NAME=forum 11 echo ${DB_NAME} 12 mysqldump --user=${DB_USER} --password=${DB_PASSWORD} ${DB_NAME} > ${DB_NAME}.sql 13 tar -c -z ${DB_NAME}.sql > ${DB_BACKUP_DIR}${DB_NAME}/${DB_NAME}_$(date +"%Y-%m-%d").tar.gz 14 unlink ${DB_NAME}.sql 15 10 16 DB_NAME=is 11 17 echo ${DB_NAME} 12 18 mysqldump --user=${DB_USER} --password=${DB_PASSWORD} ${DB_NAME} > ${DB_NAME}.sql 13 tar -c -z is.sql > ${DB_BACKUP_DIR}${DB_NAME}/${DB_NAME}_$(date +"%Y-%m-%d").tar.gz19 tar -c -z ${DB_NAME}.sql > ${DB_BACKUP_DIR}${DB_NAME}/${DB_NAME}_$(date +"%Y-%m-%d").tar.gz 14 20 unlink ${DB_NAME}.sql 15 21 … … 17 23 echo ${DB_NAME} 18 24 mysqldump --user=${DB_USER} --password=${DB_PASSWORD} ${DB_NAME} > ${DB_NAME}.sql 19 tar -c -z is.sql > ${DB_BACKUP_DIR}${DB_NAME}/${DB_NAME}_$(date +"%Y-%m-%d").tar.gz25 tar -c -z ${DB_NAME}.sql > ${DB_BACKUP_DIR}${DB_NAME}/${DB_NAME}_$(date +"%Y-%m-%d").tar.gz 20 26 unlink ${DB_NAME}.sql 21 27
Note:
See TracChangeset
for help on using the changeset viewer.