From dbeba572f83c979cdcca3be54ae22f896a9c427a Mon Sep 17 00:00:00 2001 From: Vlad Makarenko Date: Thu, 6 Dec 2018 11:15:55 +0100 Subject: [PATCH] hide pswd for backup recovery command --- seafile_keeper_ext/scripts/keeper_backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seafile_keeper_ext/scripts/keeper_backup.sh b/seafile_keeper_ext/scripts/keeper_backup.sh index 819d249b..ad427b93 100755 --- a/seafile_keeper_ext/scripts/keeper_backup.sh +++ b/seafile_keeper_ext/scripts/keeper_backup.sh @@ -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"