mysqldump dir
parent
a61d9e68d3
commit
b4dfbae9bf
|
@ -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
|
mysqldump -h ${HOST} -P ${PORT} -u backup -p${PASSWORD} --single-transaction --set-gtid-purged=OFF --all-databases > bfs-application-${datetime}.sql
|
||||||
if (($?==0));then
|
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
|
else
|
||||||
echo "Backup to failed"
|
echo "Backup to failed"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in New Issue