xtrabackup --prepare prints a few lines to stdout
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraBackup moved to https://jira.percona.com/projects/PXB |
New
|
Undecided
|
Unassigned |
Bug Description
Related to the --stream feature of xtrabackup, it is designed to print any informational output to stderr. Also when not using --stream, this seems to be the case.
I like to run xtrabackup with 2>, ie I redirect the stderr output into a log file.
If I use
XTRABACKUP=
$XTRABACKUP --prepare --apply-log-only --target-
or
$XTRABACKUP --prepare --target-
then the following lines still appear on the console, ie they seem to be output to stdout:
**
xtrabackup_51 Ver 1.5 Rev 203 for 5.1.52 pc-linux-gnu (i686)
xtrabackup: xtrabackup_logfile detected: size=2097152, start_lsn=(0 21013878)
[notice (again)]
If you use binary log and don't use any hack of group commit,
the binary log position seems to be:
**
It would be nicer if everything went consistently to stderr.
Similarly, when doing an incremental backup:
$XTRABACKUP --backup --target-dir=$INC --incremental- basedir= $APPLY_ DIR 2>>$INC/ $BACKUPNAME. log
I get these lines in stderr/the log file:
xtrabackup: uses posix_fadvise(). data_home_ dir = ./ data_file_ path = ibdata1: 10M:autoextend log_group_ home_dir = ./ log_files_ in_group = 2 log_file_ size = 5242880
xtrabackup: cd to /var/lib/mysql
xtrabackup: Target instance is assumed as followings.
xtrabackup: innodb_
xtrabackup: innodb_
xtrabackup: innodb_
xtrabackup: innodb_
xtrabackup: innodb_
>> log scanned up to (0 21014228)
>> log scanned up to (0 21014228)
And these lines in stdout/console:
xtrabackup_51 Ver 1.5 Rev 203 for 5.1.52 pc-linux-gnu (i686) backups/ hingo-nokia- vm/12/inc1/ ibdata1. delta
incremental backup from 0:21013878 is enabled.
[01] Copying ./ibdata1
to //data/
[01] ...done
xtrabackup: The latest check point (for incremental): '0:21014228'
xtrabackup: Stopping log copying thread.
xtrabackup: Transaction log of lsn (0 21014228) to (0 21014228) was copied.