Skip to content

Commit

Permalink
hide pswd for backup recovery command
Browse files Browse the repository at this point in the history
  • Loading branch information
vmakarenko committed Dec 6, 2018
1 parent aefb390 commit dbeba57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion seafile_keeper_ext/scripts/keeper_backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function backup_databases () {
TIMESTAMP=$(get_timestamp | tr ' ' '_')
mysqldump -h${__DB_HOST__} -u${__DB_USER__} -p${__DB_PASSWORD__} -P${__DB_PORT__} --verbose ${i}-db | gzip > ${DB_BACKUP_DIR}/${TIMESTAMP}.${i}-db.sql.gz
[ $? -ne 0 ] && err_and_exit "Cannot dump ${i}-db"
RECOVERY_COMMANDS+=(echo "mysql -u${__DB_USER__} -p${__DB_PASSWORD__} -P${__DB_PORT__} ${i} < ${DB_BACKUP_DIR}/${TIMESTAMP}.${i}-db.sql.gz")
RECOVERY_COMMANDS+=(echo "mysql -u${__DB_USER__} -p******** -P${__DB_PORT__} ${i} < ${DB_BACKUP_DIR}/${TIMESTAMP}.${i}-db.sql.gz")
done
echo_green "Databases backup is OK"

Expand Down

0 comments on commit dbeba57

Please sign in to comment.