From b4dfbae9bf235f7e7b3827ddce01e09f77881414 Mon Sep 17 00:00:00 2001 From: ycz008 Date: Fri, 26 Jul 2024 15:34:10 +0800 Subject: [PATCH] mysqldump dir --- build-image/mysql/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-image/mysql/entrypoint.sh b/build-image/mysql/entrypoint.sh index 3cf7292..33bccb5 100755 --- a/build-image/mysql/entrypoint.sh +++ b/build-image/mysql/entrypoint.sh @@ -4,7 +4,7 @@ datetime=`date +%Y%m%d%H` mysqldump -h ${HOST} -P ${PORT} -u backup -p${PASSWORD} --single-transaction --set-gtid-purged=OFF --all-databases > bfs-application-${datetime}.sql if (($?==0));then - aws s3 cp bfs-application-${datetime}.sql s3://bfs-pkg-storage/mysql/history/ + aws s3 cp bfs-application-${datetime}.sql s3://bfs-pkg-storage/mysql/backup/ else echo "Backup to failed" exit 1