mysqldump dir

main
ycz008 2024-07-26 15:34:10 +08:00
parent a61d9e68d3
commit b4dfbae9bf
1 changed files with 1 additions and 1 deletions

View File

@ -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