Closed Markpayne01 closed 5 years ago
Hi Mark,
Thanks for reporting this issue. The way we were handing the dry-run was overly complicated. So I've already completely reworked this feature in 1.1.10. It now just prints out the mysqldump commands that would be run during a backup.
$ sudo holland bk --dry-run
Holland 1.1.10 started with pid 27132
--- Starting dry run ---
Creating backup path /var/spool/holland/default/20190117_091733
Estimating size of mysqldump backup
Estimated Backup Size: 294.25MB
Using Historic Space Estimate: Checking for information in /var/spool/holland/default/newest/backup.conf
Last backup used 92.08MB
Adjusting estimated size to last backup total * 1.1: 101.28MB
Starting backup[default/20190117_091733] via plugin mysqldump
Running in dry-run mode.
Using mysqldump executable: /usr/bin/mysqldump
mysqldump version 10.2.19
Using mysqldump option --flush-privileges
Using mysqldump option --routines
Using mysqldump option --events
Using mysqldump option --max-allowed-packet=128M
Using gzip compression level 1 with args
Wrote backup manifest /var/spool/holland/default/20190117_091733/backup_data/MANIFEST.txt
Dry Run: /usr/bin/mysqldump --defaults-file=/var/spool/holland/default/20190117_091733/my.cnf --flush-privileges --routines --events --max-allowed-packet=128M --single-transaction employee1
Dry Run: /usr/bin/mysqldump --defaults-file=/var/spool/holland/default/20190117_091733/my.cnf --flush-privileges --routines --events --max-allowed-packet=128M --single-transaction employees
Dry Run: /usr/bin/mysqldump --defaults-file=/var/spool/holland/default/20190117_091733/my.cnf --flush-privileges --routines --events --max-allowed-packet=128M --lock-tables mysql
Dry Run: /usr/bin/mysqldump --defaults-file=/var/spool/holland/default/20190117_091733/my.cnf --flush-privileges --routines --events --max-allowed-packet=128M --single-transaction test
Backup completed in 0.59 seconds
--- Ending dry run ---
Version holland-1.1.9-1 creates a backup when called with the --dry-run flag.
This can be reproduced using 3 SSH sessions to the server:
You will see in the holland logs
Tested this on version 1.1.8, the --dry-run there works as expected.
Please let me know if you need any further details.
Thanks, Mark