Quantcast
Channel: MySQL Forums - Backup
Viewing all articles
Browse latest Browse all 537

backup each db or all together? (no replies)

$
0
0
5.1.42GA server with several dozen databases that range from hundreds of records to billions. Currently we backup the whole thing 1x/week to a gzipped file that ends up around 500G. Restoring anything from such a beast would be a difficult task.

Im wondering if it would make sense to backup each DB to a separate file. If I did this, how would the binary log 'flush' be handled? Do it for the first db dump or for each?

Currently we use: mysqldump -h<server> -u<user> -p<pw> --single-transaction --flush-logs --master-data=2 --all-databases --delete-master-logs --quick --routines --triggers | gzip > dump_all.sql.gz

Viewing all articles
Browse latest Browse all 537

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>