Changeset 198 for bin/backup_db.sh
- Timestamp:
- Apr 27, 2009, 9:37:08 AM (16 years ago)
- Location:
- bin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
bin
-
Property svn:ignore
set to
config.sh
-
Property svn:ignore
set to
-
bin/backup_db.sh
r115 r198 1 1 #!/bin/sh 2 2 3 DB_USER=centrala 4 DB_PASSWORD=peknejhnus 3 . config.sh 5 4 6 5 echo Zaloha database... … … 11 10 echo IS 12 11 13 mysqldump --user=${DB_USER} --password=${DB_PASSWORD} --opt is> is.sql12 mysqldump --user=${DB_USER} --password=${DB_PASSWORD} centrala > is.sql 14 13 15 tar -c -z is.sql > /a/backup/database/is_$(date +"%Y-%m-%d").tar.gz14 tar -c -z is.sql > ${DB_BACKUP_DIR}centrala/is_$(date +"%Y-%m-%d").tar.gz 16 15 17 16 unlink is.sql … … 21 20 mysqldump --user=${DB_USER} --password=${DB_PASSWORD} --opt share > share.sql 22 21 23 tar -c -z share.sql > /a/backup/database/share_$(date +"%Y-%m-%d").tar.gz22 tar -c -z share.sql > ${DB_BACKUP_DIR}share/share_$(date +"%Y-%m-%d").tar.gz 24 23 25 24 unlink share.sql
Note:
See TracChangeset
for help on using the changeset viewer.