Mysqldump Options
Hi i have some backup script using mysqldump.
like this
mysqldump --defaults-extra-file=/etc/my.cnf.d/mysqldump.cnf -CfQq --max-allowed-packet=1G --hex-blob --order-by-primary --single-transaction --routines=true --triggers=true --no-data=false database_name | sed '1 c\#'another_dbname''| sed '2 c\#'database_name'' | sed '3 c\#'mysql-bin-changelog.102985'' | sed '4 c\#'mysql-bin-changelog.102985'' | sed '5 c\#'4643452'' | sed '6 c\#'4643452'' | gzip -c | openssl enc -e -aes-256-cbc -md sha1 -k database_name.sql.enc > "/media/db-backup/migration/database_name.sql.enc";
backup size 100mb
but the result is different when i not using this part
| sed '1 c\#'another_dbname''| sed '2 c\#'database_name'' | sed '3 c\#'mysql-bin-changelog.102985'' | sed '4 c\#'mysql-bin-changelog.102985'' | sed '5 c\#'4643452'' | sed '6 c\#'4643452''
backup size 126mb
can explain more about that script why using binlogname backup size is so small and when i restore backup file with the option the is not currently same with the source when i backup
thanks